From c5d714d64d6cd19ea4ec04caec2b606f7adb76f9 Mon Sep 17 00:00:00 2001 From: tokumeikoi Date: Fri, 18 Nov 2022 15:36:15 +0800 Subject: [PATCH] update: add speedlimit --- app/Http/Controllers/Admin/PlanController.php | 11 +++++++---- app/Http/Requests/Admin/PlanSave.php | 6 ++++-- app/Http/Requests/Admin/UserUpdate.php | 6 ++++-- config/app.php | 2 +- database/install.sql | 4 +++- database/update.sql | 6 ++++++ public/assets/admin/components.async.js | 2 +- public/assets/admin/umi.js | 2 +- 8 files changed, 27 insertions(+), 12 deletions(-) diff --git a/app/Http/Controllers/Admin/PlanController.php b/app/Http/Controllers/Admin/PlanController.php index d366fdf8..72659d42 100755 --- a/app/Http/Controllers/Admin/PlanController.php +++ b/app/Http/Controllers/Admin/PlanController.php @@ -41,10 +41,13 @@ class PlanController extends Controller DB::beginTransaction(); // update user group id and transfer try { - User::where('plan_id', $plan->id)->update([ - 'group_id' => $params['group_id'], - 'transfer_enable' => $params['transfer_enable'] * 1073741824 - ]); + if ($request->input('force_update')) { + User::where('plan_id', $plan->id)->update([ + 'group_id' => $params['group_id'], + 'transfer_enable' => $params['transfer_enable'] * 1073741824, + 'speed_limit' => $params['speed_limit'] + ]); + } $plan->update($params); } catch (\Exception $e) { DB::rollBack(); diff --git a/app/Http/Requests/Admin/PlanSave.php b/app/Http/Requests/Admin/PlanSave.php index d5303c18..2aa4583a 100755 --- a/app/Http/Requests/Admin/PlanSave.php +++ b/app/Http/Requests/Admin/PlanSave.php @@ -27,7 +27,8 @@ class PlanSave extends FormRequest 'onetime_price' => 'nullable|integer', 'reset_price' => 'nullable|integer', 'reset_traffic_method' => 'nullable|integer|in:0,1,2,3,4', - 'capacity_limit' => 'nullable|integer' + 'capacity_limit' => 'nullable|integer', + 'speed_limit' => 'nullable|integer' ]; } @@ -49,7 +50,8 @@ class PlanSave extends FormRequest 'reset_price.integer' => '流量重置包金额有误', 'reset_traffic_method.integer' => '流量重置方式格式有误', 'reset_traffic_method.in' => '流量重置方式格式有误', - 'capacity_limit.integer' => '容纳用户量限制格式有误' + 'capacity_limit.integer' => '容纳用户量限制格式有误', + 'speed_limit.integer' => '限速格式有误' ]; } } diff --git a/app/Http/Requests/Admin/UserUpdate.php b/app/Http/Requests/Admin/UserUpdate.php index c5758842..88bd4094 100644 --- a/app/Http/Requests/Admin/UserUpdate.php +++ b/app/Http/Requests/Admin/UserUpdate.php @@ -29,7 +29,8 @@ class UserUpdate extends FormRequest 'balance' => 'integer', 'commission_type' => 'integer', 'commission_balance' => 'integer', - 'remarks' => 'nullable' + 'remarks' => 'nullable', + 'speed_limit' => 'nullable|integer' ]; } @@ -59,7 +60,8 @@ class UserUpdate extends FormRequest 'd.integer' => '下行流量格式不正确', 'balance.integer' => '余额格式不正确', 'commission_balance.integer' => '佣金格式不正确', - 'password.min' => '密码长度最小8位' + 'password.min' => '密码长度最小8位', + 'speed_limit.integer' => '限速格式不正确' ]; } } diff --git a/config/app.php b/config/app.php index a7846c6e..547d4074 100755 --- a/config/app.php +++ b/config/app.php @@ -237,5 +237,5 @@ return [ | The only modification by laravel config | */ - 'version' => '1.6.2.1667025085276' + 'version' => '1.6.2.1668756940000' ]; diff --git a/database/install.sql b/database/install.sql index e786b183..496ca697 100644 --- a/database/install.sql +++ b/database/install.sql @@ -162,6 +162,7 @@ CREATE TABLE `v2_plan` ( `id` int(11) NOT NULL AUTO_INCREMENT, `group_id` int(11) NOT NULL, `transfer_enable` int(11) NOT NULL, + `speed_limit` int(11) DEFAULT NULL, `name` varchar(255) CHARACTER SET utf8mb4 NOT NULL, `show` tinyint(1) NOT NULL DEFAULT '0', `sort` int(11) DEFAULT NULL, @@ -367,6 +368,7 @@ CREATE TABLE `v2_user` ( `uuid` varchar(36) NOT NULL, `group_id` int(11) DEFAULT NULL, `plan_id` int(11) DEFAULT NULL, + `speed_limit` int(11) DEFAULT NULL, `remind_expire` tinyint(4) DEFAULT '1', `remind_traffic` tinyint(4) DEFAULT '1', `token` char(32) NOT NULL, @@ -379,4 +381,4 @@ CREATE TABLE `v2_user` ( ) ENGINE=InnoDB DEFAULT CHARSET=utf8; --- 2022-07-07 18:23:17 +-- 2022-11-18 07:29:50 diff --git a/database/update.sql b/database/update.sql index 73ac48bc..c5e560ad 100644 --- a/database/update.sql +++ b/database/update.sql @@ -592,3 +592,9 @@ ALTER TABLE `v2_plan` ALTER TABLE `v2_plan` CHANGE `inventory_limit` `capacity_limit` int(11) NULL AFTER `reset_traffic_method`; + +ALTER TABLE `v2_user` + ADD `speed_limit` int(11) NULL AFTER `plan_id`; + +ALTER TABLE `v2_plan` + ADD `speed_limit` int(11) NULL AFTER `transfer_enable`; diff --git a/public/assets/admin/components.async.js b/public/assets/admin/components.async.js index 8148e01a..999e3413 100644 --- a/public/assets/admin/components.async.js +++ b/public/assets/admin/components.async.js @@ -1 +1 @@ -(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[0],{"+BJd":function(e,t,c){"use strict";c("cIOH"),c("6MrE")},"+Gva":function(e,t,c){"use strict";var n=c("N2Kk"),r=c("L9pr"),o={placeholder:"\u8bf7\u9009\u62e9\u65f6\u95f4"},a=o;function l(){return l=Object.assign||function(e){for(var t=1;t0?c:null}}]),n}(o["Component"]);return t.defaultProps={allowClear:!0,showToday:!0},Object(l["polyfill"])(t),t}var P=c("wgp+"),T=c("61s2"),j=c("YMnH"),N=c("5lmr"),R=c("RlXo");function _(e){"@babel/helpers - typeof";return _="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function A(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function F(){return F=Object.assign||function(e){for(var t=1;t-1||e.indexOf("h")>-1||e.indexOf("k")>-1,showMinute:e.indexOf("m")>-1,showSecond:e.indexOf("s")>-1}}var J=function(e){U(c,e);var t=q(c);function c(e){var n;D(this,c),n=t.call(this,e),n.getDefaultLocale=function(){var e=F(F({},R["a"]),n.props.locale);return e},n.handleOpenClose=function(e){var t=e.open,c=n.props.onOpenChange;c&&c(t)},n.saveTimePicker=function(e){n.timePickerRef=e},n.handleChange=function(e){"value"in n.props||n.setState({value:e});var t=n.props,c=t.onChange,r=t.format,o=void 0===r?"HH:mm:ss":r;c&&c(e,e&&e.format(o)||"")},n.renderTimePicker=function(e){return o["createElement"](p["a"],null,function(t){var c=t.getPopupContainer,r=t.getPrefixCls,a=n.props,l=a.getPopupContainer,i=a.prefixCls,u=a.className,f=a.addon,p=a.placeholder,v=X(a,["getPopupContainer","prefixCls","className","addon","placeholder"]),m=v.size,d=Object(h["a"])(v,["defaultValue","suffixIcon","allowEmpty","allowClear"]),y=n.getDefaultFormat(),b=r("time-picker",i),z=s()(u,A({},"".concat(b,"-").concat(m),!!m)),g=function(e){return f?o["createElement"]("div",{className:"".concat(b,"-panel-addon")},f(e)):null};return o["createElement"](N["a"],F({},Z(y),d,{allowEmpty:n.getAllowClear(),prefixCls:b,getPopupContainer:l||c,ref:n.saveTimePicker,format:y,className:z,value:n.state.value,placeholder:void 0===p?e.placeholder:p,onChange:n.handleChange,onOpen:n.handleOpenClose,onClose:n.handleOpenClose,addon:g,inputIcon:n.renderInputIcon(b),clearIcon:n.renderClearIcon(b)}))})};var r=e.value||e.defaultValue;if(r&&!Object(m["a"])(a).isMoment(r))throw new Error("The value/defaultValue of TimePicker must be a moment object after `antd@2.0`, see: https://u.ant.design/time-picker-value");return n.state={value:r},Object(v["a"])(!("allowEmpty"in e),"TimePicker","`allowEmpty` is deprecated. Please use `allowClear` instead."),n}return K(c,[{key:"getDefaultFormat",value:function(){var e=this.props,t=e.format,c=e.use12Hours;return t||(c?"h:mm:ss a":"HH:mm:ss")}},{key:"getAllowClear",value:function(){var e=this.props,t=e.allowClear,c=e.allowEmpty;return"allowClear"in this.props?t:c}},{key:"focus",value:function(){this.timePickerRef.focus()}},{key:"blur",value:function(){this.timePickerRef.blur()}},{key:"renderInputIcon",value:function(e){var t=this.props.suffixIcon,c=t&&o["isValidElement"](t)&&o["cloneElement"](t,{className:s()(t.props.className,"".concat(e,"-clock-icon"))})||o["createElement"](f["a"],{type:"clock-circle",className:"".concat(e,"-clock-icon")});return o["createElement"]("span",{className:"".concat(e,"-icon")},c)}},{key:"renderClearIcon",value:function(e){var t=this.props.clearIcon,c="".concat(e,"-clear");return t&&o["isValidElement"](t)?o["cloneElement"](t,{className:s()(t.props.className,c)}):o["createElement"](f["a"],{type:"close-circle",className:c,theme:"filled"})}},{key:"render",value:function(){return o["createElement"](j["a"],{componentName:"TimePicker",defaultLocale:this.getDefaultLocale()},this.renderTimePicker)}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),c}(o["Component"]);J.defaultProps={align:{offset:[0,-2]},disabledHours:void 0,disabledMinutes:void 0,disabledSeconds:void 0,hideDisabledOptions:!1,placement:"bottomLeft",transitionName:"slide-up",focusOnOpen:!0},Object(l["polyfill"])(J);function $(e){"@babel/helpers - typeof";return $="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function ee(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function te(){return te=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&(e[1]=void 0);var r=Re(e,2),o=r[0],a=r[1];"function"===typeof c.onChange&&c.onChange(e,[y(o,c.format),y(a,c.format)])},n.handleOpenChange=function(e){"open"in n.props||n.setState({open:e}),!1===e&&n.clearHoverValue();var t=n.props.onOpenChange;t&&t(e)},n.handleShowDateChange=function(e){return n.setState({showDate:e})},n.handleHoverChange=function(e){return n.setState({hoverValue:e})},n.handleRangeMouseLeave=function(){n.state.open&&n.clearHoverValue()},n.handleCalendarInputSelect=function(e){var t=Re(e,1),c=t[0];c&&n.setState(function(t){var c=t.showDate;return{value:e,showDate:Ke(e)||c}})},n.handleRangeClick=function(e){"function"===typeof e&&(e=e()),n.setValue(e,!0);var t=n.props,c=t.onOk,r=t.onOpenChange;c&&c(e),r&&r(!1)},n.renderFooter=function(){var e=n.props,t=e.ranges,c=e.renderExtraFooter,r=Te(n),a=r.prefixCls,l=r.tagPrefixCls;if(!t&&!c)return null;var i=c?o["createElement"]("div",{className:"".concat(a,"-footer-extra"),key:"extra"},c()):null,u=t&&Object.keys(t).map(function(e){var c=t[e],r="function"===typeof c?c.call(Te(n)):c;return o["createElement"](ge["a"],{key:e,prefixCls:l,color:"blue",onClick:function(){return n.handleRangeClick(c)},onMouseEnter:function(){return n.setState({hoverValue:r})},onMouseLeave:n.handleRangeMouseLeave},e)}),s=u&&u.length>0?o["createElement"]("div",{className:"".concat(a,"-footer-extra ").concat(a,"-range-quick-selector"),key:"range"},u):null;return[s,i]},n.renderRangePicker=function(e){var t,c=e.getPrefixCls,r=Te(n),a=r.state,l=r.props,u=a.value,h=a.showDate,p=a.hoverValue,m=a.open,d=l.prefixCls,b=l.tagPrefixCls,z=l.popupStyle,g=l.style,M=l.disabledDate,C=l.disabledTime,H=l.showTime,O=l.showToday,V=l.ranges,w=l.onOk,S=l.locale,L=l.localeCode,k=l.format,x=l.dateRender,E=l.onCalendarChange,P=l.suffixIcon,T=l.separator,j=c("calendar",d),N=c("tag",b);n.prefixCls=j,n.tagPrefixCls=N,qe(u,L),qe(h,L),Object(v["a"])(!("onOK"in l),"RangePicker","It should be `RangePicker[onOk]`, instead of `onOK`!");var R=s()((t={},Ve(t,"".concat(j,"-time"),H),Ve(t,"".concat(j,"-range-with-ranges"),V),t)),_={onChange:n.handleChange},A={onOk:n.handleChange};l.timePicker?_.onChange=function(e){return n.handleChange(e)}:A={},"mode"in l&&(A.mode=l.mode);var F=Array.isArray(l.placeholder)?l.placeholder[0]:S.lang.rangePlaceholder[0],D=Array.isArray(l.placeholder)?l.placeholder[1]:S.lang.rangePlaceholder[1],I=o["createElement"](ye["a"],Oe({},A,{seperator:T,onChange:E,format:k,prefixCls:j,className:R,renderFooter:n.renderFooter,timePicker:l.timePicker,disabledDate:M,disabledTime:C,dateInputPlaceholder:[F,D],locale:S.lang,onOk:w,dateRender:x,value:h,onValueChange:n.handleShowDateChange,hoverValue:p,onHoverChange:n.handleHoverChange,onPanelChange:l.onPanelChange,showToday:O,onInputSelect:n.handleCalendarInputSelect})),K={};l.showTime&&(K.width=g&&g.width||350);var U=Re(u,2),B=U[0],q=U[1],W=!l.disabled&&l.allowClear&&u&&(B||q)?o["createElement"](f["a"],{type:"close-circle",className:"".concat(j,"-picker-clear"),onClick:n.clearSelection,theme:"filled"}):null,G=o["createElement"](Ce,{suffixIcon:P,prefixCls:j}),Y=function(e){var t=e.value,c=Re(t,2),n=c[0],r=c[1];return o["createElement"]("span",{className:l.pickerInputClass},o["createElement"]("input",{disabled:l.disabled,readOnly:!0,value:y(n,l.format),placeholder:F,className:"".concat(j,"-range-picker-input"),tabIndex:-1}),o["createElement"]("span",{className:"".concat(j,"-range-picker-separator")}," ",T," "),o["createElement"]("input",{disabled:l.disabled,readOnly:!0,value:y(r,l.format),placeholder:D,className:"".concat(j,"-range-picker-input"),tabIndex:-1}),W,G)};return o["createElement"]("span",{ref:n.savePicker,id:"number"===typeof l.id?l.id.toString():l.id,className:s()(l.className,l.pickerClass),style:Oe(Oe({},g),K),tabIndex:l.disabled?-1:0,onFocus:l.onFocus,onBlur:l.onBlur,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave},o["createElement"](i["a"],Oe({},l,_,{calendar:I,value:u,open:m,onOpenChange:n.handleOpenChange,prefixCls:"".concat(j,"-picker-container"),style:z}),Y))};var r=e.value||e.defaultValue||[],l=Re(r,2),u=l[0],h=l[1];if(u&&!Object(m["a"])(a).isMoment(u)||h&&!Object(m["a"])(a).isMoment(h))throw new Error("The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, see: https://u.ant.design/date-picker-value");var p=!r||Be(r)?e.defaultPickerValue:r;return n.state={value:r,showDate:Ue(p||Object(m["a"])(a)()),open:e.open,hoverValue:[]},n}return Le(c,[{key:"componentDidUpdate",value:function(e,t){"open"in this.props||!t.open||this.state.open||this.focus()}},{key:"setValue",value:function(e,t){this.handleChange(e),!t&&this.props.showTime||"open"in this.props||this.setState({open:!1})}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"render",value:function(){return o["createElement"](p["a"],null,this.renderRangePicker)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=null;if("value"in e){var n=e.value||[];c={value:n},ze()(e.value,t.value)||(c=Oe(Oe({},c),{showDate:Ke(n,e.mode)||t.showDate}))}return"open"in e&&t.open!==e.open&&(c=Oe(Oe({},c),{open:e.open})),c}}]),c}(o["Component"]);We.defaultProps={allowClear:!0,showToday:!1,separator:"~"},Object(l["polyfill"])(We);var Ge=We;function Ye(e){"@babel/helpers - typeof";return Ye="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(e)}function Qe(){return Qe=Object.assign||function(e){for(var t=1;t0?{paddingLeft:t[0]/2,paddingRight:t[0]/2}:{}),t[1]>0?{paddingTop:t[1]/2,paddingBottom:t[1]/2}:{}),c)),n["createElement"]("div",s({},M,{style:c,className:V}),g)})},e}return v(c,[{key:"render",value:function(){return n["createElement"](i["a"],null,this.renderCol)}}]),c}(n["Component"]);O.propTypes={span:r["number"],order:r["number"],offset:r["number"],push:r["number"],pull:r["number"],className:r["string"],children:r["node"],xs:H,sm:H,md:H,lg:H,xl:H,xxl:H}},"/wGt":function(e,t,c){"use strict";var n=c("q1tI"),r=c("fcSX"),o=c("foW8"),a=c.n(o),l=c("TSYQ"),i=c.n(l),u=c("BGR+"),s=c("6CfX"),h=c("CtXQ"),f=c("H84U"),p=c("CWQg");function v(e){"@babel/helpers - typeof";return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(){return m=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.arrowWidth,c=void 0===t?5:t,n=e.horizontalArrowShift,r=void 0===n?16:n,o=e.verticalArrowShift,a=void 0===o?12:o,l=e.autoAdjustOverflow,s=void 0===l||l,h={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(r+c),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+c)]},topRight:{points:["br","tc"],offset:[r+c,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+c)]},bottomRight:{points:["tr","bc"],offset:[r+c,4]},rightBottom:{points:["bl","cr"],offset:[4,a+c]},bottomLeft:{points:["tl","bc"],offset:[-(r+c),4]},leftBottom:{points:["br","cl"],offset:[-4,a+c]}};return Object.keys(h).forEach(function(t){h[t]=e.arrowPointAtCenter?u(u({},h[t]),{overflow:p(s),targetOffset:f}):u(u({},i["a"][t]),{overflow:p(s)}),h[t].ignoreShake=!0}),h}var m=c("H84U");function d(e){"@babel/helpers - typeof";return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function y(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var c=0;c=0||n.indexOf("Bottom")>=0?a.top="".concat(o.height-t.offset[1],"px"):(n.indexOf("Top")>=0||n.indexOf("bottom")>=0)&&(a.top="".concat(-t.offset[1],"px")),n.indexOf("left")>=0||n.indexOf("Right")>=0?a.left="".concat(o.width-t.offset[0],"px"):(n.indexOf("right")>=0||n.indexOf("Left")>=0)&&(a.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(a.left," ").concat(a.top)}},r.renderTooltip=function(e){var t=e.getPopupContainer,c=e.getPrefixCls,a=V(r),i=a.props,u=a.state,s=i.prefixCls,h=i.openClassName,f=i.getPopupContainer,p=i.getTooltipContainer,v=i.children,m=c("tooltip",s),d=u.visible;"visible"in i||!r.isNoTitle()||(d=!1);var b=x(n["isValidElement"](v)?v:n["createElement"]("span",null,v)),z=b.props,g=l()(z.className,y({},h||"".concat(m,"-open"),!0));return n["createElement"](o["a"],L({},r.props,{prefixCls:m,getTooltipContainer:f||p||t,ref:r.saveTooltip,builtinPlacements:r.getPlacements(),overlay:r.getOverlay(),visible:d,onVisibleChange:r.onVisibleChange,onPopupAlign:r.onPopupAlign}),d?n["cloneElement"](b,{className:g}):b)},r.state={visible:!!e.visible||!!e.defaultVisible},r}return g(c,[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"getPlacements",value:function(){var e=this.props,t=e.builtinPlacements,c=e.arrowPointAtCenter,n=e.autoAdjustOverflow;return t||v({arrowPointAtCenter:c,verticalArrowShift:8,autoAdjustOverflow:n})}},{key:"isNoTitle",value:function(){var e=this.props,t=e.title,c=e.overlay;return!t&&!c&&0!==t}},{key:"getOverlay",value:function(){var e=this.props,t=e.title,c=e.overlay;return 0===t?t:c||t||""}},{key:"render",value:function(){return n["createElement"](m["a"],null,this.renderTooltip)}}],[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}]),c}(n["Component"]);E.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0},Object(r["polyfill"])(E);t["a"]=E},"3wW7":function(e,t,c){},"5Dmo":function(e,t,c){"use strict";c("cIOH"),c("5YgA")},"5NDa":function(e,t,c){"use strict";c("cIOH"),c("OnYD"),c("+L6B")},"5YgA":function(e,t,c){},"5rEg":function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("VCL8"),a=c("TSYQ"),l=c.n(a),i=c("BGR+"),u=c("CWQg"),s=c("CtXQ");function h(e){"@babel/helpers - typeof";return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var c=0;c1&&void 0!==arguments[1]&&arguments[1],c=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ze[c])return ze[c];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l=be.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),i={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:r};return t&&c&&(ze[c]=i),i}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ve||(ve=document.createElement("textarea"),document.body.appendChild(ve)),e.getAttribute("wrap")?ve.setAttribute("wrap",e.getAttribute("wrap")):ve.removeAttribute("wrap");var r=ge(e,t),o=r.paddingSize,a=r.borderSize,l=r.boxSizing,i=r.sizingStyle;ve.setAttribute("style","".concat(i,";").concat(ye)),ve.value=e.value||e.placeholder||"";var u,s=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,f=ve.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=o),null!==c||null!==n){ve.value=" ";var p=ve.scrollHeight-o;null!==c&&(s=p*c,"border-box"===l&&(s=s+o+a),f=Math.max(s,f)),null!==n&&(h=p*n,"border-box"===l&&(h=h+o+a),u=f>h?"":"hidden",f=Math.min(h,f))}return{height:f,minHeight:s,maxHeight:h,overflowY:u}}var Ce=c("oHiP");function He(e){"@babel/helpers - typeof";return He="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function Oe(){return Oe=Object.assign||function(e){for(var t=1;t0&&(m=s.map(function(e){return"string"===typeof e?n["createElement"](V,{key:e,prefixCls:f,disabled:r.props.disabled,value:e,checked:r.state.value===e},e):n["createElement"](V,{key:"radio-group-value-options-".concat(e.value),prefixCls:f,disabled:e.disabled||r.props.disabled,value:e.value,checked:r.state.value===e.value},e.label)})),n["createElement"]("div",{className:v,style:o.style,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,id:o.id},m)},"value"in e)o=e.value;else if("defaultValue"in e)o=e.defaultValue;else{var a=F(e.children);o=a&&a.value}return r.state={value:o},r}return E(c,[{key:"getChildContext",value:function(){return{radioGroup:{onChange:this.onRadioChange,value:this.state.value,disabled:this.props.disabled,name:this.props.name}}}},{key:"shouldComponentUpdate",value:function(e,t){return!u()(this.props,e)||!u()(this.state,t)}},{key:"render",value:function(){return n["createElement"](s["a"],null,this.renderGroup)}}],[{key:"getDerivedStateFromProps",value:function(e){if("value"in e)return{value:e.value};var t=F(e.children);return t?{value:t.value}:null}}]),c}(n["Component"]);D.defaultProps={buttonStyle:"outline"},D.childContextTypes={radioGroup:r["any"]},Object(w["polyfill"])(D);var I=D;function K(e){"@babel/helpers - typeof";return K="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function U(){return U=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var c=0,n=new Array(t);c0));return n["createElement"](X.Provider,{value:{siderHook:this.getSiderHook()}},n["createElement"](l,A({className:u},i),r))}}]),c}(n["Component"]),ee=Z({suffixCls:"layout",tagName:"section",displayName:"Layout"})($),te=Z({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(J),ce=Z({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(J),ne=Z({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(J);ee.Header=te,ee.Footer=ce,ee.Content=ne;var re=c("CtXQ"),oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=oe;function le(e){"@babel/helpers - typeof";return le="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ie(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function ue(){return ue=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),Ve=function(e){pe(c,e);var t=me(c);function c(e){var r,o,i;return se(this,c),r=t.call(this,e),r.responsiveHandler=function(e){r.setState({below:e.matches});var t=r.props.onBreakpoint;t&&t(e.matches),r.state.collapsed!==e.matches&&r.setCollapsed(e.matches,"responsive")},r.setCollapsed=function(e,t){"collapsed"in r.props||r.setState({collapsed:e});var c=r.props.onCollapse;c&&c(e,t)},r.toggle=function(){var e=!r.state.collapsed;r.setCollapsed(e,"clickTrigger")},r.belowShowChange=function(){r.setState(function(e){var t=e.belowShow;return{belowShow:!t}})},r.renderSider=function(e){var t,c=e.getPrefixCls,o=r.props,i=o.prefixCls,u=o.className,s=o.theme,h=o.collapsible,f=o.reverseArrow,p=o.trigger,v=o.style,m=o.width,d=o.collapsedWidth,y=o.zeroWidthTriggerStyle,b=ge(o,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),z=c("layout-sider",i),g=Object(l["a"])(b,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),M=r.state.collapsed?d:m,C=ae(M)?"".concat(M,"px"):String(M),H=0===parseFloat(String(d||0))?n["createElement"]("span",{onClick:r.toggle,className:"".concat(z,"-zero-width-trigger ").concat(z,"-zero-width-trigger-").concat(f?"right":"left"),style:y},n["createElement"](re["a"],{type:"bars"})):null,O={expanded:f?n["createElement"](re["a"],{type:"right"}):n["createElement"](re["a"],{type:"left"}),collapsed:f?n["createElement"](re["a"],{type:"left"}):n["createElement"](re["a"],{type:"right"})},V=r.state.collapsed?"collapsed":"expanded",w=O[V],S=null!==p?H||n["createElement"]("div",{className:"".concat(z,"-trigger"),onClick:r.toggle,style:{width:C}},p||w):null,L=ue(ue({},v),{flex:"0 0 ".concat(C),maxWidth:C,minWidth:C,width:C}),k=a()(u,z,"".concat(z,"-").concat(s),(t={},ie(t,"".concat(z,"-collapsed"),!!r.state.collapsed),ie(t,"".concat(z,"-has-trigger"),h&&null!==p&&!H),ie(t,"".concat(z,"-below"),!!r.state.below),ie(t,"".concat(z,"-zero-width"),0===parseFloat(C)),t));return n["createElement"]("aside",ue({className:k},g,{style:L}),n["createElement"]("div",{className:"".concat(z,"-children")},r.props.children),h||r.state.below&&H?S:null)},r.uniqueId=Oe("ant-sider-"),"undefined"!==typeof window&&(o=window.matchMedia),o&&e.breakpoint&&e.breakpoint in Ce&&(r.mql=o("(max-width: ".concat(Ce[e.breakpoint],")"))),i="collapsed"in e?e.collapsed:e.defaultCollapsed,r.state={collapsed:i,below:!1},r}return fe(c,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return n["createElement"](He.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},n["createElement"](k["a"],null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),c}(n["Component"]);Ve.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"},Object(i["polyfill"])(Ve);n["Component"];function we(e){"@babel/helpers - typeof";return we="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function Se(){return Se=Object.assign||function(e){for(var t=1;t=0;(t||r)&&o.restoreModeVerticalFromInline()},o.handleClick=function(e){o.handleOpenChange([]);var t=o.props.onClick;t&&t(e)},o.handleOpenChange=function(e){o.setOpenKeys(e);var t=o.props.onOpenChange;t&&t(e)},o.renderMenu=function(e){var t=e.getPopupContainer,c=e.getPrefixCls,i=o.props,u=i.prefixCls,s=i.className,h=i.theme,f=i.collapsedWidth,p=Object(l["a"])(o.props,["collapsedWidth","siderCollapsed"]),v=o.getRealMenuMode(),m=o.getOpenMotionProps(v),d=c("menu",u),y=a()(s,"".concat(d,"-").concat(h),Qe({},"".concat(d,"-inline-collapsed"),o.getInlineCollapsed())),b=Ye({openKeys:o.state.openKeys,onOpenChange:o.handleOpenChange,className:y,mode:v},m);"inline"!==v&&(b.onClick=o.handleClick);var z=o.getInlineCollapsed()&&(0===f||"0"===f||"0px"===f);return z&&(b.openKeys=[]),n["createElement"](r["e"],Ye({getPopupContainer:t},p,b,{prefixCls:d,onTransitionEnd:o.handleTransitionEnd,onMouseEnter:o.handleMouseEnter}))},Object(De["a"])(!("onOpen"in e||"onClose"in e),"Menu","`onOpen` and `onClose` are removed, please use `onOpenChange` instead, see: https://u.ant.design/menu-on-open-change."),Object(De["a"])(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(De["a"])(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),"openKeys"in e?i=e.openKeys:"defaultOpenKeys"in e&&(i=e.defaultOpenKeys),o.state={openKeys:i||[],switchingModeFromInline:!1,inlineOpenKeys:[],prevProps:e},o}return Je(c,[{key:"componentWillUnmount",value:function(){Ie["a"].cancel(this.mountRafId)}},{key:"setOpenKeys",value:function(e){"openKeys"in this.props||this.setState({openKeys:e})}},{key:"getRealMenuMode",value:function(){var e=this.getInlineCollapsed();if(this.state.switchingModeFromInline&&e)return"inline";var t=this.props.mode;return e?"vertical":t}},{key:"getInlineCollapsed",value:function(){var e=this.props.inlineCollapsed;return void 0!==this.props.siderCollapsed?this.props.siderCollapsed:e}},{key:"getOpenMotionProps",value:function(e){var t=this.props,c=t.openTransitionName,n=t.openAnimation,r=t.motion;return r?{motion:r}:n?(Object(De["a"])("string"===typeof n,"Menu","`openAnimation` do not support object. Please use `motion` instead."),{openAnimation:n}):c?{openTransitionName:c}:"horizontal"===e?{motion:{motionName:"slide-up"}}:"inline"===e?{motion:We}:{motion:{motionName:this.state.switchingModeFromInline?"":"zoom-big"}}}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"render",value:function(){return n["createElement"](p.Provider,{value:{inlineCollapsed:this.getInlineCollapsed()||!1,antdMenuTheme:this.props.theme}},n["createElement"](k["a"],null,this.renderMenu))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=t.prevProps,n={prevProps:e};return"inline"===c.mode&&"inline"!==e.mode&&(n.switchingModeFromInline=!0),"openKeys"in e?n.openKeys=e.openKeys:((e.inlineCollapsed&&!c.inlineCollapsed||e.siderCollapsed&&!c.siderCollapsed)&&(n.switchingModeFromInline=!0,n.inlineOpenKeys=t.openKeys,n.openKeys=[]),(!e.inlineCollapsed&&c.inlineCollapsed||!e.siderCollapsed&&c.siderCollapsed)&&(n.openKeys=t.inlineOpenKeys,n.inlineOpenKeys=[])),n}}]),c}(n["Component"]);at.defaultProps={className:"",theme:"light",focusable:!1},Object(i["polyfill"])(at);var lt=function(e){$e(c,e);var t=tt(c);function c(){return Xe(this,c),t.apply(this,arguments)}return Je(c,[{key:"render",value:function(){var e=this;return n["createElement"](He.Consumer,null,function(t){return n["createElement"](at,Ye({},e.props,t))})}}]),c}(n["Component"]);lt.Divider=r["a"],lt.Item=Fe,lt.SubMenu=S,lt.ItemGroup=r["c"]},"CWI+":function(e,t,c){},CWQg:function(e,t,c){"use strict";c.d(t,"a",function(){return n});var n=function(){for(var e=arguments.length,t=new Array(e),c=0;c1&&void 0!==arguments[1]?arguments[1]:C;if(e){var c=this.definitions.get(e);return c&&"function"===typeof c.icon&&(c=s()({},c,{icon:c.icon(t.primaryColor,t.secondaryColor)})),c}}},{key:"setTwoToneColors",value:function(e){var t=e.primaryColor,c=e.secondaryColor;C.primaryColor=t,C.secondaryColor=c||Object(M["c"])(t)}},{key:"getTwoToneColors",value:function(){return s()({},C)}}]),t}(n["Component"]);H.displayName="IconReact",H.definitions=new M["a"];var O=H;function V(){return V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,c=e.extraCommonProps,r=void 0===c?{}:c;if("undefined"!==typeof document&&"undefined"!==typeof window&&"function"===typeof document.createElement&&"string"===typeof t&&t.length&&!S.has(t)){var o=document.createElement("script");o.setAttribute("src",t),o.setAttribute("data-namespace",t),S.add(t),document.body.appendChild(o)}var a=function(e){var t=e.type,c=e.children,o=w(e,["type","children"]),a=null;return e.type&&(a=n["createElement"]("use",{xlinkHref:"#".concat(t)})),c&&(a=c),n["createElement"]($,V({},r,o),a)};return a.displayName="Iconfont",a}var k=c("6CfX"),x={width:"1em",height:"1em",fill:"currentColor","aria-hidden":!0,focusable:"false"},E=/-fill$/,P=/-o$/,T=/-twotone$/;function j(e){var t=null;return E.test(e)?t="filled":P.test(e)?t="outlined":T.test(e)&&(t="twoTone"),t}function N(e){return e.replace(E,"").replace(P,"").replace(T,"")}function R(e,t){var c=e;return"filled"===t?c+="-fill":"outlined"===t?c+="-o":"twoTone"===t?c+="-twotone":Object(k["a"])(!1,"Icon","This icon '".concat(e,"' has unknown theme '").concat(t,"'")),c}function _(e){var t=e;switch(e){case"cross":t="close";break;case"interation":t="interaction";break;case"canlendar":t="calendar";break;case"colum-height":t="column-height";break;default:}return Object(k["a"])(t===e,"Icon","Icon '".concat(e,"' was a typo and is now deprecated, please use '").concat(t,"' instead.")),t}var A=c("YMnH");function F(e){return O.setTwoToneColors({primaryColor:e})}function D(){var e=O.getTwoToneColors();return e.primaryColor}function I(){return I=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var c=0,n=new Array(t);cr?o>=a?10+e:20+e:o<=a?10+e:e}},{key:"renderCurrentNumber",value:function(e,t,c){if("number"===typeof t){var r=this.getPositionByNum(t,c),o=this.state.animateStarted||void 0===H(this.lastCount)[c];return n["createElement"]("span",{className:"".concat(e,"-only"),style:{transition:o?"none":void 0,msTransform:"translateY(".concat(100*-r,"%)"),WebkitTransform:"translateY(".concat(100*-r,"%)"),transform:"translateY(".concat(100*-r,"%)")},key:c},O(r,"".concat(e,"-only-unit")))}return n["createElement"]("span",{key:"symbol",className:"".concat(e,"-symbol")},t)}},{key:"renderNumberElement",value:function(e){var t=this,c=this.state.count;return c&&Number(c)%1===0?H(c).map(function(c,n){return t.renderCurrentNumber(e,c,n)}).reverse():c}},{key:"render",value:function(){return n["createElement"](s["a"],null,this.renderScrollNumber)}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)})}],[{key:"getDerivedStateFromProps",value:function(e,t){return"count"in e?t.count===e.count?null:{animateStarted:!0}:null}}]),c}(n["Component"]);V.defaultProps={count:null,onAnimated:function(){}},Object(u["polyfill"])(V);var w=V,S=c("09Wf");function L(e){"@babel/helpers - typeof";return L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function k(){return k=Object.assign||function(e){for(var t=1;tc?"".concat(c,"+"):t;return n}},{key:"getDispayCount",value:function(){var e=this.isDot();return e?"":this.getNumberedDispayCount()}},{key:"getScrollNumberTitle",value:function(){var e=this.props,t=e.title,c=e.count;return t||("string"===typeof c||"number"===typeof c?c:void 0)}},{key:"getStyleWithOffset",value:function(){var e=this.props,t=e.offset,c=e.style;return t?k({right:-parseInt(t[0],10),marginTop:t[1]},c):c}},{key:"getBadgeClassName",value:function(e){var t,c=this.props,n=c.className,r=c.children;return i()(n,e,(t={},x(t,"".concat(e,"-status"),this.hasStatus()),x(t,"".concat(e,"-not-a-wrapper"),!r),t))}},{key:"hasStatus",value:function(){var e=this.props,t=e.status,c=e.color;return!!t||!!c}},{key:"isZero",value:function(){var e=this.getNumberedDispayCount();return"0"===e||0===e}},{key:"isDot",value:function(){var e=this.props.dot,t=this.isZero();return e&&!t||this.hasStatus()}},{key:"isHidden",value:function(){var e=this.props.showZero,t=this.getDispayCount(),c=this.isZero(),n=this.isDot(),r=null===t||void 0===t||""===t;return(r||c&&!e)&&!n}},{key:"renderStatusText",value:function(e){var t=this.props.text,c=this.isHidden();return c||!t?null:n["createElement"]("span",{className:"".concat(e,"-status-text")},t)}},{key:"renderDispayComponent",value:function(){var e=this.props.count,t=e;if(t&&"object"===L(t))return n["cloneElement"](t,{style:k(k({},this.getStyleWithOffset()),t.props&&t.props.style)})}},{key:"renderBadgeNumber",value:function(e,t){var c,r=this.props,o=r.status,a=r.count,l=r.color,u=this.getDispayCount(),s=this.isDot(),h=this.isHidden(),f=i()((c={},x(c,"".concat(e,"-dot"),s),x(c,"".concat(e,"-count"),!s),x(c,"".concat(e,"-multiple-words"),!s&&a&&a.toString&&a.toString().length>1),x(c,"".concat(e,"-status-").concat(o),!!o),x(c,"".concat(e,"-status-").concat(l),K(l)),c)),p=this.getStyleWithOffset();return l&&!K(l)&&(p=p||{},p.background=l),h?null:n["createElement"](w,{prefixCls:t,"data-show":!h,className:f,count:u,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle(),style:p,key:"scrollNumber"})}},{key:"render",value:function(){return n["createElement"](s["a"],null,this.renderBadge)}}]),c}(n["Component"]);U.defaultProps={count:null,showZero:!1,dot:!1,overflowCount:99},U.propTypes={count:r["node"],showZero:r["bool"],dot:r["bool"],overflowCount:r["number"]}},Mwp2:function(e,t,c){"use strict";c("cIOH"),c("3wW7"),c("R9oj"),c("T2oS"),c("DjyN"),c("1GLa")},NUBc:function(e,t,c){"use strict";var n=c("q1tI"),r=c("6+eU"),o=c("H4fg"),a=c("TSYQ"),l=c.n(a),i=c("2fM7");function u(e){"@babel/helpers - typeof";return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){return s=Object.assign||function(e){for(var t=1;t0?"-".concat(p):p,g=o()(v,b,"".concat(b,"-").concat(h),(c={},i(c,"".concat(b,"-with-text").concat(z),m),i(c,"".concat(b,"-dashed"),!!d),c));return n["createElement"]("div",l({className:g},y,{role:"separator"}),m&&n["createElement"]("span",{className:"".concat(b,"-inner-text")},m))})};t["a"]=s},PQMj:function(e,t,c){},Pwec:function(e,t,c){"use strict";c("cIOH"),c("WtSK")},R9oj:function(e,t,c){"use strict";c("cIOH"),c("pwpV")},RlXo:function(e,t,c){"use strict";var n={placeholder:"Select time"};t["a"]=n},Sdc0:function(e,t,c){"use strict";c.d(t,"a",function(){return S});var n=c("q1tI"),r=c("17x9"),o=c("XIdC"),a=c.n(o),l=c("TSYQ"),i=c.n(l),u=c("BGR+"),s=c("g0mS"),h=c("CtXQ"),f=c("H84U"),p=c("6CfX");function v(e){"@babel/helpers - typeof";return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(){return m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;switch(e){case"topLeft":t={left:0,top:c,bottom:"auto"};break;case"topRight":t={right:0,top:c,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:n};break;default:t={right:0,top:"auto",bottom:n};break}return t}function d(e,t){var c=e.prefixCls,a=e.placement,s=void 0===a?p:a,h=e.getContainer,f=void 0===h?l:h,v=e.top,d=e.bottom,y=e.closeIcon,b=void 0===y?i:y,z="".concat(c,"-").concat(s);if(u[z])t(u[z]);else{var g=n["createElement"]("span",{className:"".concat(c,"-close-x")},b||n["createElement"](o["a"],{className:"".concat(c,"-close-icon"),type:"close"}));r["a"].newInstance({prefixCls:c,className:"".concat(c,"-").concat(s),style:m(s,v,d),getContainer:f,closeIcon:g},function(e){u[z]=e,t(e)})}}var y={success:"check-circle-o",info:"info-circle-o",error:"close-circle-o",warning:"exclamation-circle-o"};function b(e){var t=e.prefixCls||"ant-notification",c="".concat(t,"-notice"),r=void 0===e.duration?s:e.duration,a=null;if(e.icon)a=n["createElement"]("span",{className:"".concat(c,"-icon")},e.icon);else if(e.type){var l=y[e.type];a=n["createElement"](o["a"],{className:"".concat(c,"-icon ").concat(c,"-icon-").concat(e.type),type:l})}var i=!e.description&&a?n["createElement"]("span",{className:"".concat(c,"-message-single-line-auto-margin")}):null,u=e.placement,h=e.top,f=e.bottom,p=e.getContainer,v=e.closeIcon;d({prefixCls:t,placement:u,top:h,bottom:f,getContainer:p,closeIcon:v},function(t){t.notice({content:n["createElement"]("div",{className:a?"".concat(c,"-with-icon"):""},a,n["createElement"]("div",{className:"".concat(c,"-message")},i,e.message),n["createElement"]("div",{className:"".concat(c,"-description")},e.description),e.btn?n["createElement"]("span",{className:"".concat(c,"-btn")},e.btn):null),duration:r,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},className:e.className})})}var z={open:b,close:function(e){Object.keys(u).forEach(function(t){return u[t].removeNotice(e)})},config:v,destroy:function(){Object.keys(u).forEach(function(e){u[e].destroy(),delete u[e]})}};["success","info","warning","error"].forEach(function(e){z[e]=function(t){return z.open(a(a({},t),{type:e}))}}),z.warn=z.warning,t["a"]=z},Urep:function(e,t,c){},VXEj:function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("TSYQ"),a=c.n(o),l=c("BGR+"),i=c("W9HT"),u=c("H84U"),s=c("NUBc"),h=c("qrJ5"),f=c("/kpp");function p(e){if(!n["isValidElement"](e))return e;for(var t=arguments.length,c=new Array(t>1?t-1:0),r=1;r0&&n["createElement"]("ul",{className:"".concat(b,"-item-action"),key:"actions"},h.map(function(e,t){return n["createElement"]("li",{key:"".concat(b,"-item-action-").concat(t)},e,t!==h.length-1&&n["createElement"]("em",{className:"".concat(b,"-item-action-split")}))})),g=o?"div":"li",M=n["createElement"](g,w({},y,{className:a()("".concat(b,"-item"),d,m({},"".concat(b,"-item-no-flex"),!e.isFlexMode()))}),"vertical"===l&&v?[n["createElement"]("div",{className:"".concat(b,"-item-main"),key:"content"},s,z),n["createElement"]("div",{className:"".concat(b,"-item-extra"),key:"extra"},v)]:[s,z,p(v,{key:"extra"})]);return o?n["createElement"](f["a"],{span:k(o,"column"),xs:k(o,"xs"),sm:k(o,"sm"),md:k(o,"md"),lg:k(o,"lg"),xl:k(o,"xl"),xxl:k(o,"xxl")},M):M},e}return b(c,[{key:"isItemContainsTextNodeAndNotSingular",value:function(){var e,t=this.props.children;return n["Children"].forEach(t,function(t){"string"===typeof t&&(e=!0)}),e&&n["Children"].count(t)>1}},{key:"isFlexMode",value:function(){var e=this.props.extra,t=this.context.itemLayout;return"vertical"===t?!!e:!this.isItemContainsTextNodeAndNotSingular()}},{key:"render",value:function(){return n["createElement"](u["a"],null,this.renderItem)}}]),c}(n["Component"]);function E(e){"@babel/helpers - typeof";return E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function P(e){return R(e)||N(e)||j(e)||T()}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"===typeof e)return _(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_(e,t):void 0}}function N(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function R(e){if(Array.isArray(e))return _(e)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);cD&&(_.current=D);var I,K=C?n["createElement"]("div",{className:"".concat(E,"-pagination")},n["createElement"](s["a"],A({},_,{onChange:r.onPaginationChange,onShowSizeChange:r.onPaginationShowSizeChange}))):null,U=P(V);if(C&&V.length>(_.current-1)*_.pageSize&&(U=P(V).splice((_.current-1)*_.pageSize,_.pageSize)),I=j&&n["createElement"]("div",{style:{minHeight:53}}),U.length>0){var B=U.map(function(e,t){return r.renderItem(e,t)}),q=[];n["Children"].forEach(B,function(e,t){q.push(n["cloneElement"](e,{key:r.keys[t]}))}),I=H?n["createElement"](h["a"],{gutter:H.gutter},q):n["createElement"]("ul",{className:"".concat(E,"-items")},q)}else z||j||(I=r.renderEmpty(E,o));var W=_.position||"bottom";return n["createElement"]("div",A({className:R},Object(l["a"])(x,["rowKey","renderItem","locale"])),("top"===W||"both"===W)&&K,S&&n["createElement"]("div",{className:"".concat(E,"-header")},S),n["createElement"](i["a"],T,I,z),L&&n["createElement"]("div",{className:"".concat(E,"-footer")},L),M||("bottom"===W||"both"===W)&&K)};var o=e.pagination,u=o&&"object"===E(o)?o:{};return r.state={paginationCurrent:u.defaultCurrent||1,paginationSize:u.defaultPageSize||10},r}return K(c,[{key:"getChildContext",value:function(){return{grid:this.props.grid,itemLayout:this.props.itemLayout}}},{key:"triggerPaginationEvent",value:function(e){var t=this;return function(c,n){var r=t.props.pagination;t.setState({paginationCurrent:c,paginationSize:n}),r&&r[e]&&r[e](c,n)}}},{key:"isSomethingAfterLastItem",value:function(){var e=this.props,t=e.loadMore,c=e.pagination,n=e.footer;return!!(t||c||n)}},{key:"render",value:function(){return n["createElement"](u["a"],null,this.renderList)}}]),c}(n["Component"]);Z.Item=x,Z.childContextTypes={grid:r["any"],itemLayout:r["string"]},Z.defaultProps={dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}},W9HT:function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("TSYQ"),a=c.n(o),l=c("BGR+"),i=c("sEfC"),u=c.n(i),s=c("H84U"),h=c("CWQg");function f(e){"@babel/helpers - typeof";return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L(e,t){if(e){if("string"===typeof e)return k(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c0)for(var l,i=S(c);!(l=i()).done;){var u=l.value;if("undefined"!==typeof a[u]&&!a[u])return!1}else if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return!1;return a.key?a.key===r:a.keyCode===n}function T(e,t){var c=e.split("\n"),n=e.substr(0,t).split("\n"),r=n.length,o=n[n.length-1].length,a=c[n.length-1],l=n.length>1?n[n.length-2]:null,i=c.length>n.length?c[n.length]:null;return{line:r,col:o,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:a,prevLine:l,nextLine:i}}for(var j={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:["\n> ","\n"],inlinecode:["`","`"],code:["\n```\n","\n```\n"]},N=1;N<=6;N++)j["h"+N]=["\n"+E("#",N)+" ","\n"];function R(e){for(var t=e.row,c=void 0===t?2:t,n=e.col,r=void 0===n?2:n,o=["|"],a=["|"],l=["|"],i="",u=1;u<=r;u++)o.push(" Head |"),l.push(" --- |"),a.push(" Data |");for(var s=1;s<=c;s++)i+="\n"+a.join("");return o.join("")+"\n"+l.join("")+i}function _(e,t){var c=t;if("\n"!==c.substr(0,1)&&(c="\n"+c),"unordered"===e)return c.length>1?c.replace(/\n/g,"\n* ").trim():"* ";var n=1;return c.length>1?c.replace(/\n/g,function(){return"\n"+n+++". "}).trim():"1. "}function A(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}function F(e,t,c){if("undefined"!==typeof j[t])return{text:""+j[t][0]+e+j[t][1],selection:{start:j[t][0].length,end:j[t][0].length+e.length}};switch(t){case"tab":var n=1===c.tabMapValue?"\t":" ".repeat(c.tabMapValue),r=n+e.replace(/\n/g,"\n"+n),o=e.includes("\n")?e.match(/\n/g).length:0;return{text:r,selection:{start:c.tabMapValue,end:c.tabMapValue*(o+1)+e.length}};case"unordered":return A(_("unordered",e),!0);case"order":return A(_("order",e),!0);case"hr":return A("---",!0);case"table":return{text:R(c),newBlock:!0};case"image":return{text:"!["+(e||c.target)+"]("+(c.imageUrl||"")+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(c.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}}var D=F;function I(e,t){var c={};return Object.keys(e).forEach(function(n){"undefined"!==typeof t[n]?"object"!==typeof t[n]?c[n]=t[n]:Array.isArray(t[n])?c[n]=[].concat(t[n]):c[n]=I(e[n],t[n]):c[n]=e[n]}),c}var K=function(e){for(var t=r()({},e),c=arguments.length,n=new Array(c>1?c-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e,t){if(e){if("string"===typeof e)return J(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?J(e,t):void 0}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&h.length>0&&(l="\n"+l,i&&(i.start++,i.end++));var f=u.afterText;c.start!==c.end&&(f=T(this.getMdValue(),c.end).afterText),""!==f.trim()&&"\n\n"!==f.substr(0,2)&&("\n"!==f.substr(0,1)&&(l+="\n"),l+="\n")}this.insertText(l,!0,i)},c.insertPlaceholder=function(e,t){var c=this;this.insertText(e,!0),t.then(function(t){var n=c.getMdValue().replace(e,t);c.setText(n)})},c.insertText=function(e,t,c){void 0===e&&(e=""),void 0===t&&(t=!1);var n=this.state.text,r=this.getSelection(),o=n.slice(0,r.start),a=n.slice(t?r.end:r.start,n.length);this.setText(o+e+a,void 0,c?{start:c.start+o.length,end:c.end+o.length}:{start:r.start,end:r.start})},c.setText=function(e,t,c){var n=this;void 0===e&&(e="");var r=this.config.onChangeTrigger,o=void 0===r?"both":r,a=e.replace(/\u21b5/g,"\n");if(this.state.text!==e){this.setState({text:a}),!this.props.onChange||"both"!==o&&"beforeRender"!==o||this.props.onChange({text:a,html:this.getHtmlValue()},t),this.emitter.emit(this.emitter.EVENT_CHANGE,e,t,"undefined"===typeof t),c&&setTimeout(function(){return n.setSelection(c)}),this.hasContentChanged||(this.hasContentChanged=!0);var l=this.renderHTML(a);"both"!==o&&"afterRender"!==o||l.then(function(){n.props.onChange&&n.props.onChange({text:n.state.text,html:n.getHtmlValue()},t)})}},c.getMdValue=function(){return this.state.text},c.getHtmlValue=function(){return"string"===typeof this.state.html?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},c.onKeyboard=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t.onKeyboard(e)}):this.keyboardListeners.includes(e)||this.keyboardListeners.push(e)},c.offKeyboard=function(e){var t=this;if(Array.isArray(e))e.forEach(function(e){return t.offKeyboard(e)});else{var c=this.keyboardListeners.indexOf(e);c>=0&&this.keyboardListeners.splice(c,1)}},c.handleKeyDown=function(e){for(var t,c=X(this.keyboardListeners);!(t=c()).done;){var n=t.value;if(P(e,n))return e.preventDefault(),void n.callback(e)}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,e)},c.getEventType=function(e){switch(e){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},c.on=function(e,t){var c=this.getEventType(e);c&&this.emitter.on(c,t)},c.off=function(e,t){var c=this.getEventType(e);c&&this.emitter.off(c,t)},c.setView=function(e){var t=this,c=r()({},this.state.view,e);this.setState({view:c},function(){t.emitter.emit(t.emitter.EVENT_VIEW_CHANGE,c)})},c.getView=function(){return r()({},this.state.view)},c.fullScreen=function(e){var t=this;this.state.fullScreen!==e&&this.setState({fullScreen:e},function(){t.emitter.emit(t.emitter.EVENT_FULL_SCREEN,e)})},c.isFullScreen=function(){return this.state.fullScreen},c.uploadWithDataTransfer=function(e){var t=this,c=this.config.onImageUpload;if(c){var n=[];Array.prototype.forEach.call(e,function(e){if("file"===e.kind&&e.type.includes("image")){var r=e.getAsFile();if(r){var o=q(r,c);n.push(Promise.resolve(o.placeholder)),o.uploaded.then(function(e){var c=t.getMdValue().replace(o.placeholder,e),n=e.length-o.placeholder.length,r=t.getSelection();t.setText(c,void 0,{start:r.start+n,end:r.start+n})})}}else"string"===e.kind&&"text/plain"===e.type&&n.push(new Promise(function(t){return e.getAsString(t)}))}),Promise.all(n).then(function(e){var c=e.join(""),n=t.getSelection();t.insertText(c,!0,{start:n.start===n.end?c.length:0,end:c.length})})}},c.render=function(){var e=this,t=this.state,c=t.view,n=t.fullScreen,r=t.text,o=t.html,a=this.props,l=a.id,i=a.className,p=void 0===i?"":i,v=a.style,m=a.name,d=void 0===m?"textarea":m,y=a.autoFocus,b=a.placeholder,z=a.readOnly,g=this.config.canView&&this.config.canView.hideMenu&&!this.config.canView.menu,M=function(t){return e.state.plugins[t]||[]},C=!!c.menu,H=l?l+"_md":void 0,O=l?l+"_html":void 0;return u["createElement"]("div",{id:l,className:"rc-md-editor "+(n?"full":"")+" "+p,style:v,onKeyDown:this.handleKeyDown,onDrop:this.handleDrop},u["createElement"](h,{visible:C,left:M("left"),right:M("right")}),u["createElement"]("div",{className:"editor-container"},g&&u["createElement"](f,null,u["createElement"]("span",{className:"button button-type-menu",title:C?"hidden menu":"show menu",onClick:this.handleToggleMenu},u["createElement"](s,{type:"expand-"+(C?"less":"more")}))),u["createElement"]("section",{className:"section sec-md "+(c.md?"visible":"in-visible")},u["createElement"]("textarea",{id:H,ref:this.nodeMdText,name:d,autoFocus:y,placeholder:b,readOnly:z,value:r,className:"section-container input "+(this.config.markdownClass||""),wrap:"hard",onChange:this.handleChange,onScroll:this.handleInputScroll,onMouseOver:function(){return e.shouldSyncScroll="md"},onKeyDown:this.handleEditorKeyDown,onCompositionStart:function(){return e.composing=!0},onCompositionEnd:function(){return e.composing=!1},onPaste:this.handlePaste,onFocus:this.handleFocus,onBlur:this.handleBlur})),u["createElement"]("section",{className:"section sec-html "+(c.html?"visible":"in-visible")},u["createElement"]("div",{id:O,className:"section-container html-wrap",ref:this.nodeMdPreviewWrapper,onMouseOver:function(){return e.shouldSyncScroll="html"},onScroll:this.handlePreviewScroll},u["createElement"](Q,{html:o,className:this.config.htmlClass,ref:this.nodeMdPreview})))))},t}(u["Component"]);$.plugins=[],$.addLocale=M.add.bind(M),$.useLocale=M.setCurrent.bind(M),$.getLocale=M.getCurrent.bind(M);var ee=$,te=function(e){function t(t){var c;return c=e.call(this,t)||this,c.timer=null,c.useTimer=c.getConfig("useTimer")||"undefined"===typeof requestAnimationFrame,c.handleChange=c.handleChange.bind(a()(c)),c.doResize=c.doResize.bind(a()(c)),c}i()(t,e);var c=t.prototype;return c.doResize=function(){var e=this,t=function(t){t.style.height="auto";var c=Math.min(Math.max(e.getConfig("min"),t.scrollHeight),e.getConfig("max"));return t.style.height=c+"px",c};this.timer=null;var c=this.editor.getView(),n=this.editor.getMdElement(),r=this.editor.getHtmlElement();if(n&&c.md){var o=t(n);r&&(r.style.height=o+"px")}else r&&c.html&&t(r)},c.handleChange=function(){null===this.timer&&(this.useTimer?this.timer=window.setTimeout(this.doResize):this.timer=requestAnimationFrame(this.doResize))},c.componentDidMount=function(){this.editor.on("change",this.handleChange),this.editor.on("viewchange",this.handleChange),this.handleChange()},c.componentWillUnmount=function(){this.editor.off("change",this.handleChange),this.editor.off("viewchange",this.handleChange),null!==this.timer&&this.useTimer&&(window.clearTimeout(this.timer),this.timer=null)},c.render=function(){return u["createElement"]("span",null)},t}(O);te.pluginName="auto-resize",te.align="left",te.defaultConfig={min:200,max:1/0,useTimer:!1};var ce=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-code-block",title:M.get("btnCode"),onClick:function(){return e.editor.insertMarkdown("code")}},u["createElement"](s,{type:"code-block"}))},t}(O);ce.pluginName="block-code-block";var ne=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-code-inline",title:M.get("btnInlineCode"),onClick:function(){return e.editor.insertMarkdown("inlinecode")}},u["createElement"](s,{type:"code"}))},t}(O);ne.pluginName="block-code-inline";var re=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-quote",title:M.get("btnQuote"),onClick:function(){return e.editor.insertMarkdown("quote")}},u["createElement"](s,{type:"quote"}))},t}(O);re.pluginName="block-quote";var oe=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-wrap",title:M.get("btnLineBreak"),onClick:function(){return e.editor.insertMarkdown("hr")}},u["createElement"](s,{type:"wrap"}))},t}(O);oe.pluginName="block-wrap";var ae=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClick=c.handleClick.bind(a()(c)),c}i()(t,e);var c=t.prototype;return c.handleClick=function(){if(""!==this.editor.getMdValue()&&window.confirm&&"function"===typeof window.confirm){var e=window.confirm(M.get("clearTip"));e&&this.editor.setText("")}},c.render=function(){return u["createElement"]("span",{className:"button button-type-clear",title:M.get("btnClear"),onClick:this.handleClick},u["createElement"](s,{type:"delete"}))},t}(O);ae.pluginName="clear";var le=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"b",keyCode:66,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("bold")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-bold",title:M.get("btnBold"),onClick:function(){return e.editor.insertMarkdown("bold")}},u["createElement"](s,{type:"bold"}))},t}(O);le.pluginName="font-bold";var ie=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"i",keyCode:73,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("italic")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-italic",title:M.get("btnItalic"),onClick:function(){return e.editor.insertMarkdown("italic")}},u["createElement"](s,{type:"italic"}))},t}(O);ie.pluginName="font-italic";var ue=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"d",keyCode:68,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("strikethrough")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-strikethrough",title:M.get("btnStrikethrough"),onClick:function(){return e.editor.insertMarkdown("strikethrough")}},u["createElement"](s,{type:"strikethrough"}))},t}(O);ue.pluginName="font-strikethrough";var se=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"u",keyCode:85,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("underline")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-underline",title:M.get("btnUnderline"),onClick:function(){return e.editor.insertMarkdown("underline")}},u["createElement"](s,{type:"underline"}))},t}(O);se.pluginName="font-underline";var he=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClick=c.handleClick.bind(a()(c)),c.handleChange=c.handleChange.bind(a()(c)),c.state={enable:c.editor.isFullScreen()},c}i()(t,e);var c=t.prototype;return c.handleClick=function(){this.editor.fullScreen(!this.state.enable)},c.handleChange=function(e){this.setState({enable:e})},c.componentDidMount=function(){this.editor.on("fullscreen",this.handleChange)},c.componentWillUnmount=function(){this.editor.off("fullscreen",this.handleChange)},c.render=function(){if(this.editorConfig.canView&&this.editorConfig.canView.fullScreen){var e=this.state.enable;return u["createElement"]("span",{className:"button button-type-fullscreen",title:M.get(e?"btnExitFullScreen":"btnFullScreen"),onClick:this.handleClick},u["createElement"](s,{type:e?"fullscreen-exit":"fullscreen"}))}return null},t}(O);he.pluginName="full-screen",he.align="right";var fe=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClose=c.handleClose.bind(a()(c)),c}i()(t,e);var c=t.prototype;return c.handleClose=function(e){e.stopPropagation();var t=this.props.onClose;"function"===typeof t&&t()},c.render=function(){return u["createElement"]("div",{className:"drop-wrap "+(this.props.show?"show":"hidden"),onClick:this.handleClose},this.props.children)},t}(u["Component"]),pe=fe,ve=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.handleHeader=function(e){var t=this.props.onSelectHeader;"function"===typeof t&&t(e)},c.render=function(){return u["createElement"]("ul",{className:"header-list"},u["createElement"]("li",{className:"list-item"},u["createElement"]("h1",{onClick:this.handleHeader.bind(this,"h1")},"H1")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h2",{onClick:this.handleHeader.bind(this,"h2")},"H2")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h3",{onClick:this.handleHeader.bind(this,"h3")},"H3")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h4",{onClick:this.handleHeader.bind(this,"h4")},"H4")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h5",{onClick:this.handleHeader.bind(this,"h5")},"H5")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h6",{onClick:this.handleHeader.bind(this,"h6")},"H6")))},t}(u["Component"]),me=ve,de=function(e){function t(t){var c;return c=e.call(this,t)||this,c.show=c.show.bind(a()(c)),c.hide=c.hide.bind(a()(c)),c.state={show:!1},c}i()(t,e);var c=t.prototype;return c.show=function(){this.setState({show:!0})},c.hide=function(){this.setState({show:!1})},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-header",title:M.get("btnHeader"),onMouseEnter:this.show,onMouseLeave:this.hide},u["createElement"](s,{type:"font-size"}),u["createElement"](pe,{show:this.state.show,onClose:this.hide},u["createElement"](me,{onSelectHeader:function(t){return e.editor.insertMarkdown(t)}})))},t}(O);de.pluginName="header";var ye=function(e){function t(t){var c;return c=e.call(this,t)||this,c.timerId=void 0,c.locked=!1,c.input=u["createRef"](),c}i()(t,e);var c=t.prototype;return c.click=function(){var e=this;!this.locked&&this.input.current&&(this.locked=!0,this.input.current.value="",this.input.current.click(),this.timerId&&window.clearTimeout(this.timerId),this.timerId=window.setTimeout(function(){e.locked=!1,window.clearTimeout(e.timerId),e.timerId=void 0},200))},c.componentWillUnmount=function(){this.timerId&&window.clearTimeout(this.timerId)},c.render=function(){return u["createElement"]("input",{type:"file",ref:this.input,accept:this.props.accept,style:{position:"absolute",zIndex:-1,left:0,top:0,width:0,height:0,opacity:0},onChange:this.props.onChange})},t}(u["Component"]),be=ye,ze=function(e){function t(t){var c;return c=e.call(this,t)||this,c.inputFile=u["createRef"](),c.onImageChanged=c.onImageChanged.bind(a()(c)),c.handleCustomImageUpload=c.handleCustomImageUpload.bind(a()(c)),c.handleImageUpload=c.handleImageUpload.bind(a()(c)),c.state={show:!1},c}i()(t,e);var c=t.prototype;return c.handleImageUpload=function(){var e=this.editorConfig.onImageUpload;"function"===typeof e?this.inputFile.current&&this.inputFile.current.click():this.editor.insertMarkdown("image")},c.onImageChanged=function(e){var t=this.editorConfig.onImageUpload;if(t){var c=q(e,t);this.editor.insertPlaceholder(c.placeholder,c.uploaded)}},c.handleCustomImageUpload=function(e){var t=this,c=this.editorConfig.onCustomImageUpload;if(c){var n=c.call(this,e);x(n)&&n.then(function(e){e&&e.url&&t.editor.insertMarkdown("image",{target:e.text,imageUrl:e.url})})}},c.render=function(){var e=this,t=!!this.editorConfig.onCustomImageUpload;return t?u["createElement"]("span",{className:"button button-type-image",title:M.get("btnImage"),onClick:this.handleCustomImageUpload},u["createElement"](s,{type:"image"})):u["createElement"]("span",{className:"button button-type-image",title:M.get("btnImage"),onClick:this.handleImageUpload,style:{position:"relative"}},u["createElement"](s,{type:"image"}),u["createElement"](be,{accept:this.editorConfig.imageAccept||"",ref:this.inputFile,onChange:function(t){t.persist(),t.target.files&&t.target.files.length>0&&e.onImageChanged(t.target.files[0])}}))},t}(O);ze.pluginName="image";var ge=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("link")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-link",title:M.get("btnLink"),onClick:function(){return e.editor.insertMarkdown("link")}},u["createElement"](s,{type:"link"}))},t}(O);ge.pluginName="link";var Me=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return c.editor.insertMarkdown("order")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-ordered",title:M.get("btnOrdered"),onClick:function(){return e.editor.insertMarkdown("order")}},u["createElement"](s,{type:"list-ordered"}))},t}(O);Me.pluginName="list-ordered";var Ce=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return c.editor.insertMarkdown("unordered")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-unordered",title:M.get("btnUnordered"),onClick:function(){return e.editor.insertMarkdown("unordered")}},u["createElement"](s,{type:"list-unordered"}))},t}(O);Ce.pluginName="list-unordered";var He,Oe=100,Ve=function(){function e(){this.record=[],this.recycle=[],this.initValue=""}var t=e.prototype;return t.push=function(e){var t=this.record.push(e);while(this.record.length>Oe)this.record.shift();return t},t.get=function(){return this.record},t.getLast=function(){var e=this.record.length;return this.record[e-1]},t.undo=function(e){var t=this.record.pop();if("undefined"===typeof t)return this.initValue;if(t!==e)return this.recycle.push(t),t;var c=this.record.pop();return"undefined"===typeof c?(this.recycle.push(t),this.initValue):(this.recycle.push(t),c)},t.redo=function(){var e=this.recycle.pop();if("undefined"!==typeof e)return this.push(e),e},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e}(),we=Ve,Se=600,Le=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboards=[],c.lastPop=null,c.handleChange=c.handleChange.bind(a()(c)),c.handleRedo=c.handleRedo.bind(a()(c)),c.handleUndo=c.handleUndo.bind(a()(c)),c.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:c.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:c.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:c.handleUndo}],c.logger=new we,c}i()(t,e);var c=t.prototype;return c.handleUndo=function(){var e=this.logger.undo(this.editor.getMdValue());"undefined"!==typeof e&&(this.pause(),this.lastPop=e,this.editor.setText(e),this.forceUpdate())},c.handleRedo=function(){var e=this.logger.redo();"undefined"!==typeof e&&(this.lastPop=e,this.editor.setText(e),this.forceUpdate())},c.handleChange=function(e,t,c){var n=this;if(this.logger.getLast()!==e&&(null===this.lastPop||this.lastPop!==e)){if(this.logger.cleanRedo(),c)return this.logger.push(e),this.lastPop=null,void this.forceUpdate();this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout(function(){n.logger.getLast()!==e&&(n.logger.push(e),n.lastPop=null,n.forceUpdate()),window.clearTimeout(n.timerId),n.timerId=0},Se)}},c.componentDidMount=function(){var e=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach(function(t){return e.editor.onKeyboard(t)}),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},c.componentWillUnmount=function(){var e=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.handleKeyboards.forEach(function(t){return e.editor.offKeyboard(t)})},c.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},c.render=function(){var e=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),t=this.logger.getRedoCount()>0;return u["createElement"](u["Fragment"],null,u["createElement"]("span",{className:"button button-type-undo "+(e?"":"disabled"),title:M.get("btnUndo"),onClick:this.handleUndo},u["createElement"](s,{type:"undo"})),u["createElement"]("span",{className:"button button-type-redo "+(t?"":"disabled"),title:M.get("btnRedo"),onClick:this.handleRedo},u["createElement"](s,{type:"redo"})))},t}(O);Le.pluginName="logger",function(e){e[e["SHOW_ALL"]=0]="SHOW_ALL",e[e["SHOW_MD"]=1]="SHOW_MD",e[e["SHOW_HTML"]=2]="SHOW_HTML"}(He||(He={}));var ke=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClick=c.handleClick.bind(a()(c)),c.handleChange=c.handleChange.bind(a()(c)),c.state={view:c.editor.getView()},c}i()(t,e);var c=t.prototype;return c.handleClick=function(){switch(this.next){case He.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case He.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case He.SHOW_MD:this.editor.setView({html:!1,md:!0});break}},c.handleChange=function(e){this.setState({view:e})},c.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},c.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},c.getDisplayInfo=function(){var e=this.next;switch(e){case He.SHOW_ALL:return{icon:"view-split",title:"All"};case He.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},c.render=function(){if(this.isDisplay){var e=this.getDisplayInfo();return u["createElement"]("span",{className:"button button-type-mode",title:M.get("btnMode"+e.title),onClick:this.handleClick},u["createElement"](s,{type:e.icon}))}return null},H()(t,[{key:"isDisplay",get:function(){var e=this.editorConfig.canView;return!!e&&[e.html,e.md,e.both].filter(function(e){return e}).length>=2}},{key:"next",get:function(){var e=this.editorConfig.canView,t=this.state.view,c=[He.SHOW_ALL,He.SHOW_MD,He.SHOW_HTML];e&&(e.both||c.splice(c.indexOf(He.SHOW_ALL),1),e.md||c.splice(c.indexOf(He.SHOW_MD),1),e.html||c.splice(c.indexOf(He.SHOW_HTML),1));var n=He.SHOW_MD;if(t.html&&(n=He.SHOW_HTML),t.html&&t.md&&(n=He.SHOW_ALL),0===c.length)return n;if(1===c.length)return c[0];var r=c.indexOf(n);return r=0),e),d),w=f(f({},this.props),{children:null,inkBarAnimated:z,extraContent:l,style:r,prevIcon:H,nextIcon:O,className:V});return t=a?a(w,s["a"]):n["createElement"](s["a"],w),n["cloneElement"](t)}}]),c}(n["Component"]);V.defaultProps={animated:!0,type:"line"};var w=c("H84U"),S=c("6CfX"),L=function(e){if("undefined"!==typeof window&&window.document&&window.document.documentElement){var t=Array.isArray(e)?e:[e],c=window.document.documentElement;return t.some(function(e){return e in c.style})}return!1},k=L(["flex","webkitFlex","Flex","msFlex"]);function x(){return x=Object.assign||function(e){for(var t=1;t=0&&("small"===v||"large"===v)),"Tabs","`type=card|editable-card` doesn't have small or large size, it's by design.");var O=r("tabs",s),w=i()(p,(c={},E(c,"".concat(O,"-vertical"),"left"===y||"right"===y),E(c,"".concat(O,"-").concat(v),!!v),E(c,"".concat(O,"-card"),d.indexOf("card")>=0),E(c,"".concat(O,"-").concat(d),!0),E(c,"".concat(O,"-no-animation"),!H),c)),L=[];"editable-card"===d&&(L=[],n["Children"].forEach(b,function(t,c){if(!n["isValidElement"](t))return t;var r=t.props.closable;r="undefined"===typeof r||r;var o=r?n["createElement"](h["a"],{type:"close",className:"".concat(O,"-close-x"),onClick:function(c){return e.removeTab(t.key,c)}}):null;L.push(n["cloneElement"](t,{tab:n["createElement"]("div",{className:r?void 0:"".concat(O,"-tab-unclosable")},t.props.tab,o),key:t.key||c}))}),M||(C=n["createElement"]("span",null,n["createElement"](h["a"],{type:"plus",className:"".concat(O,"-new-tab"),onClick:e.createNewTab}),C))),C=C?n["createElement"]("div",{className:"".concat(O,"-extra-content")},C):null;var k=U(e.props,[]),T=i()("".concat(O,"-").concat(y,"-content"),d.indexOf("card")>=0&&"".concat(O,"-card-content"));return n["createElement"](o["b"],x({},e.props,{prefixCls:O,className:w,tabBarPosition:y,renderTabBar:function(){return n["createElement"](V,x({},Object(u["a"])(k,["className"]),{tabBarExtraContent:C}))},renderTabContent:function(){return n["createElement"](a["a"],{className:T,animated:H,animatedWithMargin:!0})},onChange:e.handleChange}),L.length>0?L:b)},e}return N(c,[{key:"componentDidMount",value:function(){var e=" no-flex",t=r["findDOMNode"](this);t&&!k&&-1===t.className.indexOf(e)&&(t.className+=e)}},{key:"render",value:function(){return n["createElement"](w["a"],null,this.renderTabs)}}]),c}(n["Component"]);B.TabPane=o["a"],B.defaultProps={hideAdd:!1,tabPosition:"top"}},ZTW2:function(e,t,c){},"Znn+":function(e,t,c){"use strict";c("cIOH"),c("9ama")},ZvpZ:function(e,t,c){"use strict";var n=c("H4fg"),r=c("61s2"),o=c("RlXo"),a=r["a"];t["a"]={locale:"en",Pagination:n["a"],DatePicker:r["a"],TimePicker:o["a"],Calendar:a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",selectAll:"Select current page",selectInvert:"Invert current page",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}}},bE4E:function(e,t,c){},bKJz:function(e,t,c){},bXwC:function(e,t,c){},bac3:function(e,t,c){"use strict";(function(e){c.d(t,"e",function(){return h}),c.d(t,"d",function(){return f}),c.d(t,"a",function(){return v}),c.d(t,"b",function(){return m}),c.d(t,"c",function(){return d}),c.d(t,"f",function(){return y});var n=c("QbLZ"),r=c.n(n),o=c("iCc5"),a=c.n(o),l=c("V7oC"),i=c.n(l),u=c("HXN9"),s=c("q1tI");function h(t){e&&Object({NODE_ENV:"production"})||console.error("[@ant-design/icons-react]: "+t+".")}function f(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,c){var n=e[c];switch(c){case"class":t.className=n,delete t["class"];break;default:t[c]=n}return t},{})}var v=function(){function e(){a()(this,e),this.collection={}}return i()(e,[{key:"clear",value:function(){this.collection={}}},{key:"delete",value:function(e){return delete this.collection[e]}},{key:"get",value:function(e){return this.collection[e]}},{key:"has",value:function(e){return Boolean(this.collection[e])}},{key:"set",value:function(e,t){return this.collection[e]=t,this}},{key:"size",get:function(){return Object.keys(this.collection).length}}]),e}();function m(e,t,c){return c?s["createElement"](e.tag,r()({key:t},p(e.attrs),c),(e.children||[]).map(function(c,n){return m(c,t+"-"+e.tag+"-"+n)})):s["createElement"](e.tag,r()({key:t},p(e.attrs)),(e.children||[]).map(function(c,n){return m(c,t+"-"+e.tag+"-"+n)}))}function d(e){return Object(u["generate"])(e)[0]}function y(e,t){switch(t){case"fill":return e+"-fill";case"outline":return e+"-o";case"twotone":return e+"-twotone";default:throw new TypeError("Unknown theme type: "+t+", name: "+e)}}}).call(this,c("Q2Ig"))},bbsP:function(e,t,c){"use strict";c("cIOH"),c("CWI+")},cIOH:function(e,t,c){},czTT:function(e,t,c){},d0bx:function(e,t,c){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(c("Zss7")),o=2,a=16,l=5,i=5,u=15,s=5,h=4;function f(e,t,c){var n;return n=Math.round(e.h)>=60&&Math.round(e.h)<=240?c?Math.round(e.h)-o*t:Math.round(e.h)+o*t:c?Math.round(e.h)+o*t:Math.round(e.h)-o*t,n<0?n+=360:n>=360&&(n-=360),n}function p(e,t,c){return 0===e.h&&0===e.s?e.s:(n=c?Math.round(100*e.s)-a*t:t===h?Math.round(100*e.s)+a:Math.round(100*e.s)+l*t,n>100&&(n=100),c&&t===s&&n>10&&(n=10),n<6&&(n=6),n);var n}function v(e,t,c){return c?Math.round(100*e.v)+i*t:Math.round(100*e.v)-u*t}function m(e){for(var t=[],c=r.default(e),n=s;n>0;n-=1){var o=c.toHsv(),a=r.default({h:f(o,n,!0),s:p(o,n,!0),v:v(o,n,!0)}).toHexString();t.push(a)}t.push(c.toHexString());for(n=1;n<=h;n+=1){o=c.toHsv(),a=r.default({h:f(o,n),s:p(o,n),v:v(o,n)}).toHexString();t.push(a)}return t}t.default=m},foW8:function(e,t,c){"use strict";t.__esModule=!0;var n=c("q1tI"),r=l(n),o=c("mdmE"),a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||a.default,e.exports=t["default"]},g0mS:function(e,t,c){"use strict";c.d(t,"a",function(){return C});var n,r=c("q1tI"),o=c("i8i4"),a=c("/dDc"),l=c("oHiP"),i=c("H84U");function u(e){"@babel/helpers - typeof";return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var c=0;c=0)){var r=e.props.insertExtraNode;e.extraNode=document.createElement("div");var o=y(e),l=o.extraNode;l.className="ant-click-animating-node";var i=e.getAttributeName();t.setAttribute(i,"true"),n=n||document.createElement("style"),c&&"#ffffff"!==c&&"rgb(255, 255, 255)"!==c&&M(c)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(c)&&"transparent"!==c&&(e.csp&&e.csp.nonce&&(n.nonce=e.csp.nonce),l.style.borderColor=c,n.innerHTML="\n [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ".concat(c,";\n }"),document.body.contains(n)||document.body.appendChild(n)),r&&t.appendChild(l),a["a"].addStartEventListener(t,e.onTransitionStart),a["a"].addEndEventListener(t,e.onTransitionEnd)}},e.onTransitionStart=function(t){if(!e.destroy){var c=Object(o["findDOMNode"])(y(e));t&&t.target===c&&(e.animationStart||e.resetEffect(c))}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var c=function(c){if("INPUT"!==c.target.tagName&&!g(c.target)){e.resetEffect(t);var n=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout(function(){return e.onClick(t,n)},0),l["a"].cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=Object(l["a"])(function(){e.animationStart=!1},10)}};return t.addEventListener("click",c,!0),{cancel:function(){t.removeEventListener("click",c,!0)}}}},e.renderWave=function(t){var c=t.csp,n=e.props.children;return e.csp=c,n},e}return f(c,[{key:"componentDidMount",value:function(){var e=Object(o["findDOMNode"])(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroy=!0}},{key:"getAttributeName",value:function(){var e=this.props.insertExtraNode;return e?"ant-click-animating":"ant-click-animating-without-extra-node"}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,c=this.getAttributeName();e.setAttribute(c,"false"),n&&(n.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),a["a"].removeStartEventListener(e,this.onTransitionStart),a["a"].removeEndEventListener(e,this.onTransitionEnd)}}},{key:"render",value:function(){return r["createElement"](i["a"],null,this.renderWave)}}]),c}(r["Component"])},g9YV:function(e,t,c){"use strict";c("cIOH"),c("pED+"),c("R9oj"),c("7Kak"),c("KCY9"),c("qVdP"),c("T2oS"),c("DjyN")},i8oR:function(e,t,c){},iQDF:function(e,t,c){"use strict";c("cIOH"),c("ZTW2"),c("5NDa"),c("pL63"),c("+BJd")},jCWc:function(e,t,c){"use strict";c("cIOH"),c("1GLa")},"jsC+":function(e,t,c){"use strict";var n=c("q1tI"),r=c("eDIo"),o=c("TSYQ"),a=c.n(o),l=c("H84U"),i=c("6CfX"),u=c("CtXQ"),s=c("CWQg");function h(e){"@babel/helpers - typeof";return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(){return f=Object.assign||function(e){for(var t=1;t=0?"slide-down":"slide-up"}},{key:"render",value:function(){return n["createElement"](l["a"],null,this.renderDropDown)}}]),c}(n["Component"]);H.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft"};var O=c("2/Rp");function V(e){"@babel/helpers - typeof";return V="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function w(){return w=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:1,c=o++,n=t;function l(){n-=1,n<=0?(e(),delete a[c]):a[c]=r()(l)}return a[c]=r()(l),c}l.cancel=function(e){void 0!==e&&(r.a.cancel(a[e]),delete a[e])},l.ids=a},"pED+":function(e,t,c){},pL63:function(e,t,c){},pwpV:function(e,t,c){},qCM6:function(e,t,c){},qVdP:function(e,t,c){"use strict";c("cIOH"),c("KAsB"),c("+L6B")},qrJ5:function(e,t,c){"use strict";var n,r=c("q1tI"),o=c("TSYQ"),a=c.n(o),l=c("17x9"),i=c("H84U"),u=c("o/2+"),s=c("CWQg");function h(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function f(){return f=Object.assign||function(e){for(var t=1;t0?{marginLeft:y[0]/-2,marginRight:y[0]/-2}:{}),y[1]>0?{marginTop:y[1]/-2,marginBottom:y[1]/-2}:{}),p),g=C({},m);return delete g.gutter,r["createElement"](u["a"].Provider,{value:{gutter:y}},r["createElement"]("div",C({},g,{className:b,style:z}),v))},e}return w(c,[{key:"componentDidMount",value:function(){var e=this;this.token=g.subscribe(function(t){var c=e.props.gutter;("object"===M(c)||Array.isArray(c)&&("object"===M(c[0])||"object"===M(c[1])))&&e.setState({screens:t})})}},{key:"componentWillUnmount",value:function(){g.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,c=this.state.screens,n=Array.isArray(t)?t:[t,0];return n.forEach(function(t,n){if("object"===M(t))for(var r=0;re.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&(y=o.getOptions().map(function(e){return n["createElement"](_,{prefixCls:v,key:e.value.toString(),disabled:"disabled"in e?e.disabled:a.disabled,value:e.value,checked:-1!==l.value.indexOf(e.value),onChange:e.onChange,className:"".concat(m,"-item")},e.label)}));var b=u()(m,s);return n["createElement"]("div",F({className:b,style:h},d),y)},o.state={value:e.value||e.defaultValue||[],registeredValues:[]},o}return Y(c,[{key:"getChildContext",value:function(){return{checkboxGroup:{toggleOption:this.toggleOption,value:this.state.value,disabled:this.props.disabled,name:this.props.name,registerValue:this.registerValue,cancelValue:this.cancelValue}}}},{key:"shouldComponentUpdate",value:function(e,t){return!h()(this.props,e)||!h()(this.state,t)}},{key:"getOptions",value:function(){var e=this.props.options;return e.map(function(e){return"string"===typeof e?{label:e,value:e}:e})}},{key:"render",value:function(){return n["createElement"](g["a"],null,this.renderGroup)}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}]),c}(n["Component"]);ne.defaultProps={options:[]},ne.propTypes={defaultValue:l["array"],value:l["array"],options:l["array"].isRequired,onChange:l["func"]},ne.childContextTypes={checkboxGroup:l["any"]},Object(f["polyfill"])(ne);var re=ne;_.Group=re;var oe=_,ae=c("9yH6"),le=function(e){return n["createElement"]("div",{className:e.className,onClick:function(e){return e.stopPropagation()}},e.children)},ie=le;function ue(e){return pe(e)||fe(e)||he(e)||se()}function se(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function he(e,t){if(e){if("string"===typeof e)return ve(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?ve(e,t):void 0}}function fe(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function pe(e){if(Array.isArray(e))return ve(e)}function ve(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",c=[],n=function e(n){n.forEach(function(n){if(n[t]){var r=me({},n);delete r[t],c.push(r),n[t].length>0&&e(n[t])}else c.push(n)})};return n(e),c}function ye(e,t){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map(function(e,n){var r={};return e[c]&&(r[c]=ye(e[c],t,c)),me(me({},t(e,n)),r)})}function be(e,t){return e.reduce(function(e,c){if(t(c)&&e.push(c),c.children){var n=be(c.children,t);e.push.apply(e,ue(n))}return e},[])}function ze(e){var t=[];return n["Children"].forEach(e,function(e){if(n["isValidElement"](e)){var c=me({},e.props);e.key&&(c.key=e.key),e.type&&e.type.__ANT_TABLE_COLUMN_GROUP&&(c.children=ze(c.children)),t.push(c)}}),t}function ge(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e||[]).forEach(function(e){var c=e.value,n=e.children;t[c.toString()]=c,ge(n,t)}),t}function Me(e){"@babel/helpers - typeof";return Me="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Me(e)}function Ce(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function He(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Oe(e,t){for(var c=0;c=0?delete c[e.key]:c[e.key]=e.keyPath,r.setState({keyPathOfSelectedItem:c})}},r.renderFilterIcon=function(){var e,t=r.props,c=t.column,o=t.locale,a=t.prefixCls,l=t.selectedKeys,i=l&&l.length>0,s=c.filterIcon;"function"===typeof s&&(s=s(i));var h=u()((e={},Ce(e,"".concat(a,"-selected"),"filtered"in c?c.filtered:i),Ce(e,"".concat(a,"-open"),r.getDropdownVisible()),e));return s?n["isValidElement"](s)?n["cloneElement"](s,{title:s.props.title||o.filterTitle,className:u()("".concat(a,"-icon"),h,s.props.className),onClick:Te}):n["createElement"]("span",{className:u()("".concat(a,"-icon"),h)},s):n["createElement"](b["a"],{title:o.filterTitle,type:"filter",theme:"filled",className:h,onClick:Te})};var o="filterDropdownVisible"in e.column&&e.column.filterDropdownVisible;return r.state={selectedKeys:e.selectedKeys,valueKeys:ge(e.column.filters),keyPathOfSelectedItem:{},visible:o,prevProps:e},r}return Ve(c,[{key:"componentDidMount",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"componentDidUpdate",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"getDropdownVisible",value:function(){return!this.neverShown&&this.state.visible}},{key:"setVisible",value:function(e){var t=this.props.column;"filterDropdownVisible"in t||this.setState({visible:e}),t.onFilterDropdownVisibleChange&&t.onFilterDropdownVisibleChange(e)}},{key:"hasSubMenu",value:function(){var e=this.props.column.filters,t=void 0===e?[]:e;return t.some(function(e){return!!(e.children&&e.children.length>0)})}},{key:"confirmFilter",value:function(){var e=this.props,t=e.column,c=e.selectedKeys,n=e.confirmFilter,r=this.state,o=r.selectedKeys,a=r.valueKeys,l=t.filterDropdown;h()(o,c)||n(t,l?o:o.map(function(e){return a[e]}).filter(function(e){return void 0!==e}))}},{key:"renderMenus",value:function(e){var t=this,c=this.props,r=c.dropdownPrefixCls,o=c.prefixCls;return e.map(function(e){if(e.children&&e.children.length>0){var c=t.state.keyPathOfSelectedItem,a=Object.keys(c).some(function(t){return c[t].indexOf(e.value)>=0}),l=u()("".concat(o,"-dropdown-submenu"),Ce({},"".concat(r,"-submenu-contain-selected"),a));return n["createElement"](v["d"],{title:e.text,popupClassName:l,key:e.value.toString()},t.renderMenus(e.children))}return t.renderMenuItem(e)})}},{key:"renderMenuItem",value:function(e){var t=this.props.column,c=this.state.selectedKeys,r=!("filterMultiple"in t)||t.filterMultiple,o=(c||[]).map(function(e){return e.toString()}),a=r?n["createElement"](oe,{checked:o.indexOf(e.value.toString())>=0}):n["createElement"](ae["a"],{checked:o.indexOf(e.value.toString())>=0});return n["createElement"](v["b"],{key:e.value},a,n["createElement"]("span",null,e.text))}},{key:"render",value:function(){var e=this,t=this.state.selectedKeys,c=this.props,r=c.column,o=c.locale,a=c.prefixCls,l=c.dropdownPrefixCls,i=c.getPopupContainer,s=!("filterMultiple"in r)||r.filterMultiple,h=u()(Ce({},"".concat(l,"-menu-without-submenu"),!this.hasSubMenu())),f=r.filterDropdown;f instanceof Function&&(f=f({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(t){return e.setSelectedKeys({selectedKeys:t})},selectedKeys:t,confirm:this.handleConfirm,clearFilters:this.handleClearFilters,filters:r.filters,visible:this.getDropdownVisible()}));var p=f?n["createElement"](ie,{className:"".concat(a,"-dropdown")},f):n["createElement"](ie,{className:"".concat(a,"-dropdown")},n["createElement"](v["e"],{multiple:s,onClick:this.handleMenuItemClick,prefixCls:"".concat(l,"-menu"),className:h,onSelect:this.setSelectedKeys,onDeselect:this.setSelectedKeys,selectedKeys:t&&t.map(function(e){return e.toString()}),getPopupContainer:i},this.renderMenus(r.filters)),n["createElement"]("div",{className:"".concat(a,"-dropdown-btns")},n["createElement"]("a",{className:"".concat(a,"-dropdown-link confirm"),onClick:this.handleConfirm},o.filterConfirm),n["createElement"]("a",{className:"".concat(a,"-dropdown-link clear"),onClick:this.handleClearFilters},o.filterReset)));return n["createElement"](y["a"],{trigger:["click"],placement:"bottomRight",overlay:p,visible:this.getDropdownVisible(),onVisibleChange:this.onVisibleChange,getPopupContainer:i,forceRender:!0},this.renderFilterIcon())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=e.column,n=t.prevProps,r={prevProps:e};return"selectedKeys"in e&&!h()(n.selectedKeys,e.selectedKeys)&&(r.selectedKeys=e.selectedKeys),h()((n.column||{}).filters,(e.column||{}).filters)||(r.valueKeys=ge(e.column.filters)),"filterDropdownVisible"in c&&(r.visible=c.filterDropdownVisible),r}}]),c}(n["Component"]);je.defaultProps={column:{}},Object(f["polyfill"])(je);var Ne=je;function Re(){return Re=Object.assign||function(e){for(var t=1;t=0:t.getState().selectedRowKeys.indexOf(n)>=0||c.indexOf(n)>=0,r}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe(function(){var t=e.getCheckState(e.props);e.setState({checked:t})})}},{key:"render",value:function(){var e=this.props,t=e.type,c=e.rowIndex,r=Xe(e,["type","rowIndex"]),o=this.state.checked;return"radio"===t?n["createElement"](ae["a"],Fe({checked:o,value:c},r)):n["createElement"](oe,Fe({checked:o},r))}}]),c}(n["Component"]),Je=c("BvKs");function $e(e){"@babel/helpers - typeof";return $e="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$e(e)}function et(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function tt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ct(e,t){for(var c=0;c=0})}function pt(e){var t=e.store,c=e.data;if(!c.length)return!1;var n=ft(ht(ht({},e),{data:c,type:"some",byDefaultChecked:!1}))&&!ft(ht(ht({},e),{data:c,type:"every",byDefaultChecked:!1})),r=ft(ht(ht({},e),{data:c,type:"some",byDefaultChecked:!0}))&&!ft(ht(ht({},e),{data:c,type:"every",byDefaultChecked:!0}));return t.getState().selectionDirty?n:n||r}function vt(e){var t=e.store,c=e.data;return!!c.length&&(t.getState().selectionDirty?ft(ht(ht({},e),{data:c,type:"every",byDefaultChecked:!1})):ft(ht(ht({},e),{data:c,type:"every",byDefaultChecked:!1}))||ft(ht(ht({},e),{data:c,type:"every",byDefaultChecked:!0})))}var mt=function(e){rt(c,e);var t=at(c);function c(e){var n;return tt(this,c),n=t.call(this,e),n.state={checked:!1,indeterminate:!1},n.handleSelectAllChange=function(e){var t=e.target.checked;n.props.onSelect(t?"all":"removeAll",0,null)},n.defaultSelections=e.hideDefaultSelections?[]:[{key:"all",text:e.locale.selectAll},{key:"invert",text:e.locale.selectInvert}],n}return nt(c,[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"setCheckState",value:function(e){var t=vt(e),c=pt(e);this.setState(function(e){var n={};return c!==e.indeterminate&&(n.indeterminate=c),t!==e.checked&&(n.checked=t),n})}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe(function(){e.setCheckState(e.props)})}},{key:"renderMenus",value:function(e){var t=this;return e.map(function(e,c){return n["createElement"](Je["a"].Item,{key:e.key||c},n["createElement"]("div",{onClick:function(){t.props.onSelect(e.key,c,e.onSelect)}},e.text))})}},{key:"render",value:function(){var e=this.props,t=e.disabled,c=e.prefixCls,r=e.selections,o=e.getPopupContainer,a=this.state,l=a.checked,i=a.indeterminate,s="".concat(c,"-selection"),h=null;if(r){var f=Array.isArray(r)?this.defaultSelections.concat(r):this.defaultSelections,p=n["createElement"](Je["a"],{className:"".concat(s,"-menu"),selectedKeys:[]},this.renderMenus(f));h=f.length>0?n["createElement"](y["a"],{overlay:p,getPopupContainer:o},n["createElement"]("div",{className:"".concat(s,"-down")},n["createElement"](b["a"],{type:"down"}))):null}return n["createElement"]("div",{className:s},n["createElement"](oe,{className:u()(et({},"".concat(s,"-select-all-custom"),h)),checked:l,indeterminate:i,disabled:t,onChange:this.handleSelectAllChange}),h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=vt(e),n=pt(e),r={};return n!==t.indeterminate&&(r.indeterminate=n),c!==t.checked&&(r.checked=c),r}}]),c}(n["Component"]);Object(f["polyfill"])(mt);var dt=mt;function yt(e){"@babel/helpers - typeof";return yt="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},yt(e)}function bt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function zt(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}}),t&>(e,t)}function gt(e,t){return gt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},gt(e,t)}function Mt(e){var t=Ot();return function(){var c,n=Vt(e);if(t){var r=Vt(this).constructor;c=Reflect.construct(n,arguments,r)}else c=n.apply(this,arguments);return Ct(this,c)}}function Ct(e,t){return!t||"object"!==yt(t)&&"function"!==typeof t?Ht(e):t}function Ht(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ot(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Vt(e){return Vt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Vt(e)}var wt=function(e){zt(c,e);var t=Mt(c);function c(){return bt(this,c),t.apply(this,arguments)}return c}(n["Component"]);function St(e){"@babel/helpers - typeof";return St="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},St(e)}function Lt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function kt(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}}),t&&xt(e,t)}function xt(e,t){return xt=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},xt(e,t)}function Et(e){var t=jt();return function(){var c,n=Nt(e);if(t){var r=Nt(this).constructor;c=Reflect.construct(n,arguments,r)}else c=n.apply(this,arguments);return Pt(this,c)}}function Pt(e,t){return!t||"object"!==St(t)&&"function"!==typeof t?Tt(e):t}function Tt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jt(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Nt(e){return Nt=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Nt(e)}var Rt=function(e){kt(c,e);var t=Et(c);function c(){return Lt(this,c),t.apply(this,arguments)}return c}(n["Component"]);function _t(e){"@babel/helpers - typeof";return _t="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_t(e)}function At(){return At=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"tr",t=function(t){Ut(o,t);var c=qt(o);function o(e){var t;Dt(this,o),t=c.call(this,e),t.store=e.store;var n=t.store.getState(),r=n.selectedRowKeys;return t.state={selected:r.indexOf(e.rowKey)>=0},t}return Kt(o,[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"subscribe",value:function(){var e=this,t=this.props,c=t.store,n=t.rowKey;this.unsubscribe=c.subscribe(function(){var t=e.store.getState(),c=t.selectedRowKeys,r=c.indexOf(n)>=0;r!==e.state.selected&&e.setState({selected:r})})}},{key:"render",value:function(){var t=Object(r["a"])(this.props,["prefixCls","rowKey","store"]),c=u()(this.props.className,Ft({},"".concat(this.props.prefixCls,"-row-selected"),this.state.selected));return n["createElement"](e,At(At({},t),{className:c}),this.props.children)}}]),o}(n["Component"]);return t}Rt.__ANT_TABLE_COLUMN_GROUP=!0;var Zt=c("xEkU"),Jt=c.n(Zt);function $t(e,t){if("undefined"===typeof window)return 0;var c=t?"pageYOffset":"pageXOffset",n=t?"scrollTop":"scrollLeft",r=e===window,o=r?e[c]:e[n];return r&&"number"!==typeof o&&(o=document.documentElement[n]),o}function ec(e,t,c,n){var r=c-t;return e/=n/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function tc(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=t.getContainer,n=void 0===c?function(){return window}:c,r=t.callback,o=t.duration,a=void 0===o?450:o,l=n(),i=$t(l,!0),u=Date.now(),s=function t(){var c=Date.now(),n=c-u,o=ec(n>a?a:n,i,e,a);l===window?window.scrollTo(window.pageXOffset,o):l.scrollTop=o,n0&&void 0!==arguments[0]?arguments[0]:{},t=e&&e.body&&e.body.row;return Nc(Nc({},e),{body:Nc(Nc({},e.body),{row:Xt(t)})})};function qc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e===t||["table","header","body"].every(function(c){return h()(e[c],t[c])})}function Wc(e,t){return be(t||(e||{}).columns||[],function(e){return"undefined"!==typeof e.filteredValue})}function Gc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,c={};return Wc(e,t).forEach(function(e){var t=Dc(e);c[t]=e.filteredValue}),c}function Yc(e,t){return Object.keys(t).length!==Object.keys(e.filters).length||Object.keys(t).some(function(c){return t[c]!==e.filters[c]})}var Qc=function(e){Lc(c,e);var t=xc(c);function c(e){var o;Vc(this,c),o=t.call(this,e),o.setTableRef=function(e){o.rcTable=e},o.getCheckboxPropsByItem=function(e,t){var c=Fc(o.props);if(!c.getCheckboxProps)return{};var n=o.getRecordKey(e,t);if(!o.props.checkboxPropsCache[n]){o.props.checkboxPropsCache[n]=c.getCheckboxProps(e)||{};var r=o.props.checkboxPropsCache[n];Object(M["a"])(!("checked"in r)&&!("defaultChecked"in r),"Table","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}return o.props.checkboxPropsCache[n]},o.getRecordKey=function(e,t){var c=o.props.rowKey,n="function"===typeof c?c(e,t):e[c];return Object(M["a"])(void 0!==n,"Table","Each record in dataSource of table should have a unique `key` prop, or set `rowKey` of Table to an unique primary key, see https://u.ant.design/table-row-key"),void 0===n?t:n},o.onRow=function(e,t,c){var n=o.props.onRow,r=n?n(t,c):{};return Nc(Nc({},r),{prefixCls:e,store:o.props.store,rowKey:o.getRecordKey(t,c)})},o.generatePopupContainerFunc=function(e){var t=o.props.scroll,c=o.rcTable;return e||(t&&c?function(){return c.tableNode}:void 0)},o.scrollToFirstRow=function(){var e=o.props.scroll;e&&!1!==e.scrollToFirstRowOnChange&&tc(0,{getContainer:function(){return o.rcTable.bodyTable}})},o.handleFilter=function(e,t){var c=o.props,n=Nc({},o.state.pagination),r=Nc(Nc({},o.state.filters),Oc({},Dc(e),t)),a=[];ye(o.state.columns,function(e){e.children||a.push(Dc(e))}),Object.keys(r).forEach(function(e){a.indexOf(e)<0&&delete r[e]}),c.pagination&&(n.current=1,n.onChange(n.current));var l={pagination:n,filters:{}},i=Nc({},r);Wc(o.state).forEach(function(e){var t=Dc(e);t&&delete i[t]}),Object.keys(i).length>0&&(l.filters=i),"object"===Hc(c.pagination)&&"current"in c.pagination&&(l.pagination=Nc(Nc({},n),{current:o.state.pagination.current})),o.setState(l,function(){o.scrollToFirstRow(),o.props.store.setState({selectionDirty:!1});var e=o.props.onChange;e&&e.apply(null,o.prepareParamsArguments(Nc(Nc({},o.state),{selectionDirty:!1,filters:r,pagination:n})))})},o.handleSelect=function(e,t,c){var n=c.target.checked,r=c.nativeEvent,a=o.props.store.getState().selectionDirty?[]:o.getDefaultSelection(),l=o.props.store.getState().selectedRowKeys.concat(a),i=o.getRecordKey(e,t),u=o.state.pivot,s=o.getFlatCurrentPageData(),h=t;if(o.props.expandedRowRender&&(h=s.findIndex(function(e){return o.getRecordKey(e,t)===i})),r.shiftKey&&void 0!==u&&h!==u){var f=[],p=Math.sign(u-h),v=Math.abs(u-h),m=0,d=function(){var e=h+m*p;m+=1;var t=s[e],c=o.getRecordKey(t,e),r=o.getCheckboxPropsByItem(t,e);r.disabled||(l.includes(c)?n||(l=l.filter(function(e){return c!==e}),f.push(c)):n&&(l.push(c),f.push(c)))};while(m<=v)d();o.setState({pivot:h}),o.props.store.setState({selectionDirty:!0}),o.setSelectedRowKeys(l,{selectWay:"onSelectMultiple",record:e,checked:n,changeRowKeys:f,nativeEvent:r})}else n?l.push(o.getRecordKey(e,h)):l=l.filter(function(e){return i!==e}),o.setState({pivot:h}),o.props.store.setState({selectionDirty:!0}),o.setSelectedRowKeys(l,{selectWay:"onSelect",record:e,checked:n,changeRowKeys:void 0,nativeEvent:r})},o.handleRadioSelect=function(e,t,c){var n=c.target.checked,r=c.nativeEvent,a=o.getRecordKey(e,t),l=[a];o.props.store.setState({selectionDirty:!0}),o.setSelectedRowKeys(l,{selectWay:"onSelect",record:e,checked:n,changeRowKeys:void 0,nativeEvent:r})},o.handleSelectRow=function(e,t,c){var n,r=o.getFlatCurrentPageData(),a=o.props.store.getState().selectionDirty?[]:o.getDefaultSelection(),l=o.props.store.getState().selectedRowKeys.concat(a),i=r.filter(function(e,t){return!o.getCheckboxPropsByItem(e,t).disabled}).map(function(e,t){return o.getRecordKey(e,t)}),u=[],s="onSelectAll";switch(e){case"all":i.forEach(function(e){l.indexOf(e)<0&&(l.push(e),u.push(e))}),s="onSelectAll",n=!0;break;case"removeAll":i.forEach(function(e){l.indexOf(e)>=0&&(l.splice(l.indexOf(e),1),u.push(e))}),s="onSelectAll",n=!1;break;case"invert":i.forEach(function(e){l.indexOf(e)<0?l.push(e):l.splice(l.indexOf(e),1),u.push(e),s="onSelectInvert"});break;default:break}o.props.store.setState({selectionDirty:!0});var h=o.props.rowSelection,f=2;if(h&&h.hideDefaultSelections&&(f=0),t>=f&&"function"===typeof c)return c(i);o.setSelectedRowKeys(l,{selectWay:s,checked:n,changeRowKeys:u})},o.handlePageChange=function(e){var t=o.props,c=Nc({},o.state.pagination);c.current=e||(c.current||1);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a0){var r=this.getSortStateFromColumns(t);Ic(r.sortColumn,c)&&r.sortOrder===n||this.setState(r)}}},{key:"getDefaultSelection",value:function(){var e=this,t=Fc(this.props);return t.getCheckboxProps?this.getFlatData().filter(function(t,c){return e.getCheckboxPropsByItem(t,c).defaultChecked}).map(function(t,c){return e.getRecordKey(t,c)}):[]}},{key:"getDefaultPagination",value:function(e){var t,c,n="object"===Hc(e.pagination)?e.pagination:{};return"current"in n?t=n.current:"defaultCurrent"in n&&(t=n.defaultCurrent),"pageSize"in n?c=n.pageSize:"defaultPageSize"in n&&(c=n.defaultPageSize),this.hasPagination(e)?Nc(Nc(Nc({},Kc),n),{current:t||1,pageSize:c||10}):{}}},{key:"getSortOrderColumns",value:function(e){return be(e||(this.state||{}).columns||[],function(e){return"sortOrder"in e})}},{key:"getDefaultFilters",value:function(e){var t=Gc(this.state,e),c=be(e||[],function(e){return"undefined"!==typeof e.defaultFilteredValue}),n=c.reduce(function(e,t){var c=Dc(t);return e[c]=t.defaultFilteredValue,e},{});return Nc(Nc({},n),t)}},{key:"getDefaultSortOrder",value:function(e){var t=this.getSortStateFromColumns(e),c=be(e||[],function(e){return null!=e.defaultSortOrder})[0];return c&&!t.sortColumn?{sortColumn:c,sortOrder:c.defaultSortOrder}:t}},{key:"getSortStateFromColumns",value:function(e){var t=this.getSortOrderColumns(e).filter(function(e){return e.sortOrder})[0];return t?{sortColumn:t,sortOrder:t.sortOrder}:{sortColumn:null,sortOrder:null}}},{key:"getMaxCurrent",value:function(e){var t=this.state.pagination,c=t.current,n=t.pageSize;return(c-1)*n>=e?Math.floor((e-1)/n)+1:c}},{key:"getSorterFn",value:function(e){var t=e||this.state,c=t.sortOrder,n=t.sortColumn;if(c&&n&&"function"===typeof n.sorter)return function(e,t){var r=n.sorter(e,t,c);return 0!==r?"descend"===c?-r:r:0}}},{key:"getCurrentPageData",value:function(){var e,t,c=this.getLocalData(),n=this.state;return this.hasPagination()?(t=n.pagination.pageSize,e=this.getMaxCurrent(n.pagination.total||c.length)):(t=Number.MAX_VALUE,e=1),(c.length>t||t===Number.MAX_VALUE)&&(c=c.slice((e-1)*t,e*t)),c}},{key:"getFlatData",value:function(){var e=this.props.childrenColumnName;return de(this.getLocalData(null,!1),e)}},{key:"getFlatCurrentPageData",value:function(){var e=this.props.childrenColumnName;return de(this.getCurrentPageData(),e)}},{key:"getLocalData",value:function(e){var t=this,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e||this.state,r=this.props.dataSource,o=r||[];o=o.slice(0);var a=this.getSorterFn(n);return a&&(o=this.recursiveSort(o,a)),c&&n.filters&&Object.keys(n.filters).forEach(function(e){var c=t.findColumn(e);if(c){var r=n.filters[e]||[];if(0!==r.length){var a=c.onFilter;o=a?o.filter(function(e){return r.some(function(t){return a(t,e)})}):o}}}),o}},{key:"setSelectedRowKeys",value:function(e,t){var c=this,n=t.selectWay,r=t.record,o=t.checked,a=t.changeRowKeys,l=t.nativeEvent,i=Fc(this.props);!i||"selectedRowKeys"in i||this.props.store.setState({selectedRowKeys:e});var u=this.getFlatData();if(i.onChange||i[n]){var s=u.filter(function(t,n){return e.indexOf(c.getRecordKey(t,n))>=0});if(i.onChange&&i.onChange(e,s),"onSelect"===n&&i.onSelect)i.onSelect(r,o,s,l);else if("onSelectMultiple"===n&&i.onSelectMultiple){var h=u.filter(function(e,t){return a.indexOf(c.getRecordKey(e,t))>=0});i.onSelectMultiple(o,s,h)}else if("onSelectAll"===n&&i.onSelectAll){var f=u.filter(function(e,t){return a.indexOf(c.getRecordKey(e,t))>=0});i.onSelectAll(o,s,f)}else"onSelectInvert"===n&&i.onSelectInvert&&i.onSelectInvert(e)}}},{key:"toggleSortOrder",value:function(e){var t,c=e.sortDirections||this.props.sortDirections,n=this.state,r=n.sortOrder,o=n.sortColumn;if(Ic(o,e)&&void 0!==r){var a=c.indexOf(r)+1;t=a===c.length?void 0:c[a]}else t=c[0];var l={sortOrder:t,sortColumn:t?e:null};0===this.getSortOrderColumns().length&&this.setState(l,this.scrollToFirstRow);var i=this.props.onChange;i&&i.apply(null,this.prepareParamsArguments(Nc(Nc({},this.state),l),e))}},{key:"hasPagination",value:function(e){return!1!==(e||this.props).pagination}},{key:"isSortColumn",value:function(e){var t=this.state.sortColumn;return!(!e||!t)&&Dc(t)===Dc(e)}},{key:"prepareParamsArguments",value:function(e,t){var c=Nc({},e.pagination);delete c.onChange,delete c.onShowSizeChange;var n=e.filters,r={},o=t;e.sortColumn&&e.sortOrder&&(o=e.sortColumn,r.column=e.sortColumn,r.order=e.sortOrder),o&&(r.field=o.dataIndex,r.columnKey=Dc(o));var a={currentDataSource:this.getLocalData(e)};return[c,n,r,a]}},{key:"findColumn",value:function(e){var t;return ye(this.state.columns,function(c){Dc(c)===e&&(t=c)}),t}},{key:"recursiveSort",value:function(e,t){var c=this,n=this.props.childrenColumnName,r=void 0===n?"children":n;return e.sort(t).map(function(e){return e[r]?Nc(Nc({},e),Oc({},r,c.recursiveSort(e[r],t))):e})}},{key:"renderPagination",value:function(e,t){if(!this.hasPagination())return null;var c="default",r=this.state.pagination;r.size?c=r.size:"middle"!==this.props.size&&"small"!==this.props.size||(c="small");var o=r.position||"bottom",a=r.total||this.getLocalData().length;return a>0&&(o===t||"both"===o)?n["createElement"](cc["a"],Nc({key:"pagination-".concat(t)},r,{className:u()(r.className,"".concat(e,"-pagination")),onChange:this.handlePageChange,total:a,size:c,current:this.getMaxCurrent(a),onShowSizeChange:this.handleShowSizeChange})):null}},{key:"renderRowSelection",value:function(e){var t=this,c=e.prefixCls,r=e.locale,a=e.getPopupContainer,l=this.props.rowSelection,i=this.state.columns.concat();if(l){var s=this.getFlatCurrentPageData().filter(function(e,c){return!l.getCheckboxProps||!t.getCheckboxPropsByItem(e,c).disabled}),h=u()("".concat(c,"-selection-column"),Oc({},"".concat(c,"-selection-column-custom"),l.selections)),f=Oc({key:"selection-column",render:this.renderSelectionBox(l.type),className:h,fixed:l.fixed,width:l.columnWidth,title:l.columnTitle},o["INTERNAL_COL_DEFINE"],{className:"".concat(c,"-selection-col")});if("radio"!==l.type){var p=s.every(function(e,c){return t.getCheckboxPropsByItem(e,c).disabled});f.title=f.title||n["createElement"](dt,{store:this.props.store,locale:r,data:s,getCheckboxPropsByItem:this.getCheckboxPropsByItem,getRecordKey:this.getRecordKey,disabled:p,prefixCls:c,onSelect:this.handleSelectRow,selections:l.selections,hideDefaultSelections:l.hideDefaultSelections,getPopupContainer:this.generatePopupContainerFunc(a)})}"fixed"in l?f.fixed=l.fixed:i.some(function(e){return"left"===e.fixed||!0===e.fixed})&&(f.fixed="left"),i[0]&&"selection-column"===i[0].key?i[0]=f:i.unshift(f)}return i}},{key:"renderColumnsDropdown",value:function(e){var t=this,c=e.prefixCls,r=e.dropdownPrefixCls,o=e.columns,a=e.locale,l=e.getPopupContainer,i=this.state,s=i.sortOrder,h=i.filters;return ye(o,function(e,o){var i,f,p,v=Dc(e,o),m=e.onHeaderCell,d=t.isSortColumn(e);if(e.filters&&e.filters.length>0||e.filterDropdown){var y=v in h?h[v]:[];f=n["createElement"](Ne,{locale:a,column:e,selectedKeys:y,confirmFilter:t.handleFilter,prefixCls:"".concat(c,"-filter"),dropdownPrefixCls:r||"ant-dropdown",getPopupContainer:t.generatePopupContainerFunc(l),key:"filter-dropdown"})}if(e.sorter){var z=e.sortDirections||t.props.sortDirections,g=d&&"ascend"===s,M=d&&"descend"===s,C=-1!==z.indexOf("ascend")&&n["createElement"](b["a"],{className:"".concat(c,"-column-sorter-up ").concat(g?"on":"off"),type:"caret-up",theme:"filled"}),H=-1!==z.indexOf("descend")&&n["createElement"](b["a"],{className:"".concat(c,"-column-sorter-down ").concat(M?"on":"off"),type:"caret-down",theme:"filled"});p=n["createElement"]("div",{title:a.sortTitle,className:u()("".concat(c,"-column-sorter-inner"),C&&H&&"".concat(c,"-column-sorter-inner-full")),key:"sorter"},C,H),m=function(c){var n={};e.onHeaderCell&&(n=Nc({},e.onHeaderCell(c)));var r=n.onClick;return n.onClick=function(){t.toggleSortOrder(e),r&&r.apply(void 0,arguments)},n}}return Nc(Nc({},e),{className:u()(e.className,(i={},Oc(i,"".concat(c,"-column-has-actions"),p||f),Oc(i,"".concat(c,"-column-has-filters"),f),Oc(i,"".concat(c,"-column-has-sorters"),p),Oc(i,"".concat(c,"-column-sort"),d&&s),i)),title:[n["createElement"]("span",{key:"title",className:"".concat(c,"-header-column")},n["createElement"]("div",{className:p?"".concat(c,"-column-sorters"):void 0},n["createElement"]("span",{className:"".concat(c,"-column-title")},t.renderColumnTitle(e.title)),n["createElement"]("span",{className:"".concat(c,"-column-sorter")},p))),f],onHeaderCell:m})})}},{key:"renderColumnTitle",value:function(e){var t=this.state,c=t.filters,n=t.sortOrder,r=t.sortColumn;return e instanceof Function?e({filters:c,sortOrder:n,sortColumn:r}):e}},{key:"render",value:function(){return n["createElement"](g["a"],null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=t.prevProps,n=e.columns||ze(e.children),r=Nc(Nc({},t),{prevProps:e,columns:n});if("pagination"in e||"pagination"in c){var o=Nc(Nc(Nc({},Kc),t.pagination),e.pagination);o.current=o.current||1,o.pageSize=o.pageSize||10,r=Nc(Nc({},r),{pagination:!1!==e.pagination?o:Uc})}e.rowSelection&&"selectedRowKeys"in e.rowSelection?e.store.setState({selectedRowKeys:e.rowSelection.selectedRowKeys||[]}):c.rowSelection&&!e.rowSelection&&e.store.setState({selectedRowKeys:[]}),"dataSource"in e&&e.dataSource!==c.dataSource&&e.store.setState({selectionDirty:!1}),e.setCheckboxPropsCache({});var a=Wc(r,r.columns);if(a.length>0){var l=Gc(r,r.columns),i=Nc({},r.filters);Object.keys(l).forEach(function(e){i[e]=l[e]}),Yc(r,i)&&(r=Nc(Nc({},r),{filters:i}))}if(!qc(e.components,c.components)){var u=Bc(e.components);r=Nc(Nc({},r),{components:u})}return r}}]),c}(n["Component"]);Qc.propTypes={dataSource:l["array"],columns:l["array"],prefixCls:l["string"],useFixedHeader:l["bool"],rowSelection:l["object"],className:l["string"],size:l["string"],loading:l["oneOfType"]([l["bool"],l["object"]]),bordered:l["bool"],onChange:l["func"],locale:l["object"],dropdownPrefixCls:l["string"],sortDirections:l["array"],getPopupContainer:l["func"]},Qc.defaultProps={dataSource:[],useFixedHeader:!1,className:"",size:"default",loading:!1,bordered:!1,indentSize:20,locale:{},rowKey:"key",showHeader:!0,sortDirections:["ascend","descend"],childrenColumnName:"children"},Object(f["polyfill"])(Qc);var Xc=function(e){Lc(c,e);var t=xc(c);function c(e){var n;return Vc(this,c),n=t.call(this,e),n.setCheckboxPropsCache=function(e){return n.CheckboxPropsCache=e},n.CheckboxPropsCache={},n.store=_e({selectedRowKeys:Fc(e).selectedRowKeys||[],selectionDirty:!1}),n}return Sc(c,[{key:"render",value:function(){return n["createElement"](Qc,Nc({},this.props,{store:this.store,checkboxPropsCache:this.CheckboxPropsCache,setCheckboxPropsCache:this.setCheckboxPropsCache}))}}]),c}(n["Component"]);Xc.displayName="withStore(Table)",Xc.Column=wt,Xc.ColumnGroup=Rt;var Zc=Xc;t["a"]=Zc},"wEI+":function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("wd/R"),a=c("veqR"),l=c("ul5b"),i=c("6CfX");function u(e){"@babel/helpers - typeof";return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){return s=Object.assign||function(e){for(var t=1;t0?c:null}}]),n}(o["Component"]);return t.defaultProps={allowClear:!0,showToday:!0},Object(l["polyfill"])(t),t}var P=c("wgp+"),T=c("61s2"),j=c("YMnH"),N=c("5lmr"),R=c("RlXo");function _(e){"@babel/helpers - typeof";return _="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function A(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function F(){return F=Object.assign||function(e){for(var t=1;t-1||e.indexOf("h")>-1||e.indexOf("k")>-1,showMinute:e.indexOf("m")>-1,showSecond:e.indexOf("s")>-1}}var J=function(e){U(c,e);var t=q(c);function c(e){var n;I(this,c),n=t.call(this,e),n.getDefaultLocale=function(){var e=F(F({},R["a"]),n.props.locale);return e},n.handleOpenClose=function(e){var t=e.open,c=n.props.onOpenChange;c&&c(t)},n.saveTimePicker=function(e){n.timePickerRef=e},n.handleChange=function(e){"value"in n.props||n.setState({value:e});var t=n.props,c=t.onChange,r=t.format,o=void 0===r?"HH:mm:ss":r;c&&c(e,e&&e.format(o)||"")},n.renderTimePicker=function(e){return o["createElement"](p["a"],null,function(t){var c=t.getPopupContainer,r=t.getPrefixCls,a=n.props,l=a.getPopupContainer,i=a.prefixCls,u=a.className,f=a.addon,p=a.placeholder,v=X(a,["getPopupContainer","prefixCls","className","addon","placeholder"]),m=v.size,d=Object(h["a"])(v,["defaultValue","suffixIcon","allowEmpty","allowClear"]),y=n.getDefaultFormat(),b=r("time-picker",i),z=s()(u,A({},"".concat(b,"-").concat(m),!!m)),g=function(e){return f?o["createElement"]("div",{className:"".concat(b,"-panel-addon")},f(e)):null};return o["createElement"](N["a"],F({},Z(y),d,{allowEmpty:n.getAllowClear(),prefixCls:b,getPopupContainer:l||c,ref:n.saveTimePicker,format:y,className:z,value:n.state.value,placeholder:void 0===p?e.placeholder:p,onChange:n.handleChange,onOpen:n.handleOpenClose,onClose:n.handleOpenClose,addon:g,inputIcon:n.renderInputIcon(b),clearIcon:n.renderClearIcon(b)}))})};var r=e.value||e.defaultValue;if(r&&!Object(m["a"])(a).isMoment(r))throw new Error("The value/defaultValue of TimePicker must be a moment object after `antd@2.0`, see: https://u.ant.design/time-picker-value");return n.state={value:r},Object(v["a"])(!("allowEmpty"in e),"TimePicker","`allowEmpty` is deprecated. Please use `allowClear` instead."),n}return K(c,[{key:"getDefaultFormat",value:function(){var e=this.props,t=e.format,c=e.use12Hours;return t||(c?"h:mm:ss a":"HH:mm:ss")}},{key:"getAllowClear",value:function(){var e=this.props,t=e.allowClear,c=e.allowEmpty;return"allowClear"in this.props?t:c}},{key:"focus",value:function(){this.timePickerRef.focus()}},{key:"blur",value:function(){this.timePickerRef.blur()}},{key:"renderInputIcon",value:function(e){var t=this.props.suffixIcon,c=t&&o["isValidElement"](t)&&o["cloneElement"](t,{className:s()(t.props.className,"".concat(e,"-clock-icon"))})||o["createElement"](f["a"],{type:"clock-circle",className:"".concat(e,"-clock-icon")});return o["createElement"]("span",{className:"".concat(e,"-icon")},c)}},{key:"renderClearIcon",value:function(e){var t=this.props.clearIcon,c="".concat(e,"-clear");return t&&o["isValidElement"](t)?o["cloneElement"](t,{className:s()(t.props.className,c)}):o["createElement"](f["a"],{type:"close-circle",className:c,theme:"filled"})}},{key:"render",value:function(){return o["createElement"](j["a"],{componentName:"TimePicker",defaultLocale:this.getDefaultLocale()},this.renderTimePicker)}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value}:null}}]),c}(o["Component"]);J.defaultProps={align:{offset:[0,-2]},disabledHours:void 0,disabledMinutes:void 0,disabledSeconds:void 0,hideDisabledOptions:!1,placement:"bottomLeft",transitionName:"slide-up",focusOnOpen:!0},Object(l["polyfill"])(J);function $(e){"@babel/helpers - typeof";return $="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},$(e)}function ee(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function te(){return te=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&(e[1]=void 0);var r=Re(e,2),o=r[0],a=r[1];"function"===typeof c.onChange&&c.onChange(e,[y(o,c.format),y(a,c.format)])},n.handleOpenChange=function(e){"open"in n.props||n.setState({open:e}),!1===e&&n.clearHoverValue();var t=n.props.onOpenChange;t&&t(e)},n.handleShowDateChange=function(e){return n.setState({showDate:e})},n.handleHoverChange=function(e){return n.setState({hoverValue:e})},n.handleRangeMouseLeave=function(){n.state.open&&n.clearHoverValue()},n.handleCalendarInputSelect=function(e){var t=Re(e,1),c=t[0];c&&n.setState(function(t){var c=t.showDate;return{value:e,showDate:Ke(e)||c}})},n.handleRangeClick=function(e){"function"===typeof e&&(e=e()),n.setValue(e,!0);var t=n.props,c=t.onOk,r=t.onOpenChange;c&&c(e),r&&r(!1)},n.renderFooter=function(){var e=n.props,t=e.ranges,c=e.renderExtraFooter,r=Te(n),a=r.prefixCls,l=r.tagPrefixCls;if(!t&&!c)return null;var i=c?o["createElement"]("div",{className:"".concat(a,"-footer-extra"),key:"extra"},c()):null,u=t&&Object.keys(t).map(function(e){var c=t[e],r="function"===typeof c?c.call(Te(n)):c;return o["createElement"](ge["a"],{key:e,prefixCls:l,color:"blue",onClick:function(){return n.handleRangeClick(c)},onMouseEnter:function(){return n.setState({hoverValue:r})},onMouseLeave:n.handleRangeMouseLeave},e)}),s=u&&u.length>0?o["createElement"]("div",{className:"".concat(a,"-footer-extra ").concat(a,"-range-quick-selector"),key:"range"},u):null;return[s,i]},n.renderRangePicker=function(e){var t,c=e.getPrefixCls,r=Te(n),a=r.state,l=r.props,u=a.value,h=a.showDate,p=a.hoverValue,m=a.open,d=l.prefixCls,b=l.tagPrefixCls,z=l.popupStyle,g=l.style,M=l.disabledDate,C=l.disabledTime,H=l.showTime,O=l.showToday,V=l.ranges,w=l.onOk,S=l.locale,L=l.localeCode,k=l.format,x=l.dateRender,E=l.onCalendarChange,P=l.suffixIcon,T=l.separator,j=c("calendar",d),N=c("tag",b);n.prefixCls=j,n.tagPrefixCls=N,qe(u,L),qe(h,L),Object(v["a"])(!("onOK"in l),"RangePicker","It should be `RangePicker[onOk]`, instead of `onOK`!");var R=s()((t={},Ve(t,"".concat(j,"-time"),H),Ve(t,"".concat(j,"-range-with-ranges"),V),t)),_={onChange:n.handleChange},A={onOk:n.handleChange};l.timePicker?_.onChange=function(e){return n.handleChange(e)}:A={},"mode"in l&&(A.mode=l.mode);var F=Array.isArray(l.placeholder)?l.placeholder[0]:S.lang.rangePlaceholder[0],I=Array.isArray(l.placeholder)?l.placeholder[1]:S.lang.rangePlaceholder[1],D=o["createElement"](ye["a"],Oe({},A,{seperator:T,onChange:E,format:k,prefixCls:j,className:R,renderFooter:n.renderFooter,timePicker:l.timePicker,disabledDate:M,disabledTime:C,dateInputPlaceholder:[F,I],locale:S.lang,onOk:w,dateRender:x,value:h,onValueChange:n.handleShowDateChange,hoverValue:p,onHoverChange:n.handleHoverChange,onPanelChange:l.onPanelChange,showToday:O,onInputSelect:n.handleCalendarInputSelect})),K={};l.showTime&&(K.width=g&&g.width||350);var U=Re(u,2),B=U[0],q=U[1],W=!l.disabled&&l.allowClear&&u&&(B||q)?o["createElement"](f["a"],{type:"close-circle",className:"".concat(j,"-picker-clear"),onClick:n.clearSelection,theme:"filled"}):null,G=o["createElement"](Ce,{suffixIcon:P,prefixCls:j}),Y=function(e){var t=e.value,c=Re(t,2),n=c[0],r=c[1];return o["createElement"]("span",{className:l.pickerInputClass},o["createElement"]("input",{disabled:l.disabled,readOnly:!0,value:y(n,l.format),placeholder:F,className:"".concat(j,"-range-picker-input"),tabIndex:-1}),o["createElement"]("span",{className:"".concat(j,"-range-picker-separator")}," ",T," "),o["createElement"]("input",{disabled:l.disabled,readOnly:!0,value:y(r,l.format),placeholder:I,className:"".concat(j,"-range-picker-input"),tabIndex:-1}),W,G)};return o["createElement"]("span",{ref:n.savePicker,id:"number"===typeof l.id?l.id.toString():l.id,className:s()(l.className,l.pickerClass),style:Oe(Oe({},g),K),tabIndex:l.disabled?-1:0,onFocus:l.onFocus,onBlur:l.onBlur,onMouseEnter:l.onMouseEnter,onMouseLeave:l.onMouseLeave},o["createElement"](i["a"],Oe({},l,_,{calendar:D,value:u,open:m,onOpenChange:n.handleOpenChange,prefixCls:"".concat(j,"-picker-container"),style:z}),Y))};var r=e.value||e.defaultValue||[],l=Re(r,2),u=l[0],h=l[1];if(u&&!Object(m["a"])(a).isMoment(u)||h&&!Object(m["a"])(a).isMoment(h))throw new Error("The value/defaultValue of RangePicker must be a moment object array after `antd@2.0`, see: https://u.ant.design/date-picker-value");var p=!r||Be(r)?e.defaultPickerValue:r;return n.state={value:r,showDate:Ue(p||Object(m["a"])(a)()),open:e.open,hoverValue:[]},n}return Le(c,[{key:"componentDidUpdate",value:function(e,t){"open"in this.props||!t.open||this.state.open||this.focus()}},{key:"setValue",value:function(e,t){this.handleChange(e),!t&&this.props.showTime||"open"in this.props||this.setState({open:!1})}},{key:"focus",value:function(){this.picker.focus()}},{key:"blur",value:function(){this.picker.blur()}},{key:"render",value:function(){return o["createElement"](p["a"],null,this.renderRangePicker)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=null;if("value"in e){var n=e.value||[];c={value:n},ze()(e.value,t.value)||(c=Oe(Oe({},c),{showDate:Ke(n,e.mode)||t.showDate}))}return"open"in e&&t.open!==e.open&&(c=Oe(Oe({},c),{open:e.open})),c}}]),c}(o["Component"]);We.defaultProps={allowClear:!0,showToday:!1,separator:"~"},Object(l["polyfill"])(We);var Ge=We;function Ye(e){"@babel/helpers - typeof";return Ye="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ye(e)}function Qe(){return Qe=Object.assign||function(e){for(var t=1;t0?{paddingLeft:t[0]/2,paddingRight:t[0]/2}:{}),t[1]>0?{paddingTop:t[1]/2,paddingBottom:t[1]/2}:{}),c)),n["createElement"]("div",s({},M,{style:c,className:V}),g)})},e}return v(c,[{key:"render",value:function(){return n["createElement"](i["a"],null,this.renderCol)}}]),c}(n["Component"]);O.propTypes={span:r["number"],order:r["number"],offset:r["number"],push:r["number"],pull:r["number"],className:r["string"],children:r["node"],xs:H,sm:H,md:H,lg:H,xl:H,xxl:H}},"/wGt":function(e,t,c){"use strict";var n=c("q1tI"),r=c("fcSX"),o=c("foW8"),a=c.n(o),l=c("TSYQ"),i=c.n(l),u=c("BGR+"),s=c("6CfX"),h=c("CtXQ"),f=c("H84U"),p=c("CWQg");function v(e){"@babel/helpers - typeof";return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(){return m=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.arrowWidth,c=void 0===t?5:t,n=e.horizontalArrowShift,r=void 0===n?16:n,o=e.verticalArrowShift,a=void 0===o?12:o,l=e.autoAdjustOverflow,s=void 0===l||l,h={left:{points:["cr","cl"],offset:[-4,0]},right:{points:["cl","cr"],offset:[4,0]},top:{points:["bc","tc"],offset:[0,-4]},bottom:{points:["tc","bc"],offset:[0,4]},topLeft:{points:["bl","tc"],offset:[-(r+c),-4]},leftTop:{points:["tr","cl"],offset:[-4,-(a+c)]},topRight:{points:["br","tc"],offset:[r+c,-4]},rightTop:{points:["tl","cr"],offset:[4,-(a+c)]},bottomRight:{points:["tr","bc"],offset:[r+c,4]},rightBottom:{points:["bl","cr"],offset:[4,a+c]},bottomLeft:{points:["tl","bc"],offset:[-(r+c),4]},leftBottom:{points:["br","cl"],offset:[-4,a+c]}};return Object.keys(h).forEach(function(t){h[t]=e.arrowPointAtCenter?u(u({},h[t]),{overflow:p(s),targetOffset:f}):u(u({},i["a"][t]),{overflow:p(s)}),h[t].ignoreShake=!0}),h}var m=c("H84U");function d(e){"@babel/helpers - typeof";return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function y(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function z(e,t){for(var c=0;c=0||n.indexOf("Bottom")>=0?a.top="".concat(o.height-t.offset[1],"px"):(n.indexOf("Top")>=0||n.indexOf("bottom")>=0)&&(a.top="".concat(-t.offset[1],"px")),n.indexOf("left")>=0||n.indexOf("Right")>=0?a.left="".concat(o.width-t.offset[0],"px"):(n.indexOf("right")>=0||n.indexOf("Left")>=0)&&(a.left="".concat(-t.offset[0],"px")),e.style.transformOrigin="".concat(a.left," ").concat(a.top)}},r.renderTooltip=function(e){var t=e.getPopupContainer,c=e.getPrefixCls,a=V(r),i=a.props,u=a.state,s=i.prefixCls,h=i.openClassName,f=i.getPopupContainer,p=i.getTooltipContainer,v=i.children,m=c("tooltip",s),d=u.visible;"visible"in i||!r.isNoTitle()||(d=!1);var b=x(n["isValidElement"](v)?v:n["createElement"]("span",null,v)),z=b.props,g=l()(z.className,y({},h||"".concat(m,"-open"),!0));return n["createElement"](o["a"],L({},r.props,{prefixCls:m,getTooltipContainer:f||p||t,ref:r.saveTooltip,builtinPlacements:r.getPlacements(),overlay:r.getOverlay(),visible:d,onVisibleChange:r.onVisibleChange,onPopupAlign:r.onPopupAlign}),d?n["cloneElement"](b,{className:g}):b)},r.state={visible:!!e.visible||!!e.defaultVisible},r}return g(c,[{key:"getPopupDomNode",value:function(){return this.tooltip.getPopupDomNode()}},{key:"getPlacements",value:function(){var e=this.props,t=e.builtinPlacements,c=e.arrowPointAtCenter,n=e.autoAdjustOverflow;return t||v({arrowPointAtCenter:c,verticalArrowShift:8,autoAdjustOverflow:n})}},{key:"isNoTitle",value:function(){var e=this.props,t=e.title,c=e.overlay;return!t&&!c&&0!==t}},{key:"getOverlay",value:function(){var e=this.props,t=e.title,c=e.overlay;return 0===t?t:c||t||""}},{key:"render",value:function(){return n["createElement"](m["a"],null,this.renderTooltip)}}],[{key:"getDerivedStateFromProps",value:function(e){return"visible"in e?{visible:e.visible}:null}}]),c}(n["Component"]);E.defaultProps={placement:"top",transitionName:"zoom-big-fast",mouseEnterDelay:.1,mouseLeaveDelay:.1,arrowPointAtCenter:!1,autoAdjustOverflow:!0},Object(r["polyfill"])(E);t["a"]=E},"3wW7":function(e,t,c){},"5Dmo":function(e,t,c){"use strict";c("cIOH"),c("5YgA")},"5NDa":function(e,t,c){"use strict";c("cIOH"),c("OnYD"),c("+L6B")},"5YgA":function(e,t,c){},"5rEg":function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("VCL8"),a=c("TSYQ"),l=c.n(a),i=c("BGR+"),u=c("CWQg"),s=c("CtXQ");function h(e){"@babel/helpers - typeof";return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function v(e,t){for(var c=0;c1&&void 0!==arguments[1]&&arguments[1],c=e.getAttribute("id")||e.getAttribute("data-reactid")||e.getAttribute("name");if(t&&ze[c])return ze[c];var n=window.getComputedStyle(e),r=n.getPropertyValue("box-sizing")||n.getPropertyValue("-moz-box-sizing")||n.getPropertyValue("-webkit-box-sizing"),o=parseFloat(n.getPropertyValue("padding-bottom"))+parseFloat(n.getPropertyValue("padding-top")),a=parseFloat(n.getPropertyValue("border-bottom-width"))+parseFloat(n.getPropertyValue("border-top-width")),l=be.map(function(e){return"".concat(e,":").concat(n.getPropertyValue(e))}).join(";"),i={sizingStyle:l,paddingSize:o,borderSize:a,boxSizing:r};return t&&c&&(ze[c]=i),i}function Me(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;ve||(ve=document.createElement("textarea"),document.body.appendChild(ve)),e.getAttribute("wrap")?ve.setAttribute("wrap",e.getAttribute("wrap")):ve.removeAttribute("wrap");var r=ge(e,t),o=r.paddingSize,a=r.borderSize,l=r.boxSizing,i=r.sizingStyle;ve.setAttribute("style","".concat(i,";").concat(ye)),ve.value=e.value||e.placeholder||"";var u,s=Number.MIN_SAFE_INTEGER,h=Number.MAX_SAFE_INTEGER,f=ve.scrollHeight;if("border-box"===l?f+=a:"content-box"===l&&(f-=o),null!==c||null!==n){ve.value=" ";var p=ve.scrollHeight-o;null!==c&&(s=p*c,"border-box"===l&&(s=s+o+a),f=Math.max(s,f)),null!==n&&(h=p*n,"border-box"===l&&(h=h+o+a),u=f>h?"":"hidden",f=Math.min(h,f))}return{height:f,minHeight:s,maxHeight:h,overflowY:u}}var Ce=c("oHiP");function He(e){"@babel/helpers - typeof";return He="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},He(e)}function Oe(){return Oe=Object.assign||function(e){for(var t=1;t0&&(m=s.map(function(e){return"string"===typeof e?n["createElement"](V,{key:e,prefixCls:f,disabled:r.props.disabled,value:e,checked:r.state.value===e},e):n["createElement"](V,{key:"radio-group-value-options-".concat(e.value),prefixCls:f,disabled:e.disabled||r.props.disabled,value:e.value,checked:r.state.value===e.value},e.label)})),n["createElement"]("div",{className:v,style:o.style,onMouseEnter:o.onMouseEnter,onMouseLeave:o.onMouseLeave,id:o.id},m)},"value"in e)o=e.value;else if("defaultValue"in e)o=e.defaultValue;else{var a=F(e.children);o=a&&a.value}return r.state={value:o},r}return E(c,[{key:"getChildContext",value:function(){return{radioGroup:{onChange:this.onRadioChange,value:this.state.value,disabled:this.props.disabled,name:this.props.name}}}},{key:"shouldComponentUpdate",value:function(e,t){return!u()(this.props,e)||!u()(this.state,t)}},{key:"render",value:function(){return n["createElement"](s["a"],null,this.renderGroup)}}],[{key:"getDerivedStateFromProps",value:function(e){if("value"in e)return{value:e.value};var t=F(e.children);return t?{value:t.value}:null}}]),c}(n["Component"]);I.defaultProps={buttonStyle:"outline"},I.childContextTypes={radioGroup:r["any"]},Object(w["polyfill"])(I);var D=I;function K(e){"@babel/helpers - typeof";return K="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},K(e)}function U(){return U=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var c=0,n=new Array(t);c0));return n["createElement"](X.Provider,{value:{siderHook:this.getSiderHook()}},n["createElement"](l,A({className:u},i),r))}}]),c}(n["Component"]),ee=Z({suffixCls:"layout",tagName:"section",displayName:"Layout"})($),te=Z({suffixCls:"layout-header",tagName:"header",displayName:"Header"})(J),ce=Z({suffixCls:"layout-footer",tagName:"footer",displayName:"Footer"})(J),ne=Z({suffixCls:"layout-content",tagName:"main",displayName:"Content"})(J);ee.Header=te,ee.Footer=ce,ee.Content=ne;var re=c("CtXQ"),oe=function(e){return!isNaN(parseFloat(e))&&isFinite(e)},ae=oe;function le(e){"@babel/helpers - typeof";return le="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},le(e)}function ie(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function ue(){return ue=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"";return e+=1,"".concat(t).concat(e)}}(),Ve=function(e){pe(c,e);var t=me(c);function c(e){var r,o,i;return se(this,c),r=t.call(this,e),r.responsiveHandler=function(e){r.setState({below:e.matches});var t=r.props.onBreakpoint;t&&t(e.matches),r.state.collapsed!==e.matches&&r.setCollapsed(e.matches,"responsive")},r.setCollapsed=function(e,t){"collapsed"in r.props||r.setState({collapsed:e});var c=r.props.onCollapse;c&&c(e,t)},r.toggle=function(){var e=!r.state.collapsed;r.setCollapsed(e,"clickTrigger")},r.belowShowChange=function(){r.setState(function(e){var t=e.belowShow;return{belowShow:!t}})},r.renderSider=function(e){var t,c=e.getPrefixCls,o=r.props,i=o.prefixCls,u=o.className,s=o.theme,h=o.collapsible,f=o.reverseArrow,p=o.trigger,v=o.style,m=o.width,d=o.collapsedWidth,y=o.zeroWidthTriggerStyle,b=ge(o,["prefixCls","className","theme","collapsible","reverseArrow","trigger","style","width","collapsedWidth","zeroWidthTriggerStyle"]),z=c("layout-sider",i),g=Object(l["a"])(b,["collapsed","defaultCollapsed","onCollapse","breakpoint","onBreakpoint","siderHook","zeroWidthTriggerStyle"]),M=r.state.collapsed?d:m,C=ae(M)?"".concat(M,"px"):String(M),H=0===parseFloat(String(d||0))?n["createElement"]("span",{onClick:r.toggle,className:"".concat(z,"-zero-width-trigger ").concat(z,"-zero-width-trigger-").concat(f?"right":"left"),style:y},n["createElement"](re["a"],{type:"bars"})):null,O={expanded:f?n["createElement"](re["a"],{type:"right"}):n["createElement"](re["a"],{type:"left"}),collapsed:f?n["createElement"](re["a"],{type:"left"}):n["createElement"](re["a"],{type:"right"})},V=r.state.collapsed?"collapsed":"expanded",w=O[V],S=null!==p?H||n["createElement"]("div",{className:"".concat(z,"-trigger"),onClick:r.toggle,style:{width:C}},p||w):null,L=ue(ue({},v),{flex:"0 0 ".concat(C),maxWidth:C,minWidth:C,width:C}),k=a()(u,z,"".concat(z,"-").concat(s),(t={},ie(t,"".concat(z,"-collapsed"),!!r.state.collapsed),ie(t,"".concat(z,"-has-trigger"),h&&null!==p&&!H),ie(t,"".concat(z,"-below"),!!r.state.below),ie(t,"".concat(z,"-zero-width"),0===parseFloat(C)),t));return n["createElement"]("aside",ue({className:k},g,{style:L}),n["createElement"]("div",{className:"".concat(z,"-children")},r.props.children),h||r.state.below&&H?S:null)},r.uniqueId=Oe("ant-sider-"),"undefined"!==typeof window&&(o=window.matchMedia),o&&e.breakpoint&&e.breakpoint in Ce&&(r.mql=o("(max-width: ".concat(Ce[e.breakpoint],")"))),i="collapsed"in e?e.collapsed:e.defaultCollapsed,r.state={collapsed:i,below:!1},r}return fe(c,[{key:"componentDidMount",value:function(){this.mql&&(this.mql.addListener(this.responsiveHandler),this.responsiveHandler(this.mql)),this.props.siderHook&&this.props.siderHook.addSider(this.uniqueId)}},{key:"componentWillUnmount",value:function(){this.mql&&this.mql.removeListener(this.responsiveHandler),this.props.siderHook&&this.props.siderHook.removeSider(this.uniqueId)}},{key:"render",value:function(){var e=this.state.collapsed,t=this.props.collapsedWidth;return n["createElement"](He.Provider,{value:{siderCollapsed:e,collapsedWidth:t}},n["createElement"](k["a"],null,this.renderSider))}}],[{key:"getDerivedStateFromProps",value:function(e){return"collapsed"in e?{collapsed:e.collapsed}:null}}]),c}(n["Component"]);Ve.defaultProps={collapsible:!1,defaultCollapsed:!1,reverseArrow:!1,width:200,collapsedWidth:80,style:{},theme:"dark"},Object(i["polyfill"])(Ve);n["Component"];function we(e){"@babel/helpers - typeof";return we="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},we(e)}function Se(){return Se=Object.assign||function(e){for(var t=1;t=0;(t||r)&&o.restoreModeVerticalFromInline()},o.handleClick=function(e){o.handleOpenChange([]);var t=o.props.onClick;t&&t(e)},o.handleOpenChange=function(e){o.setOpenKeys(e);var t=o.props.onOpenChange;t&&t(e)},o.renderMenu=function(e){var t=e.getPopupContainer,c=e.getPrefixCls,i=o.props,u=i.prefixCls,s=i.className,h=i.theme,f=i.collapsedWidth,p=Object(l["a"])(o.props,["collapsedWidth","siderCollapsed"]),v=o.getRealMenuMode(),m=o.getOpenMotionProps(v),d=c("menu",u),y=a()(s,"".concat(d,"-").concat(h),Qe({},"".concat(d,"-inline-collapsed"),o.getInlineCollapsed())),b=Ye({openKeys:o.state.openKeys,onOpenChange:o.handleOpenChange,className:y,mode:v},m);"inline"!==v&&(b.onClick=o.handleClick);var z=o.getInlineCollapsed()&&(0===f||"0"===f||"0px"===f);return z&&(b.openKeys=[]),n["createElement"](r["e"],Ye({getPopupContainer:t},p,b,{prefixCls:d,onTransitionEnd:o.handleTransitionEnd,onMouseEnter:o.handleMouseEnter}))},Object(Ie["a"])(!("onOpen"in e||"onClose"in e),"Menu","`onOpen` and `onClose` are removed, please use `onOpenChange` instead, see: https://u.ant.design/menu-on-open-change."),Object(Ie["a"])(!("inlineCollapsed"in e&&"inline"!==e.mode),"Menu","`inlineCollapsed` should only be used when `mode` is inline."),Object(Ie["a"])(!(void 0!==e.siderCollapsed&&"inlineCollapsed"in e),"Menu","`inlineCollapsed` not control Menu under Sider. Should set `collapsed` on Sider instead."),"openKeys"in e?i=e.openKeys:"defaultOpenKeys"in e&&(i=e.defaultOpenKeys),o.state={openKeys:i||[],switchingModeFromInline:!1,inlineOpenKeys:[],prevProps:e},o}return Je(c,[{key:"componentWillUnmount",value:function(){De["a"].cancel(this.mountRafId)}},{key:"setOpenKeys",value:function(e){"openKeys"in this.props||this.setState({openKeys:e})}},{key:"getRealMenuMode",value:function(){var e=this.getInlineCollapsed();if(this.state.switchingModeFromInline&&e)return"inline";var t=this.props.mode;return e?"vertical":t}},{key:"getInlineCollapsed",value:function(){var e=this.props.inlineCollapsed;return void 0!==this.props.siderCollapsed?this.props.siderCollapsed:e}},{key:"getOpenMotionProps",value:function(e){var t=this.props,c=t.openTransitionName,n=t.openAnimation,r=t.motion;return r?{motion:r}:n?(Object(Ie["a"])("string"===typeof n,"Menu","`openAnimation` do not support object. Please use `motion` instead."),{openAnimation:n}):c?{openTransitionName:c}:"horizontal"===e?{motion:{motionName:"slide-up"}}:"inline"===e?{motion:We}:{motion:{motionName:this.state.switchingModeFromInline?"":"zoom-big"}}}},{key:"restoreModeVerticalFromInline",value:function(){var e=this.state.switchingModeFromInline;e&&this.setState({switchingModeFromInline:!1})}},{key:"render",value:function(){return n["createElement"](p.Provider,{value:{inlineCollapsed:this.getInlineCollapsed()||!1,antdMenuTheme:this.props.theme}},n["createElement"](k["a"],null,this.renderMenu))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=t.prevProps,n={prevProps:e};return"inline"===c.mode&&"inline"!==e.mode&&(n.switchingModeFromInline=!0),"openKeys"in e?n.openKeys=e.openKeys:((e.inlineCollapsed&&!c.inlineCollapsed||e.siderCollapsed&&!c.siderCollapsed)&&(n.switchingModeFromInline=!0,n.inlineOpenKeys=t.openKeys,n.openKeys=[]),(!e.inlineCollapsed&&c.inlineCollapsed||!e.siderCollapsed&&c.siderCollapsed)&&(n.openKeys=t.inlineOpenKeys,n.inlineOpenKeys=[])),n}}]),c}(n["Component"]);at.defaultProps={className:"",theme:"light",focusable:!1},Object(i["polyfill"])(at);var lt=function(e){$e(c,e);var t=tt(c);function c(){return Xe(this,c),t.apply(this,arguments)}return Je(c,[{key:"render",value:function(){var e=this;return n["createElement"](He.Consumer,null,function(t){return n["createElement"](at,Ye({},e.props,t))})}}]),c}(n["Component"]);lt.Divider=r["a"],lt.Item=Fe,lt.SubMenu=S,lt.ItemGroup=r["c"]},"CWI+":function(e,t,c){},CWQg:function(e,t,c){"use strict";c.d(t,"a",function(){return n});var n=function(){for(var e=arguments.length,t=new Array(e),c=0;c1&&void 0!==arguments[1]?arguments[1]:C;if(e){var c=this.definitions.get(e);return c&&"function"===typeof c.icon&&(c=s()({},c,{icon:c.icon(t.primaryColor,t.secondaryColor)})),c}}},{key:"setTwoToneColors",value:function(e){var t=e.primaryColor,c=e.secondaryColor;C.primaryColor=t,C.secondaryColor=c||Object(M["c"])(t)}},{key:"getTwoToneColors",value:function(){return s()({},C)}}]),t}(n["Component"]);H.displayName="IconReact",H.definitions=new M["a"];var O=H;function V(){return V=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.scriptUrl,c=e.extraCommonProps,r=void 0===c?{}:c;if("undefined"!==typeof document&&"undefined"!==typeof window&&"function"===typeof document.createElement&&"string"===typeof t&&t.length&&!S.has(t)){var o=document.createElement("script");o.setAttribute("src",t),o.setAttribute("data-namespace",t),S.add(t),document.body.appendChild(o)}var a=function(e){var t=e.type,c=e.children,o=w(e,["type","children"]),a=null;return e.type&&(a=n["createElement"]("use",{xlinkHref:"#".concat(t)})),c&&(a=c),n["createElement"]($,V({},r,o),a)};return a.displayName="Iconfont",a}var k=c("6CfX"),x={width:"1em",height:"1em",fill:"currentColor","aria-hidden":!0,focusable:"false"},E=/-fill$/,P=/-o$/,T=/-twotone$/;function j(e){var t=null;return E.test(e)?t="filled":P.test(e)?t="outlined":T.test(e)&&(t="twoTone"),t}function N(e){return e.replace(E,"").replace(P,"").replace(T,"")}function R(e,t){var c=e;return"filled"===t?c+="-fill":"outlined"===t?c+="-o":"twoTone"===t?c+="-twotone":Object(k["a"])(!1,"Icon","This icon '".concat(e,"' has unknown theme '").concat(t,"'")),c}function _(e){var t=e;switch(e){case"cross":t="close";break;case"interation":t="interaction";break;case"canlendar":t="calendar";break;case"colum-height":t="column-height";break;default:}return Object(k["a"])(t===e,"Icon","Icon '".concat(e,"' was a typo and is now deprecated, please use '").concat(t,"' instead.")),t}var A=c("YMnH");function F(e){return O.setTwoToneColors({primaryColor:e})}function I(){var e=O.getTwoToneColors();return e.primaryColor}function D(){return D=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var c=0,n=new Array(t);cr?o>=a?10+e:20+e:o<=a?10+e:e}},{key:"renderCurrentNumber",value:function(e,t,c){if("number"===typeof t){var r=this.getPositionByNum(t,c),o=this.state.animateStarted||void 0===H(this.lastCount)[c];return n["createElement"]("span",{className:"".concat(e,"-only"),style:{transition:o?"none":void 0,msTransform:"translateY(".concat(100*-r,"%)"),WebkitTransform:"translateY(".concat(100*-r,"%)"),transform:"translateY(".concat(100*-r,"%)")},key:c},O(r,"".concat(e,"-only-unit")))}return n["createElement"]("span",{key:"symbol",className:"".concat(e,"-symbol")},t)}},{key:"renderNumberElement",value:function(e){var t=this,c=this.state.count;return c&&Number(c)%1===0?H(c).map(function(c,n){return t.renderCurrentNumber(e,c,n)}).reverse():c}},{key:"render",value:function(){return n["createElement"](s["a"],null,this.renderScrollNumber)}},{key:"clearTimeout",value:function(e){function t(){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(){this.timeout&&(clearTimeout(this.timeout),this.timeout=void 0)})}],[{key:"getDerivedStateFromProps",value:function(e,t){return"count"in e?t.count===e.count?null:{animateStarted:!0}:null}}]),c}(n["Component"]);V.defaultProps={count:null,onAnimated:function(){}},Object(u["polyfill"])(V);var w=V,S=c("09Wf");function L(e){"@babel/helpers - typeof";return L="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},L(e)}function k(){return k=Object.assign||function(e){for(var t=1;tc?"".concat(c,"+"):t;return n}},{key:"getDispayCount",value:function(){var e=this.isDot();return e?"":this.getNumberedDispayCount()}},{key:"getScrollNumberTitle",value:function(){var e=this.props,t=e.title,c=e.count;return t||("string"===typeof c||"number"===typeof c?c:void 0)}},{key:"getStyleWithOffset",value:function(){var e=this.props,t=e.offset,c=e.style;return t?k({right:-parseInt(t[0],10),marginTop:t[1]},c):c}},{key:"getBadgeClassName",value:function(e){var t,c=this.props,n=c.className,r=c.children;return i()(n,e,(t={},x(t,"".concat(e,"-status"),this.hasStatus()),x(t,"".concat(e,"-not-a-wrapper"),!r),t))}},{key:"hasStatus",value:function(){var e=this.props,t=e.status,c=e.color;return!!t||!!c}},{key:"isZero",value:function(){var e=this.getNumberedDispayCount();return"0"===e||0===e}},{key:"isDot",value:function(){var e=this.props.dot,t=this.isZero();return e&&!t||this.hasStatus()}},{key:"isHidden",value:function(){var e=this.props.showZero,t=this.getDispayCount(),c=this.isZero(),n=this.isDot(),r=null===t||void 0===t||""===t;return(r||c&&!e)&&!n}},{key:"renderStatusText",value:function(e){var t=this.props.text,c=this.isHidden();return c||!t?null:n["createElement"]("span",{className:"".concat(e,"-status-text")},t)}},{key:"renderDispayComponent",value:function(){var e=this.props.count,t=e;if(t&&"object"===L(t))return n["cloneElement"](t,{style:k(k({},this.getStyleWithOffset()),t.props&&t.props.style)})}},{key:"renderBadgeNumber",value:function(e,t){var c,r=this.props,o=r.status,a=r.count,l=r.color,u=this.getDispayCount(),s=this.isDot(),h=this.isHidden(),f=i()((c={},x(c,"".concat(e,"-dot"),s),x(c,"".concat(e,"-count"),!s),x(c,"".concat(e,"-multiple-words"),!s&&a&&a.toString&&a.toString().length>1),x(c,"".concat(e,"-status-").concat(o),!!o),x(c,"".concat(e,"-status-").concat(l),K(l)),c)),p=this.getStyleWithOffset();return l&&!K(l)&&(p=p||{},p.background=l),h?null:n["createElement"](w,{prefixCls:t,"data-show":!h,className:f,count:u,displayComponent:this.renderDispayComponent(),title:this.getScrollNumberTitle(),style:p,key:"scrollNumber"})}},{key:"render",value:function(){return n["createElement"](s["a"],null,this.renderBadge)}}]),c}(n["Component"]);U.defaultProps={count:null,showZero:!1,dot:!1,overflowCount:99},U.propTypes={count:r["node"],showZero:r["bool"],dot:r["bool"],overflowCount:r["number"]}},Mwp2:function(e,t,c){"use strict";c("cIOH"),c("3wW7"),c("R9oj"),c("T2oS"),c("DjyN"),c("1GLa")},NUBc:function(e,t,c){"use strict";var n=c("q1tI"),r=c("6+eU"),o=c("H4fg"),a=c("TSYQ"),l=c.n(a),i=c("2fM7");function u(e){"@babel/helpers - typeof";return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){return s=Object.assign||function(e){for(var t=1;t0?"-".concat(p):p,g=o()(v,b,"".concat(b,"-").concat(h),(c={},i(c,"".concat(b,"-with-text").concat(z),m),i(c,"".concat(b,"-dashed"),!!d),c));return n["createElement"]("div",l({className:g},y,{role:"separator"}),m&&n["createElement"]("span",{className:"".concat(b,"-inner-text")},m))})};t["a"]=s},PQMj:function(e,t,c){},Pwec:function(e,t,c){"use strict";c("cIOH"),c("WtSK")},R9oj:function(e,t,c){"use strict";c("cIOH"),c("pwpV")},RlXo:function(e,t,c){"use strict";var n={placeholder:"Select time"};t["a"]=n},Sdc0:function(e,t,c){"use strict";c.d(t,"a",function(){return S});var n=c("q1tI"),r=c("17x9"),o=c("XIdC"),a=c.n(o),l=c("TSYQ"),i=c.n(l),u=c("BGR+"),s=c("g0mS"),h=c("CtXQ"),f=c("H84U"),p=c("6CfX");function v(e){"@babel/helpers - typeof";return v="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(){return m=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:h,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:f;switch(e){case"topLeft":t={left:0,top:c,bottom:"auto"};break;case"topRight":t={right:0,top:c,bottom:"auto"};break;case"bottomLeft":t={left:0,top:"auto",bottom:n};break;default:t={right:0,top:"auto",bottom:n};break}return t}function d(e,t){var c=e.prefixCls,a=e.placement,s=void 0===a?p:a,h=e.getContainer,f=void 0===h?l:h,v=e.top,d=e.bottom,y=e.closeIcon,b=void 0===y?i:y,z="".concat(c,"-").concat(s);if(u[z])t(u[z]);else{var g=n["createElement"]("span",{className:"".concat(c,"-close-x")},b||n["createElement"](o["a"],{className:"".concat(c,"-close-icon"),type:"close"}));r["a"].newInstance({prefixCls:c,className:"".concat(c,"-").concat(s),style:m(s,v,d),getContainer:f,closeIcon:g},function(e){u[z]=e,t(e)})}}var y={success:"check-circle-o",info:"info-circle-o",error:"close-circle-o",warning:"exclamation-circle-o"};function b(e){var t=e.prefixCls||"ant-notification",c="".concat(t,"-notice"),r=void 0===e.duration?s:e.duration,a=null;if(e.icon)a=n["createElement"]("span",{className:"".concat(c,"-icon")},e.icon);else if(e.type){var l=y[e.type];a=n["createElement"](o["a"],{className:"".concat(c,"-icon ").concat(c,"-icon-").concat(e.type),type:l})}var i=!e.description&&a?n["createElement"]("span",{className:"".concat(c,"-message-single-line-auto-margin")}):null,u=e.placement,h=e.top,f=e.bottom,p=e.getContainer,v=e.closeIcon;d({prefixCls:t,placement:u,top:h,bottom:f,getContainer:p,closeIcon:v},function(t){t.notice({content:n["createElement"]("div",{className:a?"".concat(c,"-with-icon"):""},a,n["createElement"]("div",{className:"".concat(c,"-message")},i,e.message),n["createElement"]("div",{className:"".concat(c,"-description")},e.description),e.btn?n["createElement"]("span",{className:"".concat(c,"-btn")},e.btn):null),duration:r,closable:!0,onClose:e.onClose,onClick:e.onClick,key:e.key,style:e.style||{},className:e.className})})}var z={open:b,close:function(e){Object.keys(u).forEach(function(t){return u[t].removeNotice(e)})},config:v,destroy:function(){Object.keys(u).forEach(function(e){u[e].destroy(),delete u[e]})}};["success","info","warning","error"].forEach(function(e){z[e]=function(t){return z.open(a(a({},t),{type:e}))}}),z.warn=z.warning,t["a"]=z},Urep:function(e,t,c){},VXEj:function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("TSYQ"),a=c.n(o),l=c("BGR+"),i=c("W9HT"),u=c("H84U"),s=c("NUBc"),h=c("qrJ5"),f=c("/kpp");function p(e){if(!n["isValidElement"](e))return e;for(var t=arguments.length,c=new Array(t>1?t-1:0),r=1;r0&&n["createElement"]("ul",{className:"".concat(b,"-item-action"),key:"actions"},h.map(function(e,t){return n["createElement"]("li",{key:"".concat(b,"-item-action-").concat(t)},e,t!==h.length-1&&n["createElement"]("em",{className:"".concat(b,"-item-action-split")}))})),g=o?"div":"li",M=n["createElement"](g,w({},y,{className:a()("".concat(b,"-item"),d,m({},"".concat(b,"-item-no-flex"),!e.isFlexMode()))}),"vertical"===l&&v?[n["createElement"]("div",{className:"".concat(b,"-item-main"),key:"content"},s,z),n["createElement"]("div",{className:"".concat(b,"-item-extra"),key:"extra"},v)]:[s,z,p(v,{key:"extra"})]);return o?n["createElement"](f["a"],{span:k(o,"column"),xs:k(o,"xs"),sm:k(o,"sm"),md:k(o,"md"),lg:k(o,"lg"),xl:k(o,"xl"),xxl:k(o,"xxl")},M):M},e}return b(c,[{key:"isItemContainsTextNodeAndNotSingular",value:function(){var e,t=this.props.children;return n["Children"].forEach(t,function(t){"string"===typeof t&&(e=!0)}),e&&n["Children"].count(t)>1}},{key:"isFlexMode",value:function(){var e=this.props.extra,t=this.context.itemLayout;return"vertical"===t?!!e:!this.isItemContainsTextNodeAndNotSingular()}},{key:"render",value:function(){return n["createElement"](u["a"],null,this.renderItem)}}]),c}(n["Component"]);function E(e){"@babel/helpers - typeof";return E="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function P(e){return R(e)||N(e)||j(e)||T()}function T(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function j(e,t){if(e){if("string"===typeof e)return _(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?_(e,t):void 0}}function N(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function R(e){if(Array.isArray(e))return _(e)}function _(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);cI&&(_.current=I);var D,K=C?n["createElement"]("div",{className:"".concat(E,"-pagination")},n["createElement"](s["a"],A({},_,{onChange:r.onPaginationChange,onShowSizeChange:r.onPaginationShowSizeChange}))):null,U=P(V);if(C&&V.length>(_.current-1)*_.pageSize&&(U=P(V).splice((_.current-1)*_.pageSize,_.pageSize)),D=j&&n["createElement"]("div",{style:{minHeight:53}}),U.length>0){var B=U.map(function(e,t){return r.renderItem(e,t)}),q=[];n["Children"].forEach(B,function(e,t){q.push(n["cloneElement"](e,{key:r.keys[t]}))}),D=H?n["createElement"](h["a"],{gutter:H.gutter},q):n["createElement"]("ul",{className:"".concat(E,"-items")},q)}else z||j||(D=r.renderEmpty(E,o));var W=_.position||"bottom";return n["createElement"]("div",A({className:R},Object(l["a"])(x,["rowKey","renderItem","locale"])),("top"===W||"both"===W)&&K,S&&n["createElement"]("div",{className:"".concat(E,"-header")},S),n["createElement"](i["a"],T,D,z),L&&n["createElement"]("div",{className:"".concat(E,"-footer")},L),M||("bottom"===W||"both"===W)&&K)};var o=e.pagination,u=o&&"object"===E(o)?o:{};return r.state={paginationCurrent:u.defaultCurrent||1,paginationSize:u.defaultPageSize||10},r}return K(c,[{key:"getChildContext",value:function(){return{grid:this.props.grid,itemLayout:this.props.itemLayout}}},{key:"triggerPaginationEvent",value:function(e){var t=this;return function(c,n){var r=t.props.pagination;t.setState({paginationCurrent:c,paginationSize:n}),r&&r[e]&&r[e](c,n)}}},{key:"isSomethingAfterLastItem",value:function(){var e=this.props,t=e.loadMore,c=e.pagination,n=e.footer;return!!(t||c||n)}},{key:"render",value:function(){return n["createElement"](u["a"],null,this.renderList)}}]),c}(n["Component"]);Z.Item=x,Z.childContextTypes={grid:r["any"],itemLayout:r["string"]},Z.defaultProps={dataSource:[],bordered:!1,split:!0,loading:!1,pagination:!1}},W9HT:function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("TSYQ"),a=c.n(o),l=c("BGR+"),i=c("sEfC"),u=c.n(i),s=c("H84U"),h=c("CWQg");function f(e){"@babel/helpers - typeof";return f="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},f(e)}function p(){return p=Object.assign||function(e){for(var t=1;t=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function L(e,t){if(e){if("string"===typeof e)return k(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?k(e,t):void 0}}function k(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c0)for(var l,i=S(c);!(l=i()).done;){var u=l.value;if("undefined"!==typeof a[u]&&!a[u])return!1}else if(a.metaKey||a.ctrlKey||a.shiftKey||a.altKey)return!1;return a.key?a.key===r:a.keyCode===n}function T(e,t){var c=e.split("\n"),n=e.substr(0,t).split("\n"),r=n.length,o=n[n.length-1].length,a=c[n.length-1],l=n.length>1?n[n.length-2]:null,i=c.length>n.length?c[n.length]:null;return{line:r,col:o,beforeText:e.substr(0,t),afterText:e.substr(t),curLine:a,prevLine:l,nextLine:i}}for(var j={bold:["**","**"],italic:["*","*"],underline:["++","++"],strikethrough:["~~","~~"],quote:["\n> ","\n"],inlinecode:["`","`"],code:["\n```\n","\n```\n"]},N=1;N<=6;N++)j["h"+N]=["\n"+E("#",N)+" ","\n"];function R(e){for(var t=e.row,c=void 0===t?2:t,n=e.col,r=void 0===n?2:n,o=["|"],a=["|"],l=["|"],i="",u=1;u<=r;u++)o.push(" Head |"),l.push(" --- |"),a.push(" Data |");for(var s=1;s<=c;s++)i+="\n"+a.join("");return o.join("")+"\n"+l.join("")+i}function _(e,t){var c=t;if("\n"!==c.substr(0,1)&&(c="\n"+c),"unordered"===e)return c.length>1?c.replace(/\n/g,"\n* ").trim():"* ";var n=1;return c.length>1?c.replace(/\n/g,function(){return"\n"+n+++". "}).trim():"1. "}function A(e,t){return{text:e,newBlock:t,selection:{start:e.length,end:e.length}}}function F(e,t,c){if("undefined"!==typeof j[t])return{text:""+j[t][0]+e+j[t][1],selection:{start:j[t][0].length,end:j[t][0].length+e.length}};switch(t){case"tab":var n=1===c.tabMapValue?"\t":" ".repeat(c.tabMapValue),r=n+e.replace(/\n/g,"\n"+n),o=e.includes("\n")?e.match(/\n/g).length:0;return{text:r,selection:{start:c.tabMapValue,end:c.tabMapValue*(o+1)+e.length}};case"unordered":return A(_("unordered",e),!0);case"order":return A(_("order",e),!0);case"hr":return A("---",!0);case"table":return{text:R(c),newBlock:!0};case"image":return{text:"!["+(e||c.target)+"]("+(c.imageUrl||"")+")",selection:{start:2,end:e.length+2}};case"link":return{text:"["+e+"]("+(c.linkUrl||"")+")",selection:{start:1,end:e.length+1}}}return{text:e,selection:{start:0,end:e.length}}}var I=F;function D(e,t){var c={};return Object.keys(e).forEach(function(n){"undefined"!==typeof t[n]?"object"!==typeof t[n]?c[n]=t[n]:Array.isArray(t[n])?c[n]=[].concat(t[n]):c[n]=D(e[n],t[n]):c[n]=e[n]}),c}var K=function(e){for(var t=r()({},e),c=arguments.length,n=new Array(c>1?c-1:0),o=1;o=e.length?{done:!0}:{done:!1,value:e[n++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Z(e,t){if(e){if("string"===typeof e)return J(e,t);var c=Object.prototype.toString.call(e).slice(8,-1);return"Object"===c&&e.constructor&&(c=e.constructor.name),"Map"===c||"Set"===c?Array.from(e):"Arguments"===c||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(c)?J(e,t):void 0}}function J(e,t){(null==t||t>e.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&h.length>0&&(l="\n"+l,i&&(i.start++,i.end++));var f=u.afterText;c.start!==c.end&&(f=T(this.getMdValue(),c.end).afterText),""!==f.trim()&&"\n\n"!==f.substr(0,2)&&("\n"!==f.substr(0,1)&&(l+="\n"),l+="\n")}this.insertText(l,!0,i)},c.insertPlaceholder=function(e,t){var c=this;this.insertText(e,!0),t.then(function(t){var n=c.getMdValue().replace(e,t);c.setText(n)})},c.insertText=function(e,t,c){void 0===e&&(e=""),void 0===t&&(t=!1);var n=this.state.text,r=this.getSelection(),o=n.slice(0,r.start),a=n.slice(t?r.end:r.start,n.length);this.setText(o+e+a,void 0,c?{start:c.start+o.length,end:c.end+o.length}:{start:r.start,end:r.start})},c.setText=function(e,t,c){var n=this;void 0===e&&(e="");var r=this.config.onChangeTrigger,o=void 0===r?"both":r,a=e.replace(/\u21b5/g,"\n");if(this.state.text!==e){this.setState({text:a}),!this.props.onChange||"both"!==o&&"beforeRender"!==o||this.props.onChange({text:a,html:this.getHtmlValue()},t),this.emitter.emit(this.emitter.EVENT_CHANGE,e,t,"undefined"===typeof t),c&&setTimeout(function(){return n.setSelection(c)}),this.hasContentChanged||(this.hasContentChanged=!0);var l=this.renderHTML(a);"both"!==o&&"afterRender"!==o||l.then(function(){n.props.onChange&&n.props.onChange({text:n.state.text,html:n.getHtmlValue()},t)})}},c.getMdValue=function(){return this.state.text},c.getHtmlValue=function(){return"string"===typeof this.state.html?this.state.html:this.nodeMdPreview.current?this.nodeMdPreview.current.getHtml():""},c.onKeyboard=function(e){var t=this;Array.isArray(e)?e.forEach(function(e){return t.onKeyboard(e)}):this.keyboardListeners.includes(e)||this.keyboardListeners.push(e)},c.offKeyboard=function(e){var t=this;if(Array.isArray(e))e.forEach(function(e){return t.offKeyboard(e)});else{var c=this.keyboardListeners.indexOf(e);c>=0&&this.keyboardListeners.splice(c,1)}},c.handleKeyDown=function(e){for(var t,c=X(this.keyboardListeners);!(t=c()).done;){var n=t.value;if(P(e,n))return e.preventDefault(),void n.callback(e)}this.emitter.emit(this.emitter.EVENT_KEY_DOWN,e)},c.getEventType=function(e){switch(e){case"change":return this.emitter.EVENT_CHANGE;case"fullscreen":return this.emitter.EVENT_FULL_SCREEN;case"viewchange":return this.emitter.EVENT_VIEW_CHANGE;case"keydown":return this.emitter.EVENT_KEY_DOWN;case"blur":return this.emitter.EVENT_BLUR;case"focus":return this.emitter.EVENT_FOCUS;case"scroll":return this.emitter.EVENT_SCROLL}},c.on=function(e,t){var c=this.getEventType(e);c&&this.emitter.on(c,t)},c.off=function(e,t){var c=this.getEventType(e);c&&this.emitter.off(c,t)},c.setView=function(e){var t=this,c=r()({},this.state.view,e);this.setState({view:c},function(){t.emitter.emit(t.emitter.EVENT_VIEW_CHANGE,c)})},c.getView=function(){return r()({},this.state.view)},c.fullScreen=function(e){var t=this;this.state.fullScreen!==e&&this.setState({fullScreen:e},function(){t.emitter.emit(t.emitter.EVENT_FULL_SCREEN,e)})},c.isFullScreen=function(){return this.state.fullScreen},c.uploadWithDataTransfer=function(e){var t=this,c=this.config.onImageUpload;if(c){var n=[];Array.prototype.forEach.call(e,function(e){if("file"===e.kind&&e.type.includes("image")){var r=e.getAsFile();if(r){var o=q(r,c);n.push(Promise.resolve(o.placeholder)),o.uploaded.then(function(e){var c=t.getMdValue().replace(o.placeholder,e),n=e.length-o.placeholder.length,r=t.getSelection();t.setText(c,void 0,{start:r.start+n,end:r.start+n})})}}else"string"===e.kind&&"text/plain"===e.type&&n.push(new Promise(function(t){return e.getAsString(t)}))}),Promise.all(n).then(function(e){var c=e.join(""),n=t.getSelection();t.insertText(c,!0,{start:n.start===n.end?c.length:0,end:c.length})})}},c.render=function(){var e=this,t=this.state,c=t.view,n=t.fullScreen,r=t.text,o=t.html,a=this.props,l=a.id,i=a.className,p=void 0===i?"":i,v=a.style,m=a.name,d=void 0===m?"textarea":m,y=a.autoFocus,b=a.placeholder,z=a.readOnly,g=this.config.canView&&this.config.canView.hideMenu&&!this.config.canView.menu,M=function(t){return e.state.plugins[t]||[]},C=!!c.menu,H=l?l+"_md":void 0,O=l?l+"_html":void 0;return u["createElement"]("div",{id:l,className:"rc-md-editor "+(n?"full":"")+" "+p,style:v,onKeyDown:this.handleKeyDown,onDrop:this.handleDrop},u["createElement"](h,{visible:C,left:M("left"),right:M("right")}),u["createElement"]("div",{className:"editor-container"},g&&u["createElement"](f,null,u["createElement"]("span",{className:"button button-type-menu",title:C?"hidden menu":"show menu",onClick:this.handleToggleMenu},u["createElement"](s,{type:"expand-"+(C?"less":"more")}))),u["createElement"]("section",{className:"section sec-md "+(c.md?"visible":"in-visible")},u["createElement"]("textarea",{id:H,ref:this.nodeMdText,name:d,autoFocus:y,placeholder:b,readOnly:z,value:r,className:"section-container input "+(this.config.markdownClass||""),wrap:"hard",onChange:this.handleChange,onScroll:this.handleInputScroll,onMouseOver:function(){return e.shouldSyncScroll="md"},onKeyDown:this.handleEditorKeyDown,onCompositionStart:function(){return e.composing=!0},onCompositionEnd:function(){return e.composing=!1},onPaste:this.handlePaste,onFocus:this.handleFocus,onBlur:this.handleBlur})),u["createElement"]("section",{className:"section sec-html "+(c.html?"visible":"in-visible")},u["createElement"]("div",{id:O,className:"section-container html-wrap",ref:this.nodeMdPreviewWrapper,onMouseOver:function(){return e.shouldSyncScroll="html"},onScroll:this.handlePreviewScroll},u["createElement"](Q,{html:o,className:this.config.htmlClass,ref:this.nodeMdPreview})))))},t}(u["Component"]);$.plugins=[],$.addLocale=M.add.bind(M),$.useLocale=M.setCurrent.bind(M),$.getLocale=M.getCurrent.bind(M);var ee=$,te=function(e){function t(t){var c;return c=e.call(this,t)||this,c.timer=null,c.useTimer=c.getConfig("useTimer")||"undefined"===typeof requestAnimationFrame,c.handleChange=c.handleChange.bind(a()(c)),c.doResize=c.doResize.bind(a()(c)),c}i()(t,e);var c=t.prototype;return c.doResize=function(){var e=this,t=function(t){t.style.height="auto";var c=Math.min(Math.max(e.getConfig("min"),t.scrollHeight),e.getConfig("max"));return t.style.height=c+"px",c};this.timer=null;var c=this.editor.getView(),n=this.editor.getMdElement(),r=this.editor.getHtmlElement();if(n&&c.md){var o=t(n);r&&(r.style.height=o+"px")}else r&&c.html&&t(r)},c.handleChange=function(){null===this.timer&&(this.useTimer?this.timer=window.setTimeout(this.doResize):this.timer=requestAnimationFrame(this.doResize))},c.componentDidMount=function(){this.editor.on("change",this.handleChange),this.editor.on("viewchange",this.handleChange),this.handleChange()},c.componentWillUnmount=function(){this.editor.off("change",this.handleChange),this.editor.off("viewchange",this.handleChange),null!==this.timer&&this.useTimer&&(window.clearTimeout(this.timer),this.timer=null)},c.render=function(){return u["createElement"]("span",null)},t}(O);te.pluginName="auto-resize",te.align="left",te.defaultConfig={min:200,max:1/0,useTimer:!1};var ce=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-code-block",title:M.get("btnCode"),onClick:function(){return e.editor.insertMarkdown("code")}},u["createElement"](s,{type:"code-block"}))},t}(O);ce.pluginName="block-code-block";var ne=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-code-inline",title:M.get("btnInlineCode"),onClick:function(){return e.editor.insertMarkdown("inlinecode")}},u["createElement"](s,{type:"code"}))},t}(O);ne.pluginName="block-code-inline";var re=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-quote",title:M.get("btnQuote"),onClick:function(){return e.editor.insertMarkdown("quote")}},u["createElement"](s,{type:"quote"}))},t}(O);re.pluginName="block-quote";var oe=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-wrap",title:M.get("btnLineBreak"),onClick:function(){return e.editor.insertMarkdown("hr")}},u["createElement"](s,{type:"wrap"}))},t}(O);oe.pluginName="block-wrap";var ae=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClick=c.handleClick.bind(a()(c)),c}i()(t,e);var c=t.prototype;return c.handleClick=function(){if(""!==this.editor.getMdValue()&&window.confirm&&"function"===typeof window.confirm){var e=window.confirm(M.get("clearTip"));e&&this.editor.setText("")}},c.render=function(){return u["createElement"]("span",{className:"button button-type-clear",title:M.get("btnClear"),onClick:this.handleClick},u["createElement"](s,{type:"delete"}))},t}(O);ae.pluginName="clear";var le=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"b",keyCode:66,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("bold")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-bold",title:M.get("btnBold"),onClick:function(){return e.editor.insertMarkdown("bold")}},u["createElement"](s,{type:"bold"}))},t}(O);le.pluginName="font-bold";var ie=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"i",keyCode:73,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("italic")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-italic",title:M.get("btnItalic"),onClick:function(){return e.editor.insertMarkdown("italic")}},u["createElement"](s,{type:"italic"}))},t}(O);ie.pluginName="font-italic";var ue=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"d",keyCode:68,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("strikethrough")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-strikethrough",title:M.get("btnStrikethrough"),onClick:function(){return e.editor.insertMarkdown("strikethrough")}},u["createElement"](s,{type:"strikethrough"}))},t}(O);ue.pluginName="font-strikethrough";var se=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"u",keyCode:85,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("underline")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-underline",title:M.get("btnUnderline"),onClick:function(){return e.editor.insertMarkdown("underline")}},u["createElement"](s,{type:"underline"}))},t}(O);se.pluginName="font-underline";var he=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClick=c.handleClick.bind(a()(c)),c.handleChange=c.handleChange.bind(a()(c)),c.state={enable:c.editor.isFullScreen()},c}i()(t,e);var c=t.prototype;return c.handleClick=function(){this.editor.fullScreen(!this.state.enable)},c.handleChange=function(e){this.setState({enable:e})},c.componentDidMount=function(){this.editor.on("fullscreen",this.handleChange)},c.componentWillUnmount=function(){this.editor.off("fullscreen",this.handleChange)},c.render=function(){if(this.editorConfig.canView&&this.editorConfig.canView.fullScreen){var e=this.state.enable;return u["createElement"]("span",{className:"button button-type-fullscreen",title:M.get(e?"btnExitFullScreen":"btnFullScreen"),onClick:this.handleClick},u["createElement"](s,{type:e?"fullscreen-exit":"fullscreen"}))}return null},t}(O);he.pluginName="full-screen",he.align="right";var fe=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClose=c.handleClose.bind(a()(c)),c}i()(t,e);var c=t.prototype;return c.handleClose=function(e){e.stopPropagation();var t=this.props.onClose;"function"===typeof t&&t()},c.render=function(){return u["createElement"]("div",{className:"drop-wrap "+(this.props.show?"show":"hidden"),onClick:this.handleClose},this.props.children)},t}(u["Component"]),pe=fe,ve=function(e){function t(){return e.apply(this,arguments)||this}i()(t,e);var c=t.prototype;return c.handleHeader=function(e){var t=this.props.onSelectHeader;"function"===typeof t&&t(e)},c.render=function(){return u["createElement"]("ul",{className:"header-list"},u["createElement"]("li",{className:"list-item"},u["createElement"]("h1",{onClick:this.handleHeader.bind(this,"h1")},"H1")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h2",{onClick:this.handleHeader.bind(this,"h2")},"H2")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h3",{onClick:this.handleHeader.bind(this,"h3")},"H3")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h4",{onClick:this.handleHeader.bind(this,"h4")},"H4")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h5",{onClick:this.handleHeader.bind(this,"h5")},"H5")),u["createElement"]("li",{className:"list-item"},u["createElement"]("h6",{onClick:this.handleHeader.bind(this,"h6")},"H6")))},t}(u["Component"]),me=ve,de=function(e){function t(t){var c;return c=e.call(this,t)||this,c.show=c.show.bind(a()(c)),c.hide=c.hide.bind(a()(c)),c.state={show:!1},c}i()(t,e);var c=t.prototype;return c.show=function(){this.setState({show:!0})},c.hide=function(){this.setState({show:!1})},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-header",title:M.get("btnHeader"),onMouseEnter:this.show,onMouseLeave:this.hide},u["createElement"](s,{type:"font-size"}),u["createElement"](pe,{show:this.state.show,onClose:this.hide},u["createElement"](me,{onSelectHeader:function(t){return e.editor.insertMarkdown(t)}})))},t}(O);de.pluginName="header";var ye=function(e){function t(t){var c;return c=e.call(this,t)||this,c.timerId=void 0,c.locked=!1,c.input=u["createRef"](),c}i()(t,e);var c=t.prototype;return c.click=function(){var e=this;!this.locked&&this.input.current&&(this.locked=!0,this.input.current.value="",this.input.current.click(),this.timerId&&window.clearTimeout(this.timerId),this.timerId=window.setTimeout(function(){e.locked=!1,window.clearTimeout(e.timerId),e.timerId=void 0},200))},c.componentWillUnmount=function(){this.timerId&&window.clearTimeout(this.timerId)},c.render=function(){return u["createElement"]("input",{type:"file",ref:this.input,accept:this.props.accept,style:{position:"absolute",zIndex:-1,left:0,top:0,width:0,height:0,opacity:0},onChange:this.props.onChange})},t}(u["Component"]),be=ye,ze=function(e){function t(t){var c;return c=e.call(this,t)||this,c.inputFile=u["createRef"](),c.onImageChanged=c.onImageChanged.bind(a()(c)),c.handleCustomImageUpload=c.handleCustomImageUpload.bind(a()(c)),c.handleImageUpload=c.handleImageUpload.bind(a()(c)),c.state={show:!1},c}i()(t,e);var c=t.prototype;return c.handleImageUpload=function(){var e=this.editorConfig.onImageUpload;"function"===typeof e?this.inputFile.current&&this.inputFile.current.click():this.editor.insertMarkdown("image")},c.onImageChanged=function(e){var t=this.editorConfig.onImageUpload;if(t){var c=q(e,t);this.editor.insertPlaceholder(c.placeholder,c.uploaded)}},c.handleCustomImageUpload=function(e){var t=this,c=this.editorConfig.onCustomImageUpload;if(c){var n=c.call(this,e);x(n)&&n.then(function(e){e&&e.url&&t.editor.insertMarkdown("image",{target:e.text,imageUrl:e.url})})}},c.render=function(){var e=this,t=!!this.editorConfig.onCustomImageUpload;return t?u["createElement"]("span",{className:"button button-type-image",title:M.get("btnImage"),onClick:this.handleCustomImageUpload},u["createElement"](s,{type:"image"})):u["createElement"]("span",{className:"button button-type-image",title:M.get("btnImage"),onClick:this.handleImageUpload,style:{position:"relative"}},u["createElement"](s,{type:"image"}),u["createElement"](be,{accept:this.editorConfig.imageAccept||"",ref:this.inputFile,onChange:function(t){t.persist(),t.target.files&&t.target.files.length>0&&e.onImageChanged(t.target.files[0])}}))},t}(O);ze.pluginName="image";var ge=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"k",keyCode:75,aliasCommand:!0,withKey:["ctrlKey"],callback:function(){return c.editor.insertMarkdown("link")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-link",title:M.get("btnLink"),onClick:function(){return e.editor.insertMarkdown("link")}},u["createElement"](s,{type:"link"}))},t}(O);ge.pluginName="link";var Me=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"7",keyCode:55,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return c.editor.insertMarkdown("order")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-ordered",title:M.get("btnOrdered"),onClick:function(){return e.editor.insertMarkdown("order")}},u["createElement"](s,{type:"list-ordered"}))},t}(O);Me.pluginName="list-ordered";var Ce=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboard={key:"8",keyCode:56,withKey:["ctrlKey","shiftKey"],aliasCommand:!0,callback:function(){return c.editor.insertMarkdown("unordered")}},c}i()(t,e);var c=t.prototype;return c.componentDidMount=function(){this.editorConfig.shortcuts&&this.editor.onKeyboard(this.handleKeyboard)},c.componentWillUnmount=function(){this.editor.offKeyboard(this.handleKeyboard)},c.render=function(){var e=this;return u["createElement"]("span",{className:"button button-type-unordered",title:M.get("btnUnordered"),onClick:function(){return e.editor.insertMarkdown("unordered")}},u["createElement"](s,{type:"list-unordered"}))},t}(O);Ce.pluginName="list-unordered";var He,Oe=100,Ve=function(){function e(){this.record=[],this.recycle=[],this.initValue=""}var t=e.prototype;return t.push=function(e){var t=this.record.push(e);while(this.record.length>Oe)this.record.shift();return t},t.get=function(){return this.record},t.getLast=function(){var e=this.record.length;return this.record[e-1]},t.undo=function(e){var t=this.record.pop();if("undefined"===typeof t)return this.initValue;if(t!==e)return this.recycle.push(t),t;var c=this.record.pop();return"undefined"===typeof c?(this.recycle.push(t),this.initValue):(this.recycle.push(t),c)},t.redo=function(){var e=this.recycle.pop();if("undefined"!==typeof e)return this.push(e),e},t.cleanRedo=function(){this.recycle=[]},t.getUndoCount=function(){return this.undo.length},t.getRedoCount=function(){return this.recycle.length},e}(),we=Ve,Se=600,Le=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleKeyboards=[],c.lastPop=null,c.handleChange=c.handleChange.bind(a()(c)),c.handleRedo=c.handleRedo.bind(a()(c)),c.handleUndo=c.handleUndo.bind(a()(c)),c.handleKeyboards=[{key:"y",keyCode:89,withKey:["ctrlKey"],callback:c.handleRedo},{key:"z",keyCode:90,withKey:["metaKey","shiftKey"],callback:c.handleRedo},{key:"z",keyCode:90,aliasCommand:!0,withKey:["ctrlKey"],callback:c.handleUndo}],c.logger=new we,c}i()(t,e);var c=t.prototype;return c.handleUndo=function(){var e=this.logger.undo(this.editor.getMdValue());"undefined"!==typeof e&&(this.pause(),this.lastPop=e,this.editor.setText(e),this.forceUpdate())},c.handleRedo=function(){var e=this.logger.redo();"undefined"!==typeof e&&(this.lastPop=e,this.editor.setText(e),this.forceUpdate())},c.handleChange=function(e,t,c){var n=this;if(this.logger.getLast()!==e&&(null===this.lastPop||this.lastPop!==e)){if(this.logger.cleanRedo(),c)return this.logger.push(e),this.lastPop=null,void this.forceUpdate();this.timerId&&(window.clearTimeout(this.timerId),this.timerId=0),this.timerId=window.setTimeout(function(){n.logger.getLast()!==e&&(n.logger.push(e),n.lastPop=null,n.forceUpdate()),window.clearTimeout(n.timerId),n.timerId=0},Se)}},c.componentDidMount=function(){var e=this;this.editor.on("change",this.handleChange),this.handleKeyboards.forEach(function(t){return e.editor.onKeyboard(t)}),this.logger.initValue=this.editor.getMdValue(),this.forceUpdate()},c.componentWillUnmount=function(){var e=this;this.timerId&&window.clearTimeout(this.timerId),this.editor.off("change",this.handleChange),this.handleKeyboards.forEach(function(t){return e.editor.offKeyboard(t)})},c.pause=function(){this.timerId&&(window.clearTimeout(this.timerId),this.timerId=void 0)},c.render=function(){var e=this.logger.getUndoCount()>1||this.logger.initValue!==this.editor.getMdValue(),t=this.logger.getRedoCount()>0;return u["createElement"](u["Fragment"],null,u["createElement"]("span",{className:"button button-type-undo "+(e?"":"disabled"),title:M.get("btnUndo"),onClick:this.handleUndo},u["createElement"](s,{type:"undo"})),u["createElement"]("span",{className:"button button-type-redo "+(t?"":"disabled"),title:M.get("btnRedo"),onClick:this.handleRedo},u["createElement"](s,{type:"redo"})))},t}(O);Le.pluginName="logger",function(e){e[e["SHOW_ALL"]=0]="SHOW_ALL",e[e["SHOW_MD"]=1]="SHOW_MD",e[e["SHOW_HTML"]=2]="SHOW_HTML"}(He||(He={}));var ke=function(e){function t(t){var c;return c=e.call(this,t)||this,c.handleClick=c.handleClick.bind(a()(c)),c.handleChange=c.handleChange.bind(a()(c)),c.state={view:c.editor.getView()},c}i()(t,e);var c=t.prototype;return c.handleClick=function(){switch(this.next){case He.SHOW_ALL:this.editor.setView({html:!0,md:!0});break;case He.SHOW_HTML:this.editor.setView({html:!0,md:!1});break;case He.SHOW_MD:this.editor.setView({html:!1,md:!0});break}},c.handleChange=function(e){this.setState({view:e})},c.componentDidMount=function(){this.editor.on("viewchange",this.handleChange)},c.componentWillUnmount=function(){this.editor.off("viewchange",this.handleChange)},c.getDisplayInfo=function(){var e=this.next;switch(e){case He.SHOW_ALL:return{icon:"view-split",title:"All"};case He.SHOW_HTML:return{icon:"visibility",title:"Preview"};default:return{icon:"keyboard",title:"Editor"}}},c.render=function(){if(this.isDisplay){var e=this.getDisplayInfo();return u["createElement"]("span",{className:"button button-type-mode",title:M.get("btnMode"+e.title),onClick:this.handleClick},u["createElement"](s,{type:e.icon}))}return null},H()(t,[{key:"isDisplay",get:function(){var e=this.editorConfig.canView;return!!e&&[e.html,e.md,e.both].filter(function(e){return e}).length>=2}},{key:"next",get:function(){var e=this.editorConfig.canView,t=this.state.view,c=[He.SHOW_ALL,He.SHOW_MD,He.SHOW_HTML];e&&(e.both||c.splice(c.indexOf(He.SHOW_ALL),1),e.md||c.splice(c.indexOf(He.SHOW_MD),1),e.html||c.splice(c.indexOf(He.SHOW_HTML),1));var n=He.SHOW_MD;if(t.html&&(n=He.SHOW_HTML),t.html&&t.md&&(n=He.SHOW_ALL),0===c.length)return n;if(1===c.length)return c[0];var r=c.indexOf(n);return r=0),e),d),w=f(f({},this.props),{children:null,inkBarAnimated:z,extraContent:l,style:r,prevIcon:H,nextIcon:O,className:V});return t=a?a(w,s["a"]):n["createElement"](s["a"],w),n["cloneElement"](t)}}]),c}(n["Component"]);V.defaultProps={animated:!0,type:"line"};var w=c("H84U"),S=c("6CfX"),L=function(e){if("undefined"!==typeof window&&window.document&&window.document.documentElement){var t=Array.isArray(e)?e:[e],c=window.document.documentElement;return t.some(function(e){return e in c.style})}return!1},k=L(["flex","webkitFlex","Flex","msFlex"]);function x(){return x=Object.assign||function(e){for(var t=1;t=0&&("small"===v||"large"===v)),"Tabs","`type=card|editable-card` doesn't have small or large size, it's by design.");var O=r("tabs",s),w=i()(p,(c={},E(c,"".concat(O,"-vertical"),"left"===y||"right"===y),E(c,"".concat(O,"-").concat(v),!!v),E(c,"".concat(O,"-card"),d.indexOf("card")>=0),E(c,"".concat(O,"-").concat(d),!0),E(c,"".concat(O,"-no-animation"),!H),c)),L=[];"editable-card"===d&&(L=[],n["Children"].forEach(b,function(t,c){if(!n["isValidElement"](t))return t;var r=t.props.closable;r="undefined"===typeof r||r;var o=r?n["createElement"](h["a"],{type:"close",className:"".concat(O,"-close-x"),onClick:function(c){return e.removeTab(t.key,c)}}):null;L.push(n["cloneElement"](t,{tab:n["createElement"]("div",{className:r?void 0:"".concat(O,"-tab-unclosable")},t.props.tab,o),key:t.key||c}))}),M||(C=n["createElement"]("span",null,n["createElement"](h["a"],{type:"plus",className:"".concat(O,"-new-tab"),onClick:e.createNewTab}),C))),C=C?n["createElement"]("div",{className:"".concat(O,"-extra-content")},C):null;var k=U(e.props,[]),T=i()("".concat(O,"-").concat(y,"-content"),d.indexOf("card")>=0&&"".concat(O,"-card-content"));return n["createElement"](o["b"],x({},e.props,{prefixCls:O,className:w,tabBarPosition:y,renderTabBar:function(){return n["createElement"](V,x({},Object(u["a"])(k,["className"]),{tabBarExtraContent:C}))},renderTabContent:function(){return n["createElement"](a["a"],{className:T,animated:H,animatedWithMargin:!0})},onChange:e.handleChange}),L.length>0?L:b)},e}return N(c,[{key:"componentDidMount",value:function(){var e=" no-flex",t=r["findDOMNode"](this);t&&!k&&-1===t.className.indexOf(e)&&(t.className+=e)}},{key:"render",value:function(){return n["createElement"](w["a"],null,this.renderTabs)}}]),c}(n["Component"]);B.TabPane=o["a"],B.defaultProps={hideAdd:!1,tabPosition:"top"}},ZTW2:function(e,t,c){},"Znn+":function(e,t,c){"use strict";c("cIOH"),c("9ama")},ZvpZ:function(e,t,c){"use strict";var n=c("H4fg"),r=c("61s2"),o=c("RlXo"),a=r["a"];t["a"]={locale:"en",Pagination:n["a"],DatePicker:r["a"],TimePicker:o["a"],Calendar:a,global:{placeholder:"Please select"},Table:{filterTitle:"Filter menu",filterConfirm:"OK",filterReset:"Reset",selectAll:"Select current page",selectInvert:"Invert current page",sortTitle:"Sort",expand:"Expand row",collapse:"Collapse row"},Modal:{okText:"OK",cancelText:"Cancel",justOkText:"OK"},Popconfirm:{okText:"OK",cancelText:"Cancel"},Transfer:{titles:["",""],searchPlaceholder:"Search here",itemUnit:"item",itemsUnit:"items"},Upload:{uploading:"Uploading...",removeFile:"Remove file",uploadError:"Upload error",previewFile:"Preview file",downloadFile:"Download file"},Empty:{description:"No Data"},Icon:{icon:"icon"},Text:{edit:"Edit",copy:"Copy",copied:"Copied",expand:"Expand"},PageHeader:{back:"Back"}}},bE4E:function(e,t,c){},bKJz:function(e,t,c){},bXwC:function(e,t,c){},bac3:function(e,t,c){"use strict";(function(e){c.d(t,"e",function(){return h}),c.d(t,"d",function(){return f}),c.d(t,"a",function(){return v}),c.d(t,"b",function(){return m}),c.d(t,"c",function(){return d}),c.d(t,"f",function(){return y});var n=c("QbLZ"),r=c.n(n),o=c("iCc5"),a=c.n(o),l=c("V7oC"),i=c.n(l),u=c("HXN9"),s=c("q1tI");function h(t){e&&Object({NODE_ENV:"production"})||console.error("[@ant-design/icons-react]: "+t+".")}function f(e){return"object"===typeof e&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===typeof e.icon||"function"===typeof e.icon)}function p(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce(function(t,c){var n=e[c];switch(c){case"class":t.className=n,delete t["class"];break;default:t[c]=n}return t},{})}var v=function(){function e(){a()(this,e),this.collection={}}return i()(e,[{key:"clear",value:function(){this.collection={}}},{key:"delete",value:function(e){return delete this.collection[e]}},{key:"get",value:function(e){return this.collection[e]}},{key:"has",value:function(e){return Boolean(this.collection[e])}},{key:"set",value:function(e,t){return this.collection[e]=t,this}},{key:"size",get:function(){return Object.keys(this.collection).length}}]),e}();function m(e,t,c){return c?s["createElement"](e.tag,r()({key:t},p(e.attrs),c),(e.children||[]).map(function(c,n){return m(c,t+"-"+e.tag+"-"+n)})):s["createElement"](e.tag,r()({key:t},p(e.attrs)),(e.children||[]).map(function(c,n){return m(c,t+"-"+e.tag+"-"+n)}))}function d(e){return Object(u["generate"])(e)[0]}function y(e,t){switch(t){case"fill":return e+"-fill";case"outline":return e+"-o";case"twotone":return e+"-twotone";default:throw new TypeError("Unknown theme type: "+t+", name: "+e)}}}).call(this,c("Q2Ig"))},bbsP:function(e,t,c){"use strict";c("cIOH"),c("CWI+")},cIOH:function(e,t,c){},czTT:function(e,t,c){},d0bx:function(e,t,c){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var r=n(c("Zss7")),o=2,a=16,l=5,i=5,u=15,s=5,h=4;function f(e,t,c){var n;return n=Math.round(e.h)>=60&&Math.round(e.h)<=240?c?Math.round(e.h)-o*t:Math.round(e.h)+o*t:c?Math.round(e.h)+o*t:Math.round(e.h)-o*t,n<0?n+=360:n>=360&&(n-=360),n}function p(e,t,c){return 0===e.h&&0===e.s?e.s:(n=c?Math.round(100*e.s)-a*t:t===h?Math.round(100*e.s)+a:Math.round(100*e.s)+l*t,n>100&&(n=100),c&&t===s&&n>10&&(n=10),n<6&&(n=6),n);var n}function v(e,t,c){return c?Math.round(100*e.v)+i*t:Math.round(100*e.v)-u*t}function m(e){for(var t=[],c=r.default(e),n=s;n>0;n-=1){var o=c.toHsv(),a=r.default({h:f(o,n,!0),s:p(o,n,!0),v:v(o,n,!0)}).toHexString();t.push(a)}t.push(c.toHexString());for(n=1;n<=h;n+=1){o=c.toHsv(),a=r.default({h:f(o,n),s:p(o,n),v:v(o,n)}).toHexString();t.push(a)}return t}t.default=m},foW8:function(e,t,c){"use strict";t.__esModule=!0;var n=c("q1tI"),r=l(n),o=c("mdmE"),a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}t.default=r.default.createContext||a.default,e.exports=t["default"]},g0mS:function(e,t,c){"use strict";c.d(t,"a",function(){return C});var n,r=c("q1tI"),o=c("i8i4"),a=c("/dDc"),l=c("oHiP"),i=c("H84U");function u(e){"@babel/helpers - typeof";return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var c=0;c=0)){var r=e.props.insertExtraNode;e.extraNode=document.createElement("div");var o=y(e),l=o.extraNode;l.className="ant-click-animating-node";var i=e.getAttributeName();t.setAttribute(i,"true"),n=n||document.createElement("style"),c&&"#ffffff"!==c&&"rgb(255, 255, 255)"!==c&&M(c)&&!/rgba\(\d*, \d*, \d*, 0\)/.test(c)&&"transparent"!==c&&(e.csp&&e.csp.nonce&&(n.nonce=e.csp.nonce),l.style.borderColor=c,n.innerHTML="\n [ant-click-animating-without-extra-node='true']::after, .ant-click-animating-node {\n --antd-wave-shadow-color: ".concat(c,";\n }"),document.body.contains(n)||document.body.appendChild(n)),r&&t.appendChild(l),a["a"].addStartEventListener(t,e.onTransitionStart),a["a"].addEndEventListener(t,e.onTransitionEnd)}},e.onTransitionStart=function(t){if(!e.destroy){var c=Object(o["findDOMNode"])(y(e));t&&t.target===c&&(e.animationStart||e.resetEffect(c))}},e.onTransitionEnd=function(t){t&&"fadeEffect"===t.animationName&&e.resetEffect(t.target)},e.bindAnimationEvent=function(t){if(t&&t.getAttribute&&!t.getAttribute("disabled")&&!(t.className.indexOf("disabled")>=0)){var c=function(c){if("INPUT"!==c.target.tagName&&!g(c.target)){e.resetEffect(t);var n=getComputedStyle(t).getPropertyValue("border-top-color")||getComputedStyle(t).getPropertyValue("border-color")||getComputedStyle(t).getPropertyValue("background-color");e.clickWaveTimeoutId=window.setTimeout(function(){return e.onClick(t,n)},0),l["a"].cancel(e.animationStartId),e.animationStart=!0,e.animationStartId=Object(l["a"])(function(){e.animationStart=!1},10)}};return t.addEventListener("click",c,!0),{cancel:function(){t.removeEventListener("click",c,!0)}}}},e.renderWave=function(t){var c=t.csp,n=e.props.children;return e.csp=c,n},e}return f(c,[{key:"componentDidMount",value:function(){var e=Object(o["findDOMNode"])(this);e&&1===e.nodeType&&(this.instance=this.bindAnimationEvent(e))}},{key:"componentWillUnmount",value:function(){this.instance&&this.instance.cancel(),this.clickWaveTimeoutId&&clearTimeout(this.clickWaveTimeoutId),this.destroy=!0}},{key:"getAttributeName",value:function(){var e=this.props.insertExtraNode;return e?"ant-click-animating":"ant-click-animating-without-extra-node"}},{key:"resetEffect",value:function(e){if(e&&e!==this.extraNode&&e instanceof Element){var t=this.props.insertExtraNode,c=this.getAttributeName();e.setAttribute(c,"false"),n&&(n.innerHTML=""),t&&this.extraNode&&e.contains(this.extraNode)&&e.removeChild(this.extraNode),a["a"].removeStartEventListener(e,this.onTransitionStart),a["a"].removeEndEventListener(e,this.onTransitionEnd)}}},{key:"render",value:function(){return r["createElement"](i["a"],null,this.renderWave)}}]),c}(r["Component"])},g9YV:function(e,t,c){"use strict";c("cIOH"),c("pED+"),c("R9oj"),c("7Kak"),c("sRBo"),c("qVdP"),c("T2oS"),c("DjyN")},i8oR:function(e,t,c){},iQDF:function(e,t,c){"use strict";c("cIOH"),c("ZTW2"),c("5NDa"),c("pL63"),c("+BJd")},jCWc:function(e,t,c){"use strict";c("cIOH"),c("1GLa")},"jsC+":function(e,t,c){"use strict";var n=c("q1tI"),r=c("eDIo"),o=c("TSYQ"),a=c.n(o),l=c("H84U"),i=c("6CfX"),u=c("CtXQ"),s=c("CWQg");function h(e){"@babel/helpers - typeof";return h="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},h(e)}function f(){return f=Object.assign||function(e){for(var t=1;t=0?"slide-down":"slide-up"}},{key:"render",value:function(){return n["createElement"](l["a"],null,this.renderDropDown)}}]),c}(n["Component"]);H.defaultProps={mouseEnterDelay:.15,mouseLeaveDelay:.1,placement:"bottomLeft"};var O=c("2/Rp");function V(e){"@babel/helpers - typeof";return V="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},V(e)}function w(){return w=Object.assign||function(e){for(var t=1;te.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&(d=r.getOptions().map(function(e){return n["createElement"](L,{prefixCls:p,key:e.value.toString(),disabled:"disabled"in e?e.disabled:o.disabled,value:e.value,checked:-1!==a.value.indexOf(e.value),onChange:e.onChange,className:"".concat(v,"-item")},e.label)}));var y=l()(v,u);return n["createElement"]("div",E({className:y,style:s},m),d)},r.state={value:e.value||e.defaultValue||[],registeredValues:[]},r}return I(c,[{key:"getChildContext",value:function(){return{checkboxGroup:{toggleOption:this.toggleOption,value:this.state.value,disabled:this.props.disabled,name:this.props.name,registerValue:this.registerValue,cancelValue:this.cancelValue}}}},{key:"shouldComponentUpdate",value:function(e,t){return!s()(this.props,e)||!s()(this.state,t)}},{key:"getOptions",value:function(){var e=this.props.options;return e.map(function(e){return"string"===typeof e?{label:e,value:e}:e})}},{key:"render",value:function(){return n["createElement"](h["a"],null,this.renderGroup)}}],[{key:"getDerivedStateFromProps",value:function(e){return"value"in e?{value:e.value||[]}:null}}]),c}(n["Component"]);Q.defaultProps={options:[]},Q.propTypes={defaultValue:r["array"],value:r["array"],options:r["array"].isRequired,onChange:r["func"]},Q.childContextTypes={checkboxGroup:r["any"]},Object(o["polyfill"])(Q);var X=Q;L.Group=X;t["a"]=L},lUTK:function(e,t,c){"use strict";c("cIOH"),c("x54q"),c("5Dmo")},mdmE:function(e,t,c){"use strict";t.__esModule=!0;var n=c("q1tI"),r=(u(n),c("17x9")),o=u(r),a=c("fZtv"),l=u(a),i=c("2W6z");u(i);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function f(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=1073741823;function v(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function m(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(c,n){e=c,t.forEach(function(t){return t(e,n)})}}}function d(e){return Array.isArray(e)?e[0]:e}function y(e,t){var c,r,a="__create-react-context-"+(0,l.default)()+"__",i=function(e){function c(){var t,n,r;s(this,c);for(var o=arguments.length,a=Array(o),l=0;l1&&void 0!==arguments[1]?arguments[1]:1,c=o++,n=t;function l(){n-=1,n<=0?(e(),delete a[c]):a[c]=r()(l)}return a[c]=r()(l),c}l.cancel=function(e){void 0!==e&&(r.a.cancel(a[e]),delete a[e])},l.ids=a},"pED+":function(e,t,c){},pL63:function(e,t,c){},pwpV:function(e,t,c){},qCM6:function(e,t,c){},qVdP:function(e,t,c){"use strict";c("cIOH"),c("KAsB"),c("+L6B")},qrJ5:function(e,t,c){"use strict";var n,r=c("q1tI"),o=c("TSYQ"),a=c.n(o),l=c("17x9"),i=c("H84U"),u=c("o/2+"),s=c("CWQg");function h(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function f(){return f=Object.assign||function(e){for(var t=1;t0?{marginLeft:y[0]/-2,marginRight:y[0]/-2}:{}),y[1]>0?{marginTop:y[1]/-2,marginBottom:y[1]/-2}:{}),p),g=C({},m);return delete g.gutter,r["createElement"](u["a"].Provider,{value:{gutter:y}},r["createElement"]("div",C({},g,{className:b,style:z}),v))},e}return w(c,[{key:"componentDidMount",value:function(){var e=this;this.token=g.subscribe(function(t){var c=e.props.gutter;("object"===M(c)||Array.isArray(c)&&("object"===M(c[0])||"object"===M(c[1])))&&e.setState({screens:t})})}},{key:"componentWillUnmount",value:function(){g.unsubscribe(this.token)}},{key:"getGutter",value:function(){var e=[0,0],t=this.props.gutter,c=this.state.screens,n=Array.isArray(t)?t:[t,0];return n.forEach(function(t,n){if("object"===M(t))for(var r=0;re.length)&&(t=e.length);for(var c=0,n=new Array(t);c0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",c=[],n=function e(n){n.forEach(function(n){if(n[t]){var r=k({},n);delete r[t],c.push(r),n[t].length>0&&e(n[t])}else c.push(n)})};return n(e),c}function E(e,t){var c=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"children";return e.map(function(e,n){var r={};return e[c]&&(r[c]=E(e[c],t,c)),k(k({},t(e,n)),r)})}function P(e,t){return e.reduce(function(e,c){if(t(c)&&e.push(c),c.children){var n=P(c.children,t);e.push.apply(e,H(n))}return e},[])}function T(e){var t=[];return n["Children"].forEach(e,function(e){if(n["isValidElement"](e)){var c=k({},e.props);e.key&&(c.key=e.key),e.type&&e.type.__ANT_TABLE_COLUMN_GROUP&&(c.children=T(c.children)),t.push(c)}}),t}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return(e||[]).forEach(function(e){var c=e.value,n=e.children;t[c.toString()]=c,j(n,t)}),t}function N(e){"@babel/helpers - typeof";return N="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function R(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function A(e,t){for(var c=0;c=0?delete c[e.key]:c[e.key]=e.keyPath,r.setState({keyPathOfSelectedItem:c})}},r.renderFilterIcon=function(){var e,t=r.props,c=t.column,o=t.locale,a=t.prefixCls,l=t.selectedKeys,i=l&&l.length>0,s=c.filterIcon;"function"===typeof s&&(s=s(i));var h=u()((e={},R(e,"".concat(a,"-selected"),"filtered"in c?c.filtered:i),R(e,"".concat(a,"-open"),r.getDropdownVisible()),e));return s?n["isValidElement"](s)?n["cloneElement"](s,{title:s.props.title||o.filterTitle,className:u()("".concat(a,"-icon"),h,s.props.className),onClick:G}):n["createElement"]("span",{className:u()("".concat(a,"-icon"),h)},s):n["createElement"](b["a"],{title:o.filterTitle,type:"filter",theme:"filled",className:h,onClick:G})};var o="filterDropdownVisible"in e.column&&e.column.filterDropdownVisible;return r.state={selectedKeys:e.selectedKeys,valueKeys:j(e.column.filters),keyPathOfSelectedItem:{},visible:o,prevProps:e},r}return F(c,[{key:"componentDidMount",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"componentDidUpdate",value:function(){var e=this.props.column;this.setNeverShown(e)}},{key:"getDropdownVisible",value:function(){return!this.neverShown&&this.state.visible}},{key:"setVisible",value:function(e){var t=this.props.column;"filterDropdownVisible"in t||this.setState({visible:e}),t.onFilterDropdownVisibleChange&&t.onFilterDropdownVisibleChange(e)}},{key:"hasSubMenu",value:function(){var e=this.props.column.filters,t=void 0===e?[]:e;return t.some(function(e){return!!(e.children&&e.children.length>0)})}},{key:"confirmFilter",value:function(){var e=this.props,t=e.column,c=e.selectedKeys,n=e.confirmFilter,r=this.state,o=r.selectedKeys,a=r.valueKeys,l=t.filterDropdown;h()(o,c)||n(t,l?o:o.map(function(e){return a[e]}).filter(function(e){return void 0!==e}))}},{key:"renderMenus",value:function(e){var t=this,c=this.props,r=c.dropdownPrefixCls,o=c.prefixCls;return e.map(function(e){if(e.children&&e.children.length>0){var c=t.state.keyPathOfSelectedItem,a=Object.keys(c).some(function(t){return c[t].indexOf(e.value)>=0}),l=u()("".concat(o,"-dropdown-submenu"),R({},"".concat(r,"-submenu-contain-selected"),a));return n["createElement"](v["d"],{title:e.text,popupClassName:l,key:e.value.toString()},t.renderMenus(e.children))}return t.renderMenuItem(e)})}},{key:"renderMenuItem",value:function(e){var t=this.props.column,c=this.state.selectedKeys,r=!("filterMultiple"in t)||t.filterMultiple,o=(c||[]).map(function(e){return e.toString()}),a=r?n["createElement"](z["a"],{checked:o.indexOf(e.value.toString())>=0}):n["createElement"](g["a"],{checked:o.indexOf(e.value.toString())>=0});return n["createElement"](v["b"],{key:e.value},a,n["createElement"]("span",null,e.text))}},{key:"render",value:function(){var e=this,t=this.state.selectedKeys,c=this.props,r=c.column,o=c.locale,a=c.prefixCls,l=c.dropdownPrefixCls,i=c.getPopupContainer,s=!("filterMultiple"in r)||r.filterMultiple,h=u()(R({},"".concat(l,"-menu-without-submenu"),!this.hasSubMenu())),f=r.filterDropdown;f instanceof Function&&(f=f({prefixCls:"".concat(l,"-custom"),setSelectedKeys:function(t){return e.setSelectedKeys({selectedKeys:t})},selectedKeys:t,confirm:this.handleConfirm,clearFilters:this.handleClearFilters,filters:r.filters,visible:this.getDropdownVisible()}));var p=f?n["createElement"](C,{className:"".concat(a,"-dropdown")},f):n["createElement"](C,{className:"".concat(a,"-dropdown")},n["createElement"](v["e"],{multiple:s,onClick:this.handleMenuItemClick,prefixCls:"".concat(l,"-menu"),className:h,onSelect:this.setSelectedKeys,onDeselect:this.setSelectedKeys,selectedKeys:t&&t.map(function(e){return e.toString()}),getPopupContainer:i},this.renderMenus(r.filters)),n["createElement"]("div",{className:"".concat(a,"-dropdown-btns")},n["createElement"]("a",{className:"".concat(a,"-dropdown-link confirm"),onClick:this.handleConfirm},o.filterConfirm),n["createElement"]("a",{className:"".concat(a,"-dropdown-link clear"),onClick:this.handleClearFilters},o.filterReset)));return n["createElement"](y["a"],{trigger:["click"],placement:"bottomRight",overlay:p,visible:this.getDropdownVisible(),onVisibleChange:this.onVisibleChange,getPopupContainer:i,forceRender:!0},this.renderFilterIcon())}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=e.column,n=t.prevProps,r={prevProps:e};return"selectedKeys"in e&&!h()(n.selectedKeys,e.selectedKeys)&&(r.selectedKeys=e.selectedKeys),h()((n.column||{}).filters,(e.column||{}).filters)||(r.valueKeys=j(e.column.filters)),"filterDropdownVisible"in c&&(r.visible=c.filterDropdownVisible),r}}]),c}(n["Component"]);Y.defaultProps={column:{}},Object(f["polyfill"])(Y);var Q=Y;function X(){return X=Object.assign||function(e){for(var t=1;t=0:t.getState().selectedRowKeys.indexOf(n)>=0||c.indexOf(n)>=0,r}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe(function(){var t=e.getCheckState(e.props);e.setState({checked:t})})}},{key:"render",value:function(){var e=this.props,t=e.type,c=e.rowIndex,r=se(e,["type","rowIndex"]),o=this.state.checked;return"radio"===t?n["createElement"](g["a"],$({checked:o,value:c},r)):n["createElement"](z["a"],$({checked:o},r))}}]),c}(n["Component"]),fe=c("BvKs");function pe(e){"@babel/helpers - typeof";return pe="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pe(e)}function ve(e,t,c){return t in e?Object.defineProperty(e,t,{value:c,enumerable:!0,configurable:!0,writable:!0}):e[t]=c,e}function me(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function de(e,t){for(var c=0;c=0})}function Se(e){var t=e.store,c=e.data;if(!c.length)return!1;var n=we(Ve(Ve({},e),{data:c,type:"some",byDefaultChecked:!1}))&&!we(Ve(Ve({},e),{data:c,type:"every",byDefaultChecked:!1})),r=we(Ve(Ve({},e),{data:c,type:"some",byDefaultChecked:!0}))&&!we(Ve(Ve({},e),{data:c,type:"every",byDefaultChecked:!0}));return t.getState().selectionDirty?n:n||r}function Le(e){var t=e.store,c=e.data;return!!c.length&&(t.getState().selectionDirty?we(Ve(Ve({},e),{data:c,type:"every",byDefaultChecked:!1})):we(Ve(Ve({},e),{data:c,type:"every",byDefaultChecked:!1}))||we(Ve(Ve({},e),{data:c,type:"every",byDefaultChecked:!0})))}var ke=function(e){be(c,e);var t=ge(c);function c(e){var n;return me(this,c),n=t.call(this,e),n.state={checked:!1,indeterminate:!1},n.handleSelectAllChange=function(e){var t=e.target.checked;n.props.onSelect(t?"all":"removeAll",0,null)},n.defaultSelections=e.hideDefaultSelections?[]:[{key:"all",text:e.locale.selectAll},{key:"invert",text:e.locale.selectInvert}],n}return ye(c,[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"setCheckState",value:function(e){var t=Le(e),c=Se(e);this.setState(function(e){var n={};return c!==e.indeterminate&&(n.indeterminate=c),t!==e.checked&&(n.checked=t),n})}},{key:"subscribe",value:function(){var e=this,t=this.props.store;this.unsubscribe=t.subscribe(function(){e.setCheckState(e.props)})}},{key:"renderMenus",value:function(e){var t=this;return e.map(function(e,c){return n["createElement"](fe["a"].Item,{key:e.key||c},n["createElement"]("div",{onClick:function(){t.props.onSelect(e.key,c,e.onSelect)}},e.text))})}},{key:"render",value:function(){var e=this.props,t=e.disabled,c=e.prefixCls,r=e.selections,o=e.getPopupContainer,a=this.state,l=a.checked,i=a.indeterminate,s="".concat(c,"-selection"),h=null;if(r){var f=Array.isArray(r)?this.defaultSelections.concat(r):this.defaultSelections,p=n["createElement"](fe["a"],{className:"".concat(s,"-menu"),selectedKeys:[]},this.renderMenus(f));h=f.length>0?n["createElement"](y["a"],{overlay:p,getPopupContainer:o},n["createElement"]("div",{className:"".concat(s,"-down")},n["createElement"](b["a"],{type:"down"}))):null}return n["createElement"]("div",{className:s},n["createElement"](z["a"],{className:u()(ve({},"".concat(s,"-select-all-custom"),h)),checked:l,indeterminate:i,disabled:t,onChange:this.handleSelectAllChange}),h)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=Le(e),n=Se(e),r={};return n!==t.indeterminate&&(r.indeterminate=n),c!==t.checked&&(r.checked=c),r}}]),c}(n["Component"]);Object(f["polyfill"])(ke);var xe=ke;function Ee(e){"@babel/helpers - typeof";return Ee="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ee(e)}function Pe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Te(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}}),t&&je(e,t)}function je(e,t){return je=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},je(e,t)}function Ne(e){var t=Ae();return function(){var c,n=Fe(e);if(t){var r=Fe(this).constructor;c=Reflect.construct(n,arguments,r)}else c=n.apply(this,arguments);return Re(this,c)}}function Re(e,t){return!t||"object"!==Ee(t)&&"function"!==typeof t?_e(e):t}function _e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ae(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Fe(e){return Fe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Fe(e)}var Ie=function(e){Te(c,e);var t=Ne(c);function c(){return Pe(this,c),t.apply(this,arguments)}return c}(n["Component"]);function De(e){"@babel/helpers - typeof";return De="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},De(e)}function Ke(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Ue(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}}),t&&Be(e,t)}function Be(e,t){return Be=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Be(e,t)}function qe(e){var t=Ye();return function(){var c,n=Qe(e);if(t){var r=Qe(this).constructor;c=Reflect.construct(n,arguments,r)}else c=n.apply(this,arguments);return We(this,c)}}function We(e,t){return!t||"object"!==De(t)&&"function"!==typeof t?Ge(e):t}function Ge(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ye(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function Qe(e){return Qe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Qe(e)}var Xe=function(e){Ue(c,e);var t=qe(c);function c(){return Ke(this,c),t.apply(this,arguments)}return c}(n["Component"]);function Ze(e){"@babel/helpers - typeof";return Ze="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ze(e)}function Je(){return Je=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"tr",t=function(t){nt(o,t);var c=ot(o);function o(e){var t;et(this,o),t=c.call(this,e),t.store=e.store;var n=t.store.getState(),r=n.selectedRowKeys;return t.state={selected:r.indexOf(e.rowKey)>=0},t}return ct(o,[{key:"componentDidMount",value:function(){this.subscribe()}},{key:"componentWillUnmount",value:function(){this.unsubscribe&&this.unsubscribe()}},{key:"subscribe",value:function(){var e=this,t=this.props,c=t.store,n=t.rowKey;this.unsubscribe=c.subscribe(function(){var t=e.store.getState(),c=t.selectedRowKeys,r=c.indexOf(n)>=0;r!==e.state.selected&&e.setState({selected:r})})}},{key:"render",value:function(){var t=Object(r["a"])(this.props,["prefixCls","rowKey","store"]),c=u()(this.props.className,$e({},"".concat(this.props.prefixCls,"-row-selected"),this.state.selected));return n["createElement"](e,Je(Je({},t),{className:c}),this.props.children)}}]),o}(n["Component"]);return t}Xe.__ANT_TABLE_COLUMN_GROUP=!0;var ht=c("xEkU"),ft=c.n(ht);function pt(e,t){if("undefined"===typeof window)return 0;var c=t?"pageYOffset":"pageXOffset",n=t?"scrollTop":"scrollLeft",r=e===window,o=r?e[c]:e[n];return r&&"number"!==typeof o&&(o=document.documentElement[n]),o}function vt(e,t,c,n){var r=c-t;return e/=n/2,e<1?r/2*e*e*e+t:r/2*((e-=2)*e*e+2)+t}function mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},c=t.getContainer,n=void 0===c?function(){return window}:c,r=t.callback,o=t.duration,a=void 0===o?450:o,l=n(),i=pt(l,!0),u=Date.now(),s=function t(){var c=Date.now(),n=c-u,o=vt(n>a?a:n,i,e,a);l===window?window.scrollTo(window.pageXOffset,o):l.scrollTop=o,n0&&void 0!==arguments[0]?arguments[0]:{},t=e&&e.body&&e.body.row;return Zt(Zt({},e),{body:Zt(Zt({},e.body),{row:st(t)})})};function lc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e===t||["table","header","body"].every(function(c){return h()(e[c],t[c])})}function ic(e,t){return P(t||(e||{}).columns||[],function(e){return"undefined"!==typeof e.filteredValue})}function uc(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0,c={};return ic(e,t).forEach(function(e){var t=cc(e);c[t]=e.filteredValue}),c}function sc(e,t){return Object.keys(t).length!==Object.keys(e.filters).length||Object.keys(t).some(function(c){return t[c]!==e.filters[c]})}var hc=function(e){Bt(c,e);var t=Wt(c);function c(e){var o;Dt(this,c),o=t.call(this,e),o.setTableRef=function(e){o.rcTable=e},o.getCheckboxPropsByItem=function(e,t){var c=tc(o.props);if(!c.getCheckboxProps)return{};var n=o.getRecordKey(e,t);if(!o.props.checkboxPropsCache[n]){o.props.checkboxPropsCache[n]=c.getCheckboxProps(e)||{};var r=o.props.checkboxPropsCache[n];Object(At["a"])(!("checked"in r)&&!("defaultChecked"in r),"Table","Do not set `checked` or `defaultChecked` in `getCheckboxProps`. Please use `selectedRowKeys` instead.")}return o.props.checkboxPropsCache[n]},o.getRecordKey=function(e,t){var c=o.props.rowKey,n="function"===typeof c?c(e,t):e[c];return Object(At["a"])(void 0!==n,"Table","Each record in dataSource of table should have a unique `key` prop, or set `rowKey` of Table to an unique primary key, see https://u.ant.design/table-row-key"),void 0===n?t:n},o.onRow=function(e,t,c){var n=o.props.onRow,r=n?n(t,c):{};return Zt(Zt({},r),{prefixCls:e,store:o.props.store,rowKey:o.getRecordKey(t,c)})},o.generatePopupContainerFunc=function(e){var t=o.props.scroll,c=o.rcTable;return e||(t&&c?function(){return c.tableNode}:void 0)},o.scrollToFirstRow=function(){var e=o.props.scroll;e&&!1!==e.scrollToFirstRowOnChange&&mt(0,{getContainer:function(){return o.rcTable.bodyTable}})},o.handleFilter=function(e,t){var c=o.props,n=Zt({},o.state.pagination),r=Zt(Zt({},o.state.filters),It({},cc(e),t)),a=[];E(o.state.columns,function(e){e.children||a.push(cc(e))}),Object.keys(r).forEach(function(e){a.indexOf(e)<0&&delete r[e]}),c.pagination&&(n.current=1,n.onChange(n.current));var l={pagination:n,filters:{}},i=Zt({},r);ic(o.state).forEach(function(e){var t=cc(e);t&&delete i[t]}),Object.keys(i).length>0&&(l.filters=i),"object"===Ft(c.pagination)&&"current"in c.pagination&&(l.pagination=Zt(Zt({},n),{current:o.state.pagination.current})),o.setState(l,function(){o.scrollToFirstRow(),o.props.store.setState({selectionDirty:!1});var e=o.props.onChange;e&&e.apply(null,o.prepareParamsArguments(Zt(Zt({},o.state),{selectionDirty:!1,filters:r,pagination:n})))})},o.handleSelect=function(e,t,c){var n=c.target.checked,r=c.nativeEvent,a=o.props.store.getState().selectionDirty?[]:o.getDefaultSelection(),l=o.props.store.getState().selectedRowKeys.concat(a),i=o.getRecordKey(e,t),u=o.state.pivot,s=o.getFlatCurrentPageData(),h=t;if(o.props.expandedRowRender&&(h=s.findIndex(function(e){return o.getRecordKey(e,t)===i})),r.shiftKey&&void 0!==u&&h!==u){var f=[],p=Math.sign(u-h),v=Math.abs(u-h),m=0,d=function(){var e=h+m*p;m+=1;var t=s[e],c=o.getRecordKey(t,e),r=o.getCheckboxPropsByItem(t,e);r.disabled||(l.includes(c)?n||(l=l.filter(function(e){return c!==e}),f.push(c)):n&&(l.push(c),f.push(c)))};while(m<=v)d();o.setState({pivot:h}),o.props.store.setState({selectionDirty:!0}),o.setSelectedRowKeys(l,{selectWay:"onSelectMultiple",record:e,checked:n,changeRowKeys:f,nativeEvent:r})}else n?l.push(o.getRecordKey(e,h)):l=l.filter(function(e){return i!==e}),o.setState({pivot:h}),o.props.store.setState({selectionDirty:!0}),o.setSelectedRowKeys(l,{selectWay:"onSelect",record:e,checked:n,changeRowKeys:void 0,nativeEvent:r})},o.handleRadioSelect=function(e,t,c){var n=c.target.checked,r=c.nativeEvent,a=o.getRecordKey(e,t),l=[a];o.props.store.setState({selectionDirty:!0}),o.setSelectedRowKeys(l,{selectWay:"onSelect",record:e,checked:n,changeRowKeys:void 0,nativeEvent:r})},o.handleSelectRow=function(e,t,c){var n,r=o.getFlatCurrentPageData(),a=o.props.store.getState().selectionDirty?[]:o.getDefaultSelection(),l=o.props.store.getState().selectedRowKeys.concat(a),i=r.filter(function(e,t){return!o.getCheckboxPropsByItem(e,t).disabled}).map(function(e,t){return o.getRecordKey(e,t)}),u=[],s="onSelectAll";switch(e){case"all":i.forEach(function(e){l.indexOf(e)<0&&(l.push(e),u.push(e))}),s="onSelectAll",n=!0;break;case"removeAll":i.forEach(function(e){l.indexOf(e)>=0&&(l.splice(l.indexOf(e),1),u.push(e))}),s="onSelectAll",n=!1;break;case"invert":i.forEach(function(e){l.indexOf(e)<0?l.push(e):l.splice(l.indexOf(e),1),u.push(e),s="onSelectInvert"});break;default:break}o.props.store.setState({selectionDirty:!0});var h=o.props.rowSelection,f=2;if(h&&h.hideDefaultSelections&&(f=0),t>=f&&"function"===typeof c)return c(i);o.setSelectedRowKeys(l,{selectWay:s,checked:n,changeRowKeys:u})},o.handlePageChange=function(e){var t=o.props,c=Zt({},o.state.pagination);c.current=e||(c.current||1);for(var n=arguments.length,r=new Array(n>1?n-1:0),a=1;a0){var r=this.getSortStateFromColumns(t);nc(r.sortColumn,c)&&r.sortOrder===n||this.setState(r)}}},{key:"getDefaultSelection",value:function(){var e=this,t=tc(this.props);return t.getCheckboxProps?this.getFlatData().filter(function(t,c){return e.getCheckboxPropsByItem(t,c).defaultChecked}).map(function(t,c){return e.getRecordKey(t,c)}):[]}},{key:"getDefaultPagination",value:function(e){var t,c,n="object"===Ft(e.pagination)?e.pagination:{};return"current"in n?t=n.current:"defaultCurrent"in n&&(t=n.defaultCurrent),"pageSize"in n?c=n.pageSize:"defaultPageSize"in n&&(c=n.defaultPageSize),this.hasPagination(e)?Zt(Zt(Zt({},rc),n),{current:t||1,pageSize:c||10}):{}}},{key:"getSortOrderColumns",value:function(e){return P(e||(this.state||{}).columns||[],function(e){return"sortOrder"in e})}},{key:"getDefaultFilters",value:function(e){var t=uc(this.state,e),c=P(e||[],function(e){return"undefined"!==typeof e.defaultFilteredValue}),n=c.reduce(function(e,t){var c=cc(t);return e[c]=t.defaultFilteredValue,e},{});return Zt(Zt({},n),t)}},{key:"getDefaultSortOrder",value:function(e){var t=this.getSortStateFromColumns(e),c=P(e||[],function(e){return null!=e.defaultSortOrder})[0];return c&&!t.sortColumn?{sortColumn:c,sortOrder:c.defaultSortOrder}:t}},{key:"getSortStateFromColumns",value:function(e){var t=this.getSortOrderColumns(e).filter(function(e){return e.sortOrder})[0];return t?{sortColumn:t,sortOrder:t.sortOrder}:{sortColumn:null,sortOrder:null}}},{key:"getMaxCurrent",value:function(e){var t=this.state.pagination,c=t.current,n=t.pageSize;return(c-1)*n>=e?Math.floor((e-1)/n)+1:c}},{key:"getSorterFn",value:function(e){var t=e||this.state,c=t.sortOrder,n=t.sortColumn;if(c&&n&&"function"===typeof n.sorter)return function(e,t){var r=n.sorter(e,t,c);return 0!==r?"descend"===c?-r:r:0}}},{key:"getCurrentPageData",value:function(){var e,t,c=this.getLocalData(),n=this.state;return this.hasPagination()?(t=n.pagination.pageSize,e=this.getMaxCurrent(n.pagination.total||c.length)):(t=Number.MAX_VALUE,e=1),(c.length>t||t===Number.MAX_VALUE)&&(c=c.slice((e-1)*t,e*t)),c}},{key:"getFlatData",value:function(){var e=this.props.childrenColumnName;return x(this.getLocalData(null,!1),e)}},{key:"getFlatCurrentPageData",value:function(){var e=this.props.childrenColumnName;return x(this.getCurrentPageData(),e)}},{key:"getLocalData",value:function(e){var t=this,c=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=e||this.state,r=this.props.dataSource,o=r||[];o=o.slice(0);var a=this.getSorterFn(n);return a&&(o=this.recursiveSort(o,a)),c&&n.filters&&Object.keys(n.filters).forEach(function(e){var c=t.findColumn(e);if(c){var r=n.filters[e]||[];if(0!==r.length){var a=c.onFilter;o=a?o.filter(function(e){return r.some(function(t){return a(t,e)})}):o}}}),o}},{key:"setSelectedRowKeys",value:function(e,t){var c=this,n=t.selectWay,r=t.record,o=t.checked,a=t.changeRowKeys,l=t.nativeEvent,i=tc(this.props);!i||"selectedRowKeys"in i||this.props.store.setState({selectedRowKeys:e});var u=this.getFlatData();if(i.onChange||i[n]){var s=u.filter(function(t,n){return e.indexOf(c.getRecordKey(t,n))>=0});if(i.onChange&&i.onChange(e,s),"onSelect"===n&&i.onSelect)i.onSelect(r,o,s,l);else if("onSelectMultiple"===n&&i.onSelectMultiple){var h=u.filter(function(e,t){return a.indexOf(c.getRecordKey(e,t))>=0});i.onSelectMultiple(o,s,h)}else if("onSelectAll"===n&&i.onSelectAll){var f=u.filter(function(e,t){return a.indexOf(c.getRecordKey(e,t))>=0});i.onSelectAll(o,s,f)}else"onSelectInvert"===n&&i.onSelectInvert&&i.onSelectInvert(e)}}},{key:"toggleSortOrder",value:function(e){var t,c=e.sortDirections||this.props.sortDirections,n=this.state,r=n.sortOrder,o=n.sortColumn;if(nc(o,e)&&void 0!==r){var a=c.indexOf(r)+1;t=a===c.length?void 0:c[a]}else t=c[0];var l={sortOrder:t,sortColumn:t?e:null};0===this.getSortOrderColumns().length&&this.setState(l,this.scrollToFirstRow);var i=this.props.onChange;i&&i.apply(null,this.prepareParamsArguments(Zt(Zt({},this.state),l),e))}},{key:"hasPagination",value:function(e){return!1!==(e||this.props).pagination}},{key:"isSortColumn",value:function(e){var t=this.state.sortColumn;return!(!e||!t)&&cc(t)===cc(e)}},{key:"prepareParamsArguments",value:function(e,t){var c=Zt({},e.pagination);delete c.onChange,delete c.onShowSizeChange;var n=e.filters,r={},o=t;e.sortColumn&&e.sortOrder&&(o=e.sortColumn,r.column=e.sortColumn,r.order=e.sortOrder),o&&(r.field=o.dataIndex,r.columnKey=cc(o));var a={currentDataSource:this.getLocalData(e)};return[c,n,r,a]}},{key:"findColumn",value:function(e){var t;return E(this.state.columns,function(c){cc(c)===e&&(t=c)}),t}},{key:"recursiveSort",value:function(e,t){var c=this,n=this.props.childrenColumnName,r=void 0===n?"children":n;return e.sort(t).map(function(e){return e[r]?Zt(Zt({},e),It({},r,c.recursiveSort(e[r],t))):e})}},{key:"renderPagination",value:function(e,t){if(!this.hasPagination())return null;var c="default",r=this.state.pagination;r.size?c=r.size:"middle"!==this.props.size&&"small"!==this.props.size||(c="small");var o=r.position||"bottom",a=r.total||this.getLocalData().length;return a>0&&(o===t||"both"===o)?n["createElement"](dt["a"],Zt({key:"pagination-".concat(t)},r,{className:u()(r.className,"".concat(e,"-pagination")),onChange:this.handlePageChange,total:a,size:c,current:this.getMaxCurrent(a),onShowSizeChange:this.handleShowSizeChange})):null}},{key:"renderRowSelection",value:function(e){var t=this,c=e.prefixCls,r=e.locale,a=e.getPopupContainer,l=this.props.rowSelection,i=this.state.columns.concat();if(l){var s=this.getFlatCurrentPageData().filter(function(e,c){return!l.getCheckboxProps||!t.getCheckboxPropsByItem(e,c).disabled}),h=u()("".concat(c,"-selection-column"),It({},"".concat(c,"-selection-column-custom"),l.selections)),f=It({key:"selection-column",render:this.renderSelectionBox(l.type),className:h,fixed:l.fixed,width:l.columnWidth,title:l.columnTitle},o["INTERNAL_COL_DEFINE"],{className:"".concat(c,"-selection-col")});if("radio"!==l.type){var p=s.every(function(e,c){return t.getCheckboxPropsByItem(e,c).disabled});f.title=f.title||n["createElement"](xe,{store:this.props.store,locale:r,data:s,getCheckboxPropsByItem:this.getCheckboxPropsByItem,getRecordKey:this.getRecordKey,disabled:p,prefixCls:c,onSelect:this.handleSelectRow,selections:l.selections,hideDefaultSelections:l.hideDefaultSelections,getPopupContainer:this.generatePopupContainerFunc(a)})}"fixed"in l?f.fixed=l.fixed:i.some(function(e){return"left"===e.fixed||!0===e.fixed})&&(f.fixed="left"),i[0]&&"selection-column"===i[0].key?i[0]=f:i.unshift(f)}return i}},{key:"renderColumnsDropdown",value:function(e){var t=this,c=e.prefixCls,r=e.dropdownPrefixCls,o=e.columns,a=e.locale,l=e.getPopupContainer,i=this.state,s=i.sortOrder,h=i.filters;return E(o,function(e,o){var i,f,p,v=cc(e,o),m=e.onHeaderCell,d=t.isSortColumn(e);if(e.filters&&e.filters.length>0||e.filterDropdown){var y=v in h?h[v]:[];f=n["createElement"](Q,{locale:a,column:e,selectedKeys:y,confirmFilter:t.handleFilter,prefixCls:"".concat(c,"-filter"),dropdownPrefixCls:r||"ant-dropdown",getPopupContainer:t.generatePopupContainerFunc(l),key:"filter-dropdown"})}if(e.sorter){var z=e.sortDirections||t.props.sortDirections,g=d&&"ascend"===s,M=d&&"descend"===s,C=-1!==z.indexOf("ascend")&&n["createElement"](b["a"],{className:"".concat(c,"-column-sorter-up ").concat(g?"on":"off"),type:"caret-up",theme:"filled"}),H=-1!==z.indexOf("descend")&&n["createElement"](b["a"],{className:"".concat(c,"-column-sorter-down ").concat(M?"on":"off"),type:"caret-down",theme:"filled"});p=n["createElement"]("div",{title:a.sortTitle,className:u()("".concat(c,"-column-sorter-inner"),C&&H&&"".concat(c,"-column-sorter-inner-full")),key:"sorter"},C,H),m=function(c){var n={};e.onHeaderCell&&(n=Zt({},e.onHeaderCell(c)));var r=n.onClick;return n.onClick=function(){t.toggleSortOrder(e),r&&r.apply(void 0,arguments)},n}}return Zt(Zt({},e),{className:u()(e.className,(i={},It(i,"".concat(c,"-column-has-actions"),p||f),It(i,"".concat(c,"-column-has-filters"),f),It(i,"".concat(c,"-column-has-sorters"),p),It(i,"".concat(c,"-column-sort"),d&&s),i)),title:[n["createElement"]("span",{key:"title",className:"".concat(c,"-header-column")},n["createElement"]("div",{className:p?"".concat(c,"-column-sorters"):void 0},n["createElement"]("span",{className:"".concat(c,"-column-title")},t.renderColumnTitle(e.title)),n["createElement"]("span",{className:"".concat(c,"-column-sorter")},p))),f],onHeaderCell:m})})}},{key:"renderColumnTitle",value:function(e){var t=this.state,c=t.filters,n=t.sortOrder,r=t.sortColumn;return e instanceof Function?e({filters:c,sortOrder:n,sortColumn:r}):e}},{key:"render",value:function(){return n["createElement"](_t["a"],null,this.renderComponent)}}],[{key:"getDerivedStateFromProps",value:function(e,t){var c=t.prevProps,n=e.columns||T(e.children),r=Zt(Zt({},t),{prevProps:e,columns:n});if("pagination"in e||"pagination"in c){var o=Zt(Zt(Zt({},rc),t.pagination),e.pagination);o.current=o.current||1,o.pageSize=o.pageSize||10,r=Zt(Zt({},r),{pagination:!1!==e.pagination?o:oc})}e.rowSelection&&"selectedRowKeys"in e.rowSelection?e.store.setState({selectedRowKeys:e.rowSelection.selectedRowKeys||[]}):c.rowSelection&&!e.rowSelection&&e.store.setState({selectedRowKeys:[]}),"dataSource"in e&&e.dataSource!==c.dataSource&&e.store.setState({selectionDirty:!1}),e.setCheckboxPropsCache({});var a=ic(r,r.columns);if(a.length>0){var l=uc(r,r.columns),i=Zt({},r.filters);Object.keys(l).forEach(function(e){i[e]=l[e]}),sc(r,i)&&(r=Zt(Zt({},r),{filters:i}))}if(!lc(e.components,c.components)){var u=ac(e.components);r=Zt(Zt({},r),{components:u})}return r}}]),c}(n["Component"]);hc.propTypes={dataSource:l["array"],columns:l["array"],prefixCls:l["string"],useFixedHeader:l["bool"],rowSelection:l["object"],className:l["string"],size:l["string"],loading:l["oneOfType"]([l["bool"],l["object"]]),bordered:l["bool"],onChange:l["func"],locale:l["object"],dropdownPrefixCls:l["string"],sortDirections:l["array"],getPopupContainer:l["func"]},hc.defaultProps={dataSource:[],useFixedHeader:!1,className:"",size:"default",loading:!1,bordered:!1,indentSize:20,locale:{},rowKey:"key",showHeader:!0,sortDirections:["ascend","descend"],childrenColumnName:"children"},Object(f["polyfill"])(hc);var fc=function(e){Bt(c,e);var t=Wt(c);function c(e){var n;return Dt(this,c),n=t.call(this,e),n.setCheckboxPropsCache=function(e){return n.CheckboxPropsCache=e},n.CheckboxPropsCache={},n.store=Z({selectedRowKeys:tc(e).selectedRowKeys||[],selectionDirty:!1}),n}return Ut(c,[{key:"render",value:function(){return n["createElement"](hc,Zt({},this.props,{store:this.store,checkboxPropsCache:this.CheckboxPropsCache,setCheckboxPropsCache:this.setCheckboxPropsCache}))}}]),c}(n["Component"]);fc.displayName="withStore(Table)",fc.Column=Ie,fc.ColumnGroup=Xe;var pc=fc;t["a"]=pc},"wEI+":function(e,t,c){"use strict";var n=c("q1tI"),r=c("17x9"),o=c("wd/R"),a=c("veqR"),l=c("ul5b"),i=c("6CfX");function u(e){"@babel/helpers - typeof";return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function s(){return s=Object.assign||function(e){for(var t=1;t 0!";if(e!=this.$splits){if(e>this.$splits){while(this.$splitse)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors[t];var r=this.$editors.some(function(t){return t.session===e});return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,i=0;i=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},d="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",p="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function m(e){e.__index__=-1,e.__text_cache__=""}function g(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function v(){return function(e,t){t.normalize(e)}}function y(e){var t=e.re=n("sRdV")(e.__opts__),r=e.__tlds__.slice();function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(d),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");var u=[];function h(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,a(n))return s(n.validate)?r.validate=g(n.validate):l(n.validate)?r.validate=n.validate:h(t,n),void(l(n.normalize)?r.normalize=n.normalize:n.normalize?h(t,n):r.normalize=v());o(n)?u.push(t):h(t,n)}}),u.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:v()};var f=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(c).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),m(e)}function b(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function w(e,t){var n=new b(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function x(e,t){if(!(this instanceof x))return new x(e,t);t||h(e)&&(t=e,e={}),this.__opts__=r({},u,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},f,e),this.__compiled__={},this.__tlds__=p,this.__tlds_replaced__=!1,this.re={},y(this)}x.prototype.add=function(e,t){return this.__schemas__[e]=t,y(this),this},x.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},x.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l,c;if(this.re.schema_test.test(e)){s=this.re.schema_search,s.lastIndex=0;while(null!==(t=s.exec(e)))if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},x.prototype.pretest=function(e){return this.re.pretest.test(e)},x.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},x.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(w(this,t)),t=this.__last_index__);var r=t?e.slice(t):e;while(this.test(r))n.push(w(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},x.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),y(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,y(this),this)},x.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},x.prototype.onCompile=function(){},e.exports=x},"+JPL":function(e,t,n){e.exports={default:n("+SFK"),__esModule:!0}},"+LrT":function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);function h(e,t,n){if("string"!==typeof t){if(u){var f=c(t);f&&f!==u&&h(e,f,n)}var d=a(t);s&&(d=d.concat(s(t)));for(var p=0;px;x++)if((f||x in y)&&(m=y[x],g=b(m,x,v),e))if(n)_[x]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:_.push(m)}else if(u)return!1;return h?-1:c||u?u:_}}},"+qE3":function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=w,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,s;if(u(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=h(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):v(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"+wdc":function(e,t,n){"use strict";var r,i,o,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},h=Date.now();t.unstable_now=function(){return Date.now()-h},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,m=window.clearTimeout;if("undefined"!==typeof console){var g=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof f&&"function"===typeof f.now)t.unstable_now=function(){return f.now()};else{var v=d.now();t.unstable_now=function(){return d.now()-v}}var y=!1,b=null,w=-1,x=5,_=0;a=function(){return t.unstable_now()>=_},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],P=[],M=1,R=null,j=3,L=!1,D=!1,N=!1;function I(e){for(var t=k(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,C(A,t)}t=k(P)}}function $(e){if(N=!1,I(e),!D)if(null!==k(A))D=!0,r(F);else{var t=k(P);null!==t&&i($,t.startTime-e)}}function F(e,n){D=!1,N&&(N=!1,o()),L=!0;var r=j;try{for(I(n),R=k(A);null!==R&&(!(R.expirationTime>n)||e&&!a());){var s=R.callback;if(null!==s){R.callback=null,j=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?R.callback=l:R===k(A)&&O(A),I(n)}else O(A);R=k(A)}if(null!==R)var c=!0;else{var u=k(P);null!==u&&i($,u.startTime-n),c=!1}return c}finally{R=null,j=r,L=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||L||(D=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return k(A)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"===typeof a&&null!==a){var l=a.delay;l="number"===typeof l&&0s?(e.sortIndex=l,C(P,e),null===k(A)&&e===k(P)&&(N?o():N=!0,i($,l-s))):(e.sortIndex=a,C(A,e),D||L||(D=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var n=k(A);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime=0||(i[n]=e[n]);return i}var y=n("2mql"),b=n.n(y),w=n("0vxD"),x=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_=["reactReduxForwardedRef"],E=[],S=[null,null];function C(e,t){var n=e[1];return[t.payload,n+1]}function k(e,t,n){d(function(){return e.apply(void 0,t)},n)}function O(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function T(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,h=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,i.current)}catch(e){n=e,h=e}n||(h=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();var d=function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h};return d}}var A=function(){return[null,0]};function P(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,h=void 0===u?void 0:u,d=n.shouldHandleStateChanges,p=void 0===d||d,m=n.storeKey,y=void 0===m?"store":m,P=(n.withRef,n.forwardRef),M=void 0!==P&&P,R=n.context,j=void 0===R?o:R,L=v(n,x),D=j;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=g({},L,{getDisplayName:s,methodName:c,renderCountProp:h,shouldHandleStateChanges:p,storeKey:y,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=L.pure;function u(t){return e(t.dispatch,a)}var d=l?r["useMemo"]:function(e){return e()};function m(e){var n=Object(r["useMemo"])(function(){var t=e.reactReduxForwardedRef,n=v(e,_);return[e.context,t,n]},[e]),o=n[0],a=n[1],s=n[2],l=Object(r["useMemo"])(function(){return o&&o.Consumer&&Object(w["isContextConsumer"])(i.a.createElement(o.Consumer,null))?o:D},[o,D]),c=Object(r["useContext"])(l),h=Boolean(e.store)&&Boolean(e.store.getState)&&Boolean(e.store.dispatch);Boolean(c)&&Boolean(c.store);var m=h?e.store:c.store,y=Object(r["useMemo"])(function(){return u(m)},[m]),b=Object(r["useMemo"])(function(){if(!p)return S;var e=f(m,h?null:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[m,h,c]),x=b[0],P=b[1],M=Object(r["useMemo"])(function(){return h?c:g({},c,{subscription:x})},[h,c,x]),R=Object(r["useReducer"])(C,E,A),j=R[0],L=j[0],N=R[1];if(L&&L.error)throw L.error;var I=Object(r["useRef"])(),$=Object(r["useRef"])(s),F=Object(r["useRef"])(),B=Object(r["useRef"])(!1),V=d(function(){return F.current&&s===$.current?F.current:y(m.getState(),s)},[m,L,s]);k(O,[$,I,B,s,V,F,P]),k(T,[p,m,x,y,$,I,B,F,P,N],[m,x,y]);var W=Object(r["useMemo"])(function(){return i.a.createElement(t,g({},V,{ref:a}))},[a,t,V]),H=Object(r["useMemo"])(function(){return p?i.a.createElement(l.Provider,{value:M},W):W},[l,W,M]);return H}var x=l?i.a.memo(m):m;if(x.WrappedComponent=t,x.displayName=m.displayName=o,M){var P=i.a.forwardRef(function(e,t){return i.a.createElement(x,g({},e,{reactReduxForwardedRef:t}))});return P.displayName=o,P.WrappedComponent=t,b()(P,t)}return b()(x,t)}}function M(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function R(e,t){if(M(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function te(e,t){return e===t}function ne(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?P:n,i=t.mapStateToPropsFactories,o=void 0===i?H:i,a=t.mapDispatchToPropsFactories,s=void 0===a?B:a,l=t.mergePropsFactories,c=void 0===l?G:l,u=t.selectorFactory,h=void 0===u?Z:u;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,d=void 0===f?te:f,p=a.areOwnPropsEqual,m=void 0===p?R:p,y=a.areStatePropsEqual,b=void 0===y?R:y,w=a.areMergedPropsEqual,x=void 0===w?R:w,_=v(a,J),E=ee(e,o,"mapStateToProps"),S=ee(t,s,"mapDispatchToProps"),C=ee(n,c,"mergeProps");return r(h,g({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:C,pure:u,areStatesEqual:d,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}var re=ne();var ie=n("i8i4");n.d(t,"a",function(){return m}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return re}),l(ie["unstable_batchedUpdates"])},"/Mfd":function(e,t,n){var r=n("7vYJ"),i=n("4gcQ"),o=n("WFJy"),a=n("J57/")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("SfDG")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("XI6d").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),c=e.F;while(r--)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},"/Qhy":function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,i=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),l=a||s;if(e&&r(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var h=0,f=o.length;f>=0;f--){var d=o[f];"."===d?i(o,f):".."===d?(i(o,f),h++):h&&(i(o,f),h--)}if(!l)for(;h--;h)o.unshift("..");!l||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}n.r(t),t["default"]=o},"/dDc":function(e,t,n){"use strict";var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},o=[],a=[];function s(){var e=document.createElement("div"),t=e.style;function n(e,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];for(var o in i)if(o in t){n.push(i[o]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete i.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete i.transitionend.transition),n(r,o),n(i,a)}function l(e,t,n){e.addEventListener(t,n,!1)}function c(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!==typeof window&&"undefined"!==typeof document&&s();var u={startEvents:o,addStartEventListener:function(e,t){0!==o.length?o.forEach(function(n){l(e,n,t)}):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==o.length&&o.forEach(function(n){c(e,n,t)})},endEvents:a,addEndEventListener:function(e,t){0!==a.length?a.forEach(function(n){l(e,n,t)}):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==a.length&&a.forEach(function(n){c(e,n,t)})}};t["a"]=u},"/gYn":function(e,t,n){var r=n("gL7N")("toPrimitive"),i=Date.prototype;r in i||n("VPOE")(i,r,n("CfL3"))},"/mWb":function(e,t,n){"use strict";var r=n("WGNW"),i=n("il4q"),o=n("8BMt"),a=n("BFt8"),s=n("15BC").f;n("8Z/V")&&r(r.P+n("OJuA"),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},"/sWw":function(e,t,n){var r=n("c0Oy"),i=n("bV5f"),o=n("FqPH"),a=n("zKnh"),s=n("V5/1").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},0:function(e,t){},"03ni":function(e,t,n){"use strict";var r=n("AUWw"),i=n("ZDr/");e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},"08Qx":function(e,t,n){var r=n("c0Oy"),i=r.navigator;e.exports=i&&i.userAgent||""},"0Wa5":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.namespace||s,n=e.only,l=void 0===n?[]:n,c=e.except,u=void 0===c?[]:c;if(l.length>0&&u.length>0)throw Error("It is ambiguous to configurate `only` and `except` items at the same time.");var h={global:!1,models:{},effects:{}},f=r({},t,function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,n=arguments.length>1?arguments[1]:void 0,s=n.type,l=n.payload,c=l||{},u=c.namespace,f=c.actionType;switch(s){case o:e=i({},t,{global:!0,models:i({},t.models,r({},u,!0)),effects:i({},t.effects,r({},f,!0))});break;case a:var d=i({},t.effects,r({},f,!1)),p=i({},t.models,r({},u,Object.keys(d).some(function(e){var t=e.split("/")[0];return t===u&&d[e]}))),m=Object.keys(p).some(function(e){return p[e]});e=i({},t,{global:m,models:p,effects:d});break;default:e=t;break}return e});function d(e,t,n,r){var i=t.put,s=n.namespace;return 0===l.length&&0===u.length||l.length>0&&-1!==l.indexOf(r)||u.length>0&&-1===u.indexOf(r)?regeneratorRuntime.mark(function t(){var n=arguments;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i({type:o,payload:{namespace:s,actionType:r}});case 2:return t.next=4,e.apply(void 0,n);case 4:return t.next=6,i({type:a,payload:{namespace:s,actionType:r}});case 6:case"end":return t.stop()}},t)}):e}return{extraReducers:f,onEffect:d}}e.exports=l},"0hpf":function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},"0vxD":function(e,t,n){"use strict";e.exports=n("DUzY")},"0wlq":function(e,t,n){"use strict";var r=n("WGNW"),i=n("8H45"),o=n("il4q"),a=n("OsVd"),s=n("wYm8"),l=n("17jC");r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=l(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n("DIcO")("flatMap")},1:function(e,t,n){e.exports=n("KyW6")},"11+Y":function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("2qtc"),n("kLXV")),a=(n("5NDa"),n("5rEg")),s=(n("g9YV"),n("wCAj")),l=(n("+L6B"),n("2/Rp")),c=(n("/zsF"),n("PArb")),u=(n("Pwec"),n("CtXQ")),h=n("p0pE"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("Bl7J"),g=n("/MKj"),v=n("8zNj"),y=n("v32e");class b extends p.a.Component{constructor(e){super(e),this.state={group:[],submit:{},visible:!1}}componentDidMount(){this.props.dispatch({type:"serverGroup/fetch"})}save(){var e=f()({},this.state.submit);this.props.dispatch({type:"serverGroup/save",params:e,callback:()=>{this.modalVisible()}})}drop(e){this.props.dispatch({type:"serverGroup/drop",id:e})}edit(e){var t=this.props.serverGroup.groups;this.setState({submit:f()({},t[e]),visible:!0})}modalVisible(){this.setState({visible:!this.state.visible,submit:{}})}render(){var e=this.props.serverGroup,t=e.groups,n=e.fetchLoading,r=[{title:"\u7ec4ID",dataIndex:"id",key:"id"},{title:"\u7ec4\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u7528\u6237\u6570\u91cf",dataIndex:"user_count",key:"user_count",render:e=>{return p.a.createElement(p.a.Fragment,null,p.a.createElement(u["a"],{type:"user",style:{cursor:"move"}})," ",e)}},{title:"\u8282\u70b9\u6570\u91cf",dataIndex:"server_count",key:"server_count",render:e=>{return p.a.createElement(p.a.Fragment,null,p.a.createElement(u["a"],{type:"database",style:{cursor:"move"}})," ",e)}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",render:(e,t,n)=>{return p.a.createElement("div",null,p.a.createElement(v["a"],{record:t,key:t.id},p.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.edit(n)},"\u7f16\u8f91")),p.a.createElement(c["a"],{type:"vertical"}),p.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.drop(t.id)},"\u5220\u9664"))}}];return p.a.createElement(m["a"],i()({},this.props,{title:"\u6743\u9650\u7ec4\u7ba1\u7406"}),p.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),p.a.createElement(y["a"],{loading:n},p.a.createElement("div",{className:"block block-rounded"},p.a.createElement("div",{className:"bg-white"},p.a.createElement("div",{style:{padding:15}},p.a.createElement(v["a"],null,p.a.createElement(l["a"],{onClick:()=>this.modalVisible()},p.a.createElement(u["a"],{type:"plus"})," \u6dfb\u52a0\u6743\u9650\u7ec4"))),p.a.createElement(s["a"],{tableLayout:"auto",columns:r,dataSource:t,pagination:!1})))),p.a.createElement(o["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u7ec4":"\u521b\u5efa\u7ec4"),visible:this.state.visible,onCancel:()=>this.modalVisible(),onOk:()=>n||this.save(),okText:n?p.a.createElement(u["a"],{type:"loading"}):"\u63d0\u4ea4",cancelText:"\u53d6\u6d88"},p.a.createElement("div",null,p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u7ec4\u540d"),p.a.createElement(a["a"],{placeholder:"\u8bf7\u8f93\u5165\u7ec4\u540d",value:this.state.submit.name,onChange:e=>{this.setState({submit:f()({},this.state.submit,{name:e.target.value})})}})))))}}t["default"]=Object(g["c"])(e=>{var t=e.serverGroup;return{serverGroup:t}})(b)},"15BC":function(e,t,n){var r=n("LsAW"),i=n("pQGJ"),o=n("OeOC"),a=n("8BMt"),s=n("oxo0"),l=n("A7R+"),c=Object.getOwnPropertyDescriptor;t.f=n("8Z/V")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"16Al":function(e,t,n){"use strict";var r=n("WbBG");function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},"17jC":function(e,t,n){var r=n("3FhE");e.exports=function(e,t){return new(r(e))(t)}},"17x9":function(e,t,n){e.exports=n("16Al")()},"198K":function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}e.exports=n},"1AkM":function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return m});var r=n("Xnb7"),i=n("bYtY"),o=n("6GrX"),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=l(t,n,r,i);for(var a=0,s=o.length;a=l;u++)c-=l;var h=Object(o["f"])(n,t);return h>c&&(n="",h=0),c=e-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=c,a.containerWidth=e,a}function c(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=Object(o["f"])(e,r);if(a<=n)return e;for(var s=0;;s++){if(a<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=0===s?u(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,l),a=Object(o["f"])(e,r)}return""===e&&(e=t.placeholder),e}function u(e,t,n,r){for(var i=0,o=0,a=e.length;ov&&p){var y=Math.floor(v/f);n=n.slice(0,y)}if(e&&u&&null!=m)for(var b=l(m,s,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x=0;xd&&g(n,e.substring(d,m),t,f),g(n,l[2],t,f,l[1]),d=a.lastIndex}du){T>0?(C.tokens=C.tokens.slice(0,T),E(C,O,k),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break e}var D=P.width,N=null==D||"auto"===D;if("string"===typeof D&&"%"===D.charAt(D.length-1))A.percentWidth=D,v.push(A),A.contentWidth=Object(o["f"])(A.text,j);else{if(N){var I=P.backgroundColor,$=I&&I.image;$&&($=r["b"]($),r["c"]($)&&(A.width=Math.max(A.width,$.width*L/$.height)))}var F=x&&null!=c?c-O:null;null!=F&&F0&&v+r.accumWidth>r.width&&(a=t.split("\n"),p=!0),r.accumWidth=v}else{var y=w(t,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+g,s=y.linesWidths,a=y.lines}}else a=t.split("\n");for(var b=0;b=33&&t<=383}var y=Object(i["I"])(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function b(e){return!v(e)||!!y[e]}function w(e,t,n,r,i){for(var a=[],s=[],l="",c="",u=0,h=0,f=0;fn:i+h+p>n)?h?(l||c)&&(m?(l||(l=c,c="",u=0,h=u),a.push(l),s.push(h-u),c+=d,u+=p,l="",h=u):(c&&(l+=c,c="",u=0),a.push(l),s.push(h),l=d,h=p)):m?(a.push(c),s.push(u),c=d,u=p):(a.push(d),s.push(p)):(h+=p,m?(c+=d,u+=p):(c&&(l+=c,c="",u=0),l+=d))}else c&&(l+=c,h+=u),a.push(l),s.push(h),l="",c="",u=0,h=0}return a.length||l||(l=e,c="",u=0),c&&(l+=c),l&&(a.push(l),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},"1EPD":function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",function(){return i})},"1Jh7":function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("T6xi"),a=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!1)},t}(i["b"]);s.prototype.type="polyline",t["a"]=s},"1MYJ":function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Object(r["a"])(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=o},"1W/9":function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("i8i4"),a=n.n(o),s=n("17x9"),l=n.n(s),c=n("VCL8"),u=n("PIAm"),h=n("QC+M"),f=n("qx4F");function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,i={},o=Object.keys(e);return o.forEach(function(e){i[e]=r.style[e]}),o.forEach(function(t){r.style[t]=e[t]}),i}var p=d;function m(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var g={},v=function(e){if(m()||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return p(g),g={},void(document.body.className=r.replace(n,"").trim())}var i=Object(f["a"])();if(i&&(g=p({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!n.test(r))){var o="".concat(r," ").concat(t);document.body.className=o.trim()}}};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return n(b(b(b({},t),s),{},{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:r},function(t){var n=t.renderComponent,r=t.removeContainer;return e.renderComponent=n,e.removeContainer=r,null})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,i=e.visible,o=e.getContainer;if(n){var a=n.visible,s=n.getContainer;i!==a&&(R=i&&!a?R+1:R-1);var l="function"===typeof o&&"function"===typeof s;(l?o.toString()!==s.toString():o!==s)&&r.removeCurrentContainer(!1)}return{prevProps:e}}}]),n}(i.a.Component);N.propTypes={wrapperClassName:l.a.string,forceRender:l.a.bool,getContainer:l.a.any,children:l.a.func,visible:l.a.bool};t["a"]=Object(c["polyfill"])(N)},"1bdT":function(e,t,n){"use strict";var r=n("hYLj"),i=n("Bq2U"),o=n("mFDi"),a=n("b9Ot"),s=n("6GrX"),l=n("bYtY"),c=n("LPTA"),u=n("Qe9p"),h=n("S8SX"),f="__zr_normal__",d=r["a"].concat(["ignore"]),p=Object(l["I"])(r["a"],function(e,t){return e[t]=!0,e},{ignore:!1}),m={},g=new o["a"](0,0,0,0),v=function(){function e(e){this.id=Object(l["n"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,l=!1;i.parent=r?this:null;var c=!1;if(i.copyTransform(t),null!=n.position){var u=g;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(m,n,u):Object(s["c"])(m,n,u),i.x=m.x,i.y=m.y,o=m.align,a=m.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var d=void 0,p=void 0;"center"===f?(d=.5*u.width,p=.5*u.height):(d=Object(s["g"])(f[0],u.width),p=Object(s["g"])(f[1],u.height)),c=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],c||(i.originX=-v[0],i.originY=-v[1]));var y=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),w=void 0,x=void 0,_=void 0;y&&this.canBeInsideText()?(w=n.insideFill,x=n.insideStroke,null!=w&&"auto"!==w||(w=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(w),_=!0)):(w=n.outsideFill,x=n.outsideStroke,null!=w&&"auto"!==w||(w=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(w),_=!0)),w=w||"#000",w===b.fill&&x===b.stroke&&_===b.autoStroke&&o===b.align&&a===b.verticalAlign||(l=!0,b.fill=w,b.stroke=x,b.autoStroke=_,b.align=o,b.verticalAlign=a,t.setDefaultTextStyle(b)),t.__dirty|=h["a"],l&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c["d"]:c["a"]},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(u["d"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(u["e"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(l["l"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(l["x"])(e))for(var n=e,r=Object(l["B"])(n),i=0;i0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(f,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===f,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(l["p"])(a,e)>=0)||!t&&1!==a.length){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),c||i){i||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var d=this._textContent,p=this._textGuide;return d&&d.useState(e,t,n,u),p&&p.useState(e,t,n,u),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"]),c}Object(l["C"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s0,p);var m=this._textContent,g=this._textGuide;m&&m.useStates(e,t,f),g&&g.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"])}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(l["p"])(r,e),o=Object(l["p"])(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during(function(e,t){n.during(t)});for(var f=0;f0||o.force&&!s.length){var A=void 0,P=void 0,M=void 0;if(c){P={},p&&(A={});for(C=0;Ce.serverManage);case 4:return l=n.sent,c=l.servers,re.serverManage);case 5:return o=e.sent,a=o.servers,e.next=9,Object(s["b"])("/admin/server/manage/sort",{sorts:a.map(e=>({key:e.type,value:e.id}))});case 9:return l=e.sent,e.next=12,r({type:"setState",payload:{fetchLoading:!1}});case 12:if(200===l.code){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,r({type:"getNodes"});case 16:case"end":return e.stop()}},e)})()}}}},"1dGX":function(e,t,n){"use strict";t.Any=n("y8fO"),t.Cc=n("p7ys"),t.Cf=n("b9EY"),t.P=n("fKCf"),t.Z=n("T8I8")},"1dM+":function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("+L6B"),n("2/Rp")),a=(n("Znn+"),n("ZTPi")),s=(n("BoS7"),n("Sdc0")),l=n("p0pE"),c=n.n(l),u=n("q1tI"),h=n.n(u),f=n("Bl7J"),d=n("/MKj");class p extends h.a.Component{render(){return h.a.createElement("div",{className:"row ".concat(this.props.isChildren?"v2board-config-children":""),style:{padding:"20px",borderBottom:"1px solid #eee"}},h.a.createElement("div",{className:"col-lg-6"},h.a.createElement("div",{style:{fontWeight:"bold",marginBottom:5}},this.props.title),h.a.createElement("div",{style:{fontSize:12,marginBottom:5,color:"#666"}},this.props.description)),h.a.createElement("div",{className:"col-lg-6 text-right"},this.props.children))}}class m extends h.a.Component{componentDidMount(){this.props.dispatch({type:"config/fetch"}),this.props.dispatch({type:"plan/fetch"}),this.props.dispatch({type:"config/getEmailTemplate"}),this.props.dispatch({type:"config/getThemeTemplate"})}set(e,t,n){var r=this.props.config;this.props.dispatch({type:"config/setState",payload:{[e]:c()({},r[e],{[t]:n})}}),this.inputDelayTimer&&clearTimeout(this.inputDelayTimer),this.inputDelayTimer=setTimeout(function(){this.inputDelayTimer=null,this.props.dispatch({type:"config/save",parentKey:e})}.bind(this),1500)}render(){var e=this.props.config,t=e.site,n=e.invite,r=e.subscribe,l=e.frontend,c=e.server,u=e.tabs,d=e.fetchLoading,m=e.emailTemplate,g=(e.themeTemplate,e.email),v=e.telegram,y=e.setTelegramWebhookLoading,b=e.app,w=e.testSendMailLoading,x=this.props.plan.plans;return console.log(t),h.a.createElement(f["a"],i()({},this.props,{title:"\u7cfb\u7edf\u914d\u7f6e"}),h.a.createElement("div",{className:"mb-0 block border-bottom ".concat(d?"block-mode-loading":"")},h.a.createElement(a["a"],{onChange:e=>this.setState({tabs:e}),defaultActiveKey:u,size:"large"},h.a.createElement(a["a"].TabPane,{tab:"\u7ad9\u70b9",key:"site"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u7ad9\u70b9\u540d\u79f0",description:"\u7528\u4e8e\u663e\u793a\u9700\u8981\u7ad9\u70b9\u540d\u79f0\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7ad9\u70b9\u540d\u79f0",defaultValue:t.app_name,onChange:e=>this.set("site","app_name",e.target.value)})),h.a.createElement(p,{title:"\u7ad9\u70b9\u63cf\u8ff0",description:"\u7528\u4e8e\u663e\u793a\u9700\u8981\u7ad9\u70b9\u63cf\u8ff0\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7ad9\u70b9\u63cf\u8ff0",defaultValue:t.app_description,onChange:e=>this.set("site","app_description",e.target.value)})),h.a.createElement(p,{title:"\u7ad9\u70b9\u7f51\u5740",description:"\u5f53\u524d\u7f51\u7ad9\u6700\u65b0\u7f51\u5740\uff0c\u5c06\u4f1a\u5728\u90ae\u4ef6\u7b49\u9700\u8981\u7528\u4e8e\u7f51\u5740\u5904\u4f53\u73b0\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7ad9\u70b9URL\uff0c\u672b\u5c3e\u4e0d\u8981/",defaultValue:t.app_url,onChange:e=>this.set("site","app_url",e.target.value)})),h.a.createElement(p,{title:"\u5f3a\u5236HTTPS",description:"\u5f53\u7ad9\u70b9\u6ca1\u6709\u4f7f\u7528HTTPS\uff0cCDN\u6216\u53cd\u4ee3\u5f00\u542f\u5f3a\u5236HTTPS\u65f6\u9700\u8981\u5f00\u542f\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.force_https),onChange:e=>this.set("site","force_https",e?1:0)})),h.a.createElement(p,{title:"LOGO",description:"\u7528\u4e8e\u663e\u793a\u9700\u8981LOGO\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165LOGO URL\uff0c\u672b\u5c3e\u4e0d\u8981/",defaultValue:t.logo,onChange:e=>this.set("site","logo",e.target.value)})),h.a.createElement(p,{title:"\u8ba2\u9605URL",description:"\u7528\u4e8e\u8ba2\u9605\u6240\u4f7f\u7528\uff0c\u7559\u7a7a\u5219\u4e3a\u7ad9\u70b9URL\u3002\u5982\u9700\u591a\u4e2a\u8ba2\u9605URL\u968f\u673a\u83b7\u53d6\u8bf7\u4f7f\u7528\u9017\u53f7\u8fdb\u884c\u5206\u5272\u3002"},h.a.createElement("textarea",{rows:"4",type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u8ba2\u9605URL\uff0c\u672b\u5c3e\u4e0d\u8981/\u3002\u9017\u53f7\u5206\u5272\u652f\u6301\u591a\u57df\u540d",defaultValue:t.subscribe_url,onChange:e=>this.set("site","subscribe_url",e.target.value)})),h.a.createElement(p,{title:"\u7528\u6237\u6761\u6b3e(TOS)URL",description:"\u7528\u4e8e\u8df3\u8f6c\u5230\u7528\u6237\u6761\u6b3e(TOS)"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u6761\u6b3eURL\uff0c\u672b\u5c3e\u4e0d\u8981/",defaultValue:t.tos_url,onChange:e=>this.set("site","tos_url",e.target.value)})),h.a.createElement(p,{title:"\u5b89\u5168\u6a21\u5f0f",description:"\u5f00\u542f\u540e\u9664\u4e86\u7ad9\u70b9URL\u4ee5\u5916\u7684\u7ed1\u5b9a\u672c\u7ad9\u70b9\u7684\u57df\u540d\u8bbf\u95ee\u90fd\u5c06\u4f1a\u88ab403\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.safe_mode_enable),onChange:e=>this.set("site","safe_mode_enable",e?1:0)})),h.a.createElement(p,{title:"\u505c\u6b62\u65b0\u7528\u6237\u6ce8\u518c",description:"\u5f00\u542f\u540e\u4efb\u4f55\u4eba\u90fd\u5c06\u65e0\u6cd5\u8fdb\u884c\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.stop_register),onChange:e=>this.set("site","stop_register",e?1:0)})),h.a.createElement(p,{title:"\u90ae\u7bb1\u9a8c\u8bc1",description:"\u5f00\u542f\u540e\u5c06\u4f1a\u5f3a\u5236\u8981\u6c42\u7528\u6237\u8fdb\u884c\u90ae\u7bb1\u9a8c\u8bc1\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.email_verify),onChange:e=>this.set("site","email_verify",e?1:0)})),h.a.createElement(p,{title:"\u7981\u6b62\u4f7f\u7528Gmail\u591a\u522b\u540d",description:"\u5f00\u542f\u540eGmail\u591a\u522b\u540d\u5c06\u65e0\u6cd5\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.email_gmail_limit_enable),onChange:e=>this.set("site","email_gmail_limit_enable",e?1:0)})),h.a.createElement(p,{title:"\u6ce8\u518c\u8bd5\u7528",description:"\u9009\u62e9\u9700\u8981\u8bd5\u7528\u7684\u8ba2\u9605\uff0c\u5982\u679c\u6ca1\u6709\u9009\u9879\u8bf7\u5148\u524d\u5f80\u8ba2\u9605\u7ba1\u7406\u6dfb\u52a0\u3002"},h.a.createElement("select",{onChange:e=>this.set("site","try_out_plan_id",e.target.value),className:"form-control",value:t.try_out_plan_id,placeholder:"\u8bf7\u9009\u62e9\u8bd5\u7528\u8ba2\u9605"},h.a.createElement("option",{value:0},"\u5173\u95ed"),x.map(e=>{return h.a.createElement("option",{key:Math.random(),value:e.id},e.name)}))),0===t.try_out_plan_id||h.a.createElement(p,{isChildren:!0,title:"\u8bd5\u7528\u65f6\u95f4(\u5c0f\u65f6)"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.try_out_hour,onChange:e=>this.set("site","try_out_hour",e.target.value)})),h.a.createElement(p,{title:"\u90ae\u7bb1\u540e\u7f00\u767d\u540d\u5355",description:"\u5f00\u542f\u540e\u5728\u540d\u5355\u4e2d\u7684\u90ae\u7bb1\u540e\u7f00\u624d\u5141\u8bb8\u8fdb\u884c\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.email_whitelist_enable),onChange:e=>this.set("site","email_whitelist_enable",e?1:0)})),t.email_whitelist_enable?h.a.createElement(p,{isChildren:!0,title:"\u767d\u540d\u5355\u540e\u7f00",description:"\u8bf7\u4f7f\u7528\u9017\u53f7\u8fdb\u884c\u5206\u5272\uff0c\u5982\uff1aqq.com,gmail.com\u3002"},h.a.createElement("textarea",{rows:"4",type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u540e\u7f00\u57df\u540d\uff0c\u9017\u53f7\u5206\u5272 \u5982\uff1aqq.com,gmail.com",defaultValue:t.email_whitelist_suffix,onChange:e=>this.set("site","email_whitelist_suffix",e.target.value.split(","))})):"",h.a.createElement(p,{title:"\u9632\u673a\u5668\u4eba",description:"\u5f00\u542f\u540e\u5c06\u4f1a\u4f7f\u7528Google reCAPTCHA\u9632\u6b62\u673a\u5668\u4eba\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.recaptcha_enable),onChange:e=>this.set("site","recaptcha_enable",e?1:0)})),t.recaptcha_enable?h.a.createElement(h.a.Fragment,null,h.a.createElement(p,{isChildren:!0,title:"\u5bc6\u94a5",description:"\u5728Google reCAPTCHA\u7533\u8bf7\u7684\u5bc6\u94a5\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.recaptcha_key,onChange:e=>this.set("site","recaptcha_key",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u7f51\u7ad9\u5bc6\u94a5",description:"\u5728Google reCAPTCH\u7533\u8bf7\u7684\u7f51\u7ad9\u5bc6\u94a5\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.recaptcha_site_key,onChange:e=>this.set("site","recaptcha_site_key",e.target.value)}))):"",h.a.createElement(p,{title:"IP\u6ce8\u518c\u9650\u5236",description:"\u5f00\u542f\u540e\u5982\u679cIP\u6ce8\u518c\u8d26\u6237\u8fbe\u5230\u89c4\u5219\u8981\u6c42\u5c06\u4f1a\u88ab\u9650\u5236\u6ce8\u518c\uff0c\u8bf7\u6ce8\u610fIP\u5224\u65ad\u53ef\u80fd\u56e0\u4e3aCDN\u6216\u524d\u7f6e\u4ee3\u7406\u5bfc\u81f4\u95ee\u9898\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.register_limit_by_ip_enable),onChange:e=>this.set("site","register_limit_by_ip_enable",e?1:0)})),t.register_limit_by_ip_enable?h.a.createElement(h.a.Fragment,null,h.a.createElement(p,{isChildren:!0,title:"\u6b21\u6570",description:"\u8fbe\u5230\u6ce8\u518c\u6b21\u6570\u540e\u5f00\u542f\u60e9\u7f5a\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.register_limit_count,onChange:e=>this.set("site","register_limit_count",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u60e9\u7f5a\u65f6\u95f4(\u5206\u949f)",description:"\u9700\u8981\u7b49\u5f85\u60e9\u7f5a\u65f6\u95f4\u8fc7\u540e\u624d\u53ef\u4ee5\u518d\u6b21\u6ce8\u518c\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.register_limit_expire,onChange:e=>this.set("site","register_limit_expire",e.target.value)}))):"",h.a.createElement(p,{title:"\u8d27\u5e01\u5355\u4f4d",description:"\u4ec5\u7528\u4e8e\u5c55\u793a\u4f7f\u7528\uff0c\u66f4\u6539\u540e\u7cfb\u7edf\u4e2d\u6240\u6709\u7684\u8d27\u5e01\u5355\u4f4d\u90fd\u5c06\u53d1\u751f\u53d8\u66f4\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"CNY",defaultValue:t.currency,onChange:e=>this.set("site","currency",e.target.value)})),h.a.createElement(p,{title:"\u8d27\u5e01\u7b26\u53f7",description:"\u4ec5\u7528\u4e8e\u5c55\u793a\u4f7f\u7528\uff0c\u66f4\u6539\u540e\u7cfb\u7edf\u4e2d\u6240\u6709\u7684\u8d27\u5e01\u5355\u4f4d\u90fd\u5c06\u53d1\u751f\u53d8\u66f4\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\xa5",defaultValue:t.currency_symbol,onChange:e=>this.set("site","currency_symbol",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"\u8ba2\u9605",key:"subscribe"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u5141\u8bb8\u7528\u6237\u66f4\u6539\u8ba2\u9605",description:"\u5f00\u542f\u540e\u7528\u6237\u5c06\u4f1a\u53ef\u4ee5\u5bf9\u8ba2\u9605\u8ba1\u5212\u8fdb\u884c\u53d8\u66f4\u3002"},h.a.createElement(s["a"],{checked:parseInt(r.plan_change_enable),onChange:e=>this.set("subscribe","plan_change_enable",e?1:0)})),h.a.createElement(p,{title:"\u6708\u6d41\u91cf\u91cd\u7f6e\u65b9\u5f0f",description:"\u5168\u5c40\u6d41\u91cf\u91cd\u7f6e\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u6bcf\u67081\u53f7\u3002\u53ef\u4ee5\u5728\u8ba2\u9605\u7ba1\u7406\u4e3a\u8ba2\u9605\u5355\u72ec\u8bbe\u7f6e\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","reset_traffic_method",e.target.value),className:"form-control",value:r.reset_traffic_method,placeholder:"\u8bf7\u9009\u62e9\u8ba2\u9605\u91cd\u7f6e\u65b9\u5f0f"},h.a.createElement("option",{value:0},"\u6bcf\u67081\u53f7"),h.a.createElement("option",{value:1},"\u6309\u6708\u91cd\u7f6e"),h.a.createElement("option",{value:2},"\u4e0d\u91cd\u7f6e"),h.a.createElement("option",{value:3},"\u6bcf\u5e741\u67081\u65e5"),h.a.createElement("option",{value:4},"\u6309\u5e74\u91cd\u7f6e"))),h.a.createElement(p,{title:"\u5f00\u542f\u6298\u62b5\u65b9\u6848",description:"\u5f00\u542f\u540e\u7528\u6237\u66f4\u6362\u8ba2\u9605\u5c06\u4f1a\u7531\u7cfb\u7edf\u5bf9\u539f\u6709\u8ba2\u9605\u8fdb\u884c\u6298\u62b5\uff0c\u65b9\u6848\u53c2\u8003\u6587\u6863\u3002"},h.a.createElement(s["a"],{checked:parseInt(r.surplus_enable),onChange:e=>this.set("subscribe","surplus_enable",e?1:0)})),h.a.createElement(p,{title:"\u5f53\u8ba2\u9605\u65b0\u8d2d\u65f6\u89e6\u53d1\u4e8b\u4ef6",description:"\u65b0\u8d2d\u8ba2\u9605\u5b8c\u6210\u65f6\u5c06\u89e6\u53d1\u8be5\u4efb\u52a1\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","new_order_event_id",e.target.value),className:"form-control",value:r.new_order_event_id,placeholder:"\u8bf7\u9009\u62e9\u4e8b\u4ef6"},h.a.createElement("option",{value:0},"\u4e0d\u6267\u884c\u4efb\u4f55\u52a8\u4f5c"),h.a.createElement("option",{value:1},"\u91cd\u7f6e\u7528\u6237\u6d41\u91cf"))),h.a.createElement(p,{title:"\u5f53\u8ba2\u9605\u7eed\u8d39\u65f6\u89e6\u53d1\u4e8b\u4ef6",description:"\u7eed\u8d39\u8ba2\u9605\u5b8c\u6210\u65f6\u5c06\u89e6\u53d1\u8be5\u4efb\u52a1\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","renew_order_event_id",e.target.value),className:"form-control",value:r.renew_order_event_id,placeholder:"\u8bf7\u9009\u62e9\u4e8b\u4ef6"},h.a.createElement("option",{value:0},"\u4e0d\u6267\u884c\u4efb\u4f55\u52a8\u4f5c"),h.a.createElement("option",{value:1},"\u91cd\u7f6e\u7528\u6237\u6d41\u91cf"))),h.a.createElement(p,{title:"\u5f53\u8ba2\u9605\u53d8\u66f4\u65f6\u89e6\u53d1\u4e8b\u4ef6",description:"\u53d8\u66f4\u8ba2\u9605\u5b8c\u6210\u65f6\u5c06\u89e6\u53d1\u8be5\u4efb\u52a1\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","change_order_event_id",e.target.value),className:"form-control",value:r.change_order_event_id,placeholder:"\u8bf7\u9009\u62e9\u4e8b\u4ef6"},h.a.createElement("option",{value:0},"\u4e0d\u6267\u884c\u4efb\u4f55\u52a8\u4f5c"),h.a.createElement("option",{value:1},"\u91cd\u7f6e\u7528\u6237\u6d41\u91cf"))),h.a.createElement(p,{title:"\u5728\u8ba2\u9605\u4e2d\u5c55\u793a\u8ba2\u9605\u4fe1\u606f",description:"\u5f00\u542f\u540e\u5c06\u4f1a\u5728\u7528\u6237\u8ba2\u9605\u8282\u70b9\u65f6\u8f93\u51fa\u8ba2\u9605\u4fe1\u606f\u3002"},h.a.createElement(s["a"],{checked:parseInt(r.show_info_to_server_enable),onChange:e=>this.set("subscribe","show_info_to_server_enable",e?1:0)})))),h.a.createElement(a["a"].TabPane,{tab:"\u9080\u8bf7&\u4f63\u91d1",key:"invite"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u5f00\u542f\u5f3a\u5236\u9080\u8bf7",description:"\u5f00\u542f\u540e\u53ea\u6709\u88ab\u9080\u8bf7\u7684\u7528\u6237\u624d\u53ef\u4ee5\u8fdb\u884c\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.invite_force),onChange:e=>this.set("invite","invite_force",e?1:0)})),h.a.createElement(p,{title:"\u9080\u8bf7\u4f63\u91d1\u767e\u5206\u6bd4",description:"\u9ed8\u8ba4\u5168\u5c40\u7684\u4f63\u91d1\u5206\u914d\u6bd4\u4f8b\uff0c\u4f60\u53ef\u4ee5\u5728\u7528\u6237\u7ba1\u7406\u5355\u72ec\u914d\u7f6e\u5355\u4e2a\u6bd4\u4f8b\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:n.invite_commission,onChange:e=>this.set("invite","invite_commission",parseInt(e.target.value))})),h.a.createElement(p,{title:"\u7528\u6237\u53ef\u521b\u5efa\u9080\u8bf7\u7801\u4e0a\u9650"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:n.invite_gen_limit,onChange:e=>this.set("invite","invite_gen_limit",parseInt(e.target.value))})),h.a.createElement(p,{title:"\u9080\u8bf7\u7801\u6c38\u4e0d\u5931\u6548",description:"\u5f00\u542f\u540e\u9080\u8bf7\u7801\u88ab\u4f7f\u7528\u540e\u5c06\u4e0d\u4f1a\u5931\u6548\uff0c\u5426\u5219\u4f7f\u7528\u8fc7\u540e\u5373\u5931\u6548\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.invite_never_expire),onChange:e=>this.set("invite","invite_never_expire",e?1:0)})),h.a.createElement(p,{title:"\u4f63\u91d1\u4ec5\u9996\u6b21\u53d1\u653e",description:"\u5f00\u542f\u540e\u88ab\u9080\u8bf7\u4eba\u9996\u6b21\u652f\u4ed8\u65f6\u624d\u4f1a\u4ea7\u751f\u4f63\u91d1\uff0c\u53ef\u4ee5\u5728\u7528\u6237\u7ba1\u7406\u5bf9\u7528\u6237\u8fdb\u884c\u5355\u72ec\u914d\u7f6e\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.commission_first_time_enable),onChange:e=>this.set("invite","commission_first_time_enable",e?1:0)})),h.a.createElement(p,{title:"\u4f63\u91d1\u81ea\u52a8\u786e\u8ba4",description:"\u5f00\u542f\u540e\u4f63\u91d1\u5c06\u4f1a\u5728\u8ba2\u5355\u5b8c\u62103\u65e5\u540e\u81ea\u52a8\u8fdb\u884c\u786e\u8ba4\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.commission_auto_check_enable),onChange:e=>this.set("invite","commission_auto_check_enable",e?1:0)})),h.a.createElement(p,{title:"\u63d0\u73b0\u5355\u7533\u8bf7\u95e8\u69db(\u5143)",description:"\u5c0f\u4e8e\u95e8\u69db\u91d1\u989d\u7684\u63d0\u73b0\u5355\u5c06\u4e0d\u4f1a\u88ab\u63d0\u4ea4\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:n.commission_withdraw_limit,onChange:e=>this.set("invite","commission_withdraw_limit",e.target.value)})),h.a.createElement(p,{title:"\u63d0\u73b0\u65b9\u5f0f",description:"\u53ef\u4ee5\u652f\u6301\u7684\u63d0\u73b0\u65b9\u5f0f\u3002"},h.a.createElement("textarea",{rows:"4",type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u540e\u7f00\u57df\u540d\uff0c\u9017\u53f7\u5206\u5272 \u5982\uff1a\u652f\u4ed8\u5b9d,USDT,\u8d1d\u5b9d",defaultValue:n.commission_withdraw_method,onChange:e=>this.set("invite","commission_withdraw_method",e.target.value.split(","))})),h.a.createElement(p,{title:"\u5173\u95ed\u63d0\u73b0",description:"\u5173\u95ed\u540e\u5c06\u7981\u6b62\u7528\u6237\u7533\u8bf7\u63d0\u73b0\uff0c\u4e14\u9080\u8bf7\u4f63\u91d1\u5c06\u4f1a\u76f4\u63a5\u8fdb\u5165\u7528\u6237\u4f59\u989d\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.withdraw_close_enable),onChange:e=>this.set("invite","withdraw_close_enable",e?1:0)})),h.a.createElement(p,{title:"\u4e09\u7ea7\u5206\u9500",description:"\u5f00\u542f\u540e\u5c06\u4f63\u91d1\u5c06\u6309\u7167\u8bbe\u7f6e\u76843\u6210\u6bd4\u4f8b\u8fdb\u884c\u5206\u6210\uff0c\u4e09\u6210\u6bd4\u4f8b\u5408\u8ba1\u8bf7\u4e0d\u8981>100%\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.commission_distribution_enable),onChange:e=>this.set("invite","commission_distribution_enable",e?1:0)})),parseInt(n.commission_distribution_enable)?h.a.createElement(h.a.Fragment,null,h.a.createElement(p,{isChildren:!0,title:"\u4e00\u7ea7\u9080\u8bf7\u4eba\u6bd4\u4f8b"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u6bd4\u4f8b\u5982\uff1a50",defaultValue:n.commission_distribution_l1,onChange:e=>this.set("invite","commission_distribution_l1",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u4e8c\u7ea7\u9080\u8bf7\u4eba\u6bd4\u4f8b"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u6bd4\u4f8b\u5982\uff1a30",defaultValue:n.commission_distribution_l2,onChange:e=>this.set("invite","commission_distribution_l2",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u4e09\u7ea7\u9080\u8bf7\u4eba\u6bd4\u4f8b"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u6bd4\u4f8b\u5982\uff1a20",defaultValue:n.commission_distribution_l3,onChange:e=>this.set("invite","commission_distribution_l3",e.target.value)}))):"")),h.a.createElement(a["a"].TabPane,{tab:"\u4e2a\u6027\u5316",key:"frontend"},h.a.createElement("div",{className:"block-content"},h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-lg-12"},h.a.createElement("div",{className:"alert alert-warning",role:"alert"},h.a.createElement("p",{className:"mb-0"},"\u5982\u679c\u4f60\u91c7\u7528\u524d\u540e\u5206\u79bb\u7684\u65b9\u5f0f\u90e8\u7f72V2board\u7ba1\u7406\u7aef\uff0c\u90a3\u4e48\u672c\u9875\u914d\u7f6e\u5c06\u4e0d\u4f1a\u751f\u6548\u3002\u4e86\u89e3",h.a.createElement("b",null,h.a.createElement("a",{href:"https://docs.v2board.com/use/advanced.html#%E5%89%8D%E7%AB%AF%E5%88%86%E7%A6%BB"},"\u524d\u540e\u5206\u79bb"))))))),h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u540e\u53f0\u8def\u5f84",description:"\u540e\u53f0\u7ba1\u7406\u754c\u9762\u8def\u5f84\uff0c\u4fee\u6539\u540e\u5c06\u4f1a\u6539\u53d8\u539f\u6709\u7684admin\u8def\u5f84"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"admin",defaultValue:l.frontend_admin_path,onChange:e=>this.set("frontend","frontend_admin_path",e.target.value)})),h.a.createElement(p,{title:"\u8fb9\u680f\u98ce\u683c"},h.a.createElement(s["a"],{checkedChildren:"\u4eae",unCheckedChildren:"\u6697",checked:"light"===l.frontend_theme_sidebar?1:0,onChange:e=>this.set("site","frontend_theme_sidebar",e?"light":"dark")})),h.a.createElement(p,{title:"\u5934\u90e8\u98ce\u683c"},h.a.createElement(s["a"],{checkedChildren:"\u4eae",unCheckedChildren:"\u6697",checked:"light"===l.frontend_theme_header?1:0,onChange:e=>this.set("site","frontend_theme_header",e?"light":"dark")})),h.a.createElement(p,{title:"\u4e3b\u9898\u8272"},h.a.createElement("select",{className:"form-control",defaultValue:l.frontend_theme_color,onChange:e=>this.set("frontend","frontend_theme_color",e.target.value)},h.a.createElement("option",{value:"default"},"\u9ed8\u8ba4"),h.a.createElement("option",{value:"black"},"\u9ed1\u8272"),h.a.createElement("option",{value:"darkblue"},"\u6697\u84dd\u8272"),h.a.createElement("option",{value:"green"},"\u5976\u7eff\u8272"))),h.a.createElement(p,{title:"\u80cc\u666f",description:"\u5c06\u4f1a\u5728\u540e\u53f0\u767b\u5f55\u9875\u9762\u8fdb\u884c\u5c55\u793a\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"https://xxxxx.com/wallpaper.png",defaultValue:l.frontend_background_url,onChange:e=>this.set("frontend","frontend_background_url",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"\u670d\u52a1\u7aef",key:"server"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u901a\u8baf\u5bc6\u94a5",description:"V2board\u4e0e\u670d\u52a1\u7aef\u901a\u8baf\u7684\u5bc6\u94a5\uff0c\u4ee5\u4fbf\u6570\u636e\u4e0d\u4f1a\u88ab\u4ed6\u4eba\u83b7\u53d6\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_token,onChange:e=>this.set("server","server_token",e.target.value)})),h.a.createElement(p,{title:"\u6388\u6743\u6587\u4ef6",description:"\u4f60\u4f7f\u7528\u7684\u670d\u52a1\u7aef\u5982\u679c\u8981\u6c42\u4f60\u4f7f\u7528\u6388\u6743\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u5728\u6b64\u586b\u5165\u3002"},h.a.createElement("textarea",{rows:4,type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_license,onChange:e=>this.set("server","server_license",e.target.value)})),h.a.createElement(p,{title:"\u8bb0\u5f55\u65e5\u5fd7",description:"\u670d\u52a1\u7aef\u662f\u5426\u8bb0\u5f55\u65e5\u5fd7\uff0c\u5173\u95ed\u53ef\u907f\u514d\u65e5\u5fd7\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\u8fc7\u5927\u3002"},h.a.createElement(s["a"],{checked:parseInt(c.server_log_enable),onChange:e=>this.set("server","server_log_enable",e?1:0)})),h.a.createElement(p,{title:"V2ray\u5168\u5c40\u57df\u540d\u8fc7\u6ee4\u5668",description:"\u6b64\u5904\u7684\u89c4\u5219\u5c06\u4f1a\u4e0e\u8282\u70b9\u914d\u7f6e\u7684\u89c4\u5219\u5408\u5e76\u8fdb\u884c\u8fc7\u6ee4\uff0c\u4e00\u884c\u4e00\u6761\u3002"},h.a.createElement("textarea",{rows:4,type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_v2ray_domain,onChange:e=>this.set("server","server_v2ray_domain",e.target.value)})),h.a.createElement(p,{title:"V2ray\u5168\u5c40\u534f\u8bae\u8fc7\u6ee4\u5668",description:"\u6b64\u5904\u7684\u89c4\u5219\u5c06\u4f1a\u4e0e\u8282\u70b9\u914d\u7f6e\u7684\u89c4\u5219\u5408\u5e76\u8fdb\u884c\u8fc7\u6ee4\uff0c\u4e00\u884c\u4e00\u6761\u3002"},h.a.createElement("textarea",{rows:4,type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_v2ray_protocol,onChange:e=>this.set("server","server_v2ray_protocol",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"\u90ae\u4ef6",key:"email"},h.a.createElement("div",{className:"block-content"},h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-lg-12"},h.a.createElement("div",{className:"alert alert-warning",role:"alert"},h.a.createElement("p",{className:"mb-0"},"\u5982\u679c\u4f60\u66f4\u6539\u4e86\u672c\u9875\u914d\u7f6e\uff0c\u9700\u8981\u5bf9\u961f\u5217\u670d\u52a1\u8fdb\u884c\u91cd\u542f\u3002\u53e6\u5916\u672c\u9875\u914d\u7f6e\u4f18\u5148\u7ea7\u9ad8\u4e8e.env\u4e2d\u90ae\u4ef6\u914d\u7f6e\u3002"))))),h.a.createElement("div",{className:""},h.a.createElement(p,{title:"SMTP\u670d\u52a1\u5668\u5730\u5740",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u670d\u52a1\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_host,onChange:e=>this.set("email","email_host",e.target.value)})),h.a.createElement(p,{title:"SMTP\u670d\u52a1\u7aef\u53e3",description:"\u5e38\u89c1\u7684\u7aef\u53e3\u670925, 465, 587"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_port,onChange:e=>this.set("email","email_port",e.target.value)})),h.a.createElement(p,{title:"SMTP\u52a0\u5bc6\u65b9\u5f0f",description:"465\u7aef\u53e3\u52a0\u5bc6\u65b9\u5f0f\u4e00\u822c\u4e3aSSL\uff0c587\u7aef\u53e3\u52a0\u5bc6\u65b9\u5f0f\u4e00\u822c\u4e3aTLS"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_encryption,onChange:e=>this.set("email","email_encryption",e.target.value)})),h.a.createElement(p,{title:"SMTP\u8d26\u53f7",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u8d26\u53f7"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_username,onChange:e=>this.set("email","email_username",e.target.value)})),h.a.createElement(p,{title:"SMTP\u5bc6\u7801",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u5bc6\u7801"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_password,onChange:e=>this.set("email","email_password",e.target.value)})),h.a.createElement(p,{title:"\u53d1\u4ef6\u5730\u5740",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u53d1\u4ef6\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_from_address,onChange:e=>this.set("email","email_from_address",e.target.value)})),h.a.createElement(p,{title:"\u90ae\u4ef6\u6a21\u677f",description:"\u4f60\u53ef\u4ee5\u5728\u6587\u6863\u67e5\u770b\u5982\u4f55\u81ea\u5b9a\u4e49\u90ae\u4ef6\u6a21\u677f"},h.a.createElement("select",{onChange:e=>this.set("email","email_template",e.target.value),className:"form-control",value:g.email_template},m.map(e=>{return h.a.createElement("option",{key:Math.random(),value:e},e)}))),h.a.createElement(p,{title:"\u53d1\u9001\u6d4b\u8bd5\u90ae\u4ef6",description:"\u90ae\u4ef6\u5c06\u4f1a\u53d1\u9001\u5230\u5f53\u524d\u767b\u9646\u7528\u6237\u90ae\u7bb1"},h.a.createElement(o["a"],{loading:w,type:"primary",onClick:()=>this.props.dispatch({type:"config/testSendMail"})},"\u53d1\u9001\u6d4b\u8bd5\u90ae\u4ef6")))),h.a.createElement(a["a"].TabPane,{tab:"Telegram",key:"telegram"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u673a\u5668\u4ebaToken",description:"\u8bf7\u8f93\u5165\u7531Botfather\u63d0\u4f9b\u7684token\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"0000000000:xxxxxxxxx_xxxxxxxxxxxxxxx",defaultValue:v.telegram_bot_token,onChange:e=>this.set("telegram","telegram_bot_token",e.target.value)})),v.telegram_bot_token&&h.a.createElement(p,{title:"\u8bbe\u7f6eWebhook",description:"\u5bf9\u673a\u5668\u4eba\u8fdb\u884cWebhook\u8bbe\u7f6e\uff0c\u4e0d\u8bbe\u7f6e\u5c06\u65e0\u6cd5\u6536\u5230Telegram\u901a\u77e5\u3002"},h.a.createElement(o["a"],{type:"primary",onClick:()=>{this.props.dispatch({type:"config/setTelegramWebhook"})},loading:y,disabled:y},"\u4e00\u952e\u8bbe\u7f6e")),h.a.createElement(p,{title:"\u5f00\u542f\u673a\u5668\u4eba\u901a\u77e5",description:"\u5f00\u542f\u540ebot\u5c06\u4f1a\u5bf9\u7ed1\u5b9a\u4e86telegram\u7684\u7ba1\u7406\u5458\u548c\u7528\u6237\u8fdb\u884c\u57fa\u7840\u901a\u77e5\u3002"},h.a.createElement(s["a"],{checked:parseInt(v.telegram_bot_enable),onChange:e=>this.set("telegram","telegram_bot_enable",e?1:0)})),h.a.createElement(p,{title:"\u7fa4\u7ec4\u5730\u5740",description:"\u586b\u5199\u540e\u5c06\u4f1a\u5728\u7528\u6237\u7aef\u5c55\u793a\uff0c\u6216\u8005\u88ab\u7528\u4e8e\u9700\u8981\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"https://t.me/xxxxxx",defaultValue:v.telegram_discuss_link,onChange:e=>this.set("telegram","telegram_discuss_link",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"APP",key:"app"},h.a.createElement("div",{className:"block-content"},h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-lg-12"},h.a.createElement("div",{className:"alert alert-warning",role:"alert"},h.a.createElement("p",{className:"mb-0"},"\u7528\u4e8e\u81ea\u6709\u5ba2\u6237\u7aef(APP)\u7684\u7248\u672c\u7ba1\u7406\u53ca\u66f4\u65b0"))))),h.a.createElement("div",{className:""},h.a.createElement(p,{title:"Windows",description:"Windows\u7aef\u7248\u672c\u53f7\u53ca\u4e0b\u8f7d\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"1.0.0",defaultValue:b.windows_version,onChange:e=>this.set("app","windows_version",e.target.value)}),h.a.createElement("input",{type:"text",className:"form-control mt-1",placeholder:"https://xxxx.com/xxx.exe",defaultValue:b.windows_download_url,onChange:e=>this.set("app","windows_download_url",e.target.value)})),h.a.createElement(p,{title:"macOS",description:"macOS\u7aef\u7248\u672c\u53f7\u53ca\u4e0b\u8f7d\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"1.0.0",defaultValue:b.macos_version,onChange:e=>this.set("app","macos_version",e.target.value)}),h.a.createElement("input",{type:"text",className:"form-control mt-1",placeholder:"https://xxxx.com/xxx.dmg",defaultValue:b.macos_download_url,onChange:e=>this.set("app","macos_download_url",e.target.value)})),h.a.createElement(p,{title:"Android",description:"Android\u7aef\u7248\u672c\u53f7\u53ca\u4e0b\u8f7d\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"1.0.0",defaultValue:b.android_version,onChange:e=>this.set("app","android_version",e.target.value)}),h.a.createElement("input",{type:"text",className:"form-control mt-1",placeholder:"https://xxxx.com/xxx.apk",defaultValue:b.android_download_url,onChange:e=>this.set("app","android_download_url",e.target.value)})))))))}}t["default"]=Object(d["c"])(e=>{var t=e.plan,n=e.config;return{plan:t,config:n}})(m)},"1j5w":function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("xI0J"),a=n("4IlW"),s=n("2GS6"),l=n("Gytx"),c=n.n(l),u=n("TSYQ"),h=n.n(u);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&setTimeout(function(){e.onMotionEnd({deadline:!0})},i)}})},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=pe()(t)},e.cancelNextFrame=function(){e.raf&&(pe.a.cancel(e.raf),e.raf=null)},e.state={status:ke,statusActive:!1,newStatus:!1,statusStyle:null},e.$cacheEle=null,e.node=null,e.raf=null,e}return le()(t,e),ie()(t,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame()}},{key:"render",value:function(){var e,t=this.state,n=t.status,i=t.statusActive,o=t.statusStyle,a=this.props,s=a.children,l=a.motionName,c=a.visible,u=a.removeOnLeave,f=a.leavedClassName,d=a.eventProps;return s?n!==ke&&r(this.props)?s(ee()({},d,{className:h()((e={},Z()(e,Ce(l,n),n!==ke),Z()(e,Ce(l,n+"-active"),n!==ke&&i),Z()(e,l,"string"===typeof l),e)),style:o}),this.setNodeRef):c?s(ee()({},d),this.setNodeRef):u?null:s(ee()({},d,{className:f}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.status;if(!r(e))return{};var o=e.visible,a=e.motionAppear,s=e.motionEnter,l=e.motionLeave,c=e.motionLeaveImmediately,u={prevProps:e};return(i===Oe&&!a||i===Te&&!s||i===Ae&&!l)&&(u.status=ke,u.statusActive=!1,u.newStatus=!1),!n&&o&&a&&(u.status=Oe,u.statusActive=!1,u.newStatus=!0),n&&!n.visible&&o&&s&&(u.status=Te,u.statusActive=!1,u.newStatus=!0),(n&&n.visible&&!o&&l||!n&&c&&!o&&l)&&(u.status=Ae,u.statusActive=!1,u.newStatus=!0),u}}]),t}(i.a.Component);return o.propTypes=ee()({},Pe,{internalRef:ue.a.oneOfType([ue.a.object,ue.a.func])}),o.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Object(he["polyfill"])(o),n?i.a.forwardRef(function(e,t){return i.a.createElement(o,ee()({internalRef:t},e))}):o}var Re=Me(Se),je={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},De=Le;function Ne(e){return Ne="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $e(e,t){for(var n=0;n=n.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(n.subMenuTitle.offsetWidth,"px"))}},n.saveSubMenuTitle=function(e){n.subMenuTitle=e};var r=e.store,i=e.eventKey,o=r.getState(),s=o.defaultActiveFirst;n.isRootMenu=!1;var l=!1;return s&&(l=s[i]),Xe(r,i,l),n}return He(t,e),Fe(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,i=t.manualRef;i&&i(this),"horizontal"===n&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.props,i={mode:"horizontal"===n.mode?"vertical":n.mode,visible:this.props.isOpen,level:n.level+1,inlineIndent:n.inlineIndent,focusable:!1,onClick:this.onSubMenuClick,onSelect:this.onSelect,onDeselect:this.onDeselect,onDestroy:this.onDestroy,selectedKeys:n.selectedKeys,eventKey:"".concat(n.eventKey,"-menu-"),openKeys:n.openKeys,motion:n.motion,onOpenChange:this.onOpenChange,subMenuOpenDelay:n.subMenuOpenDelay,parentMenu:this,subMenuCloseDelay:n.subMenuCloseDelay,forceSubMenuRender:n.forceSubMenuRender,triggerSubMenuAction:n.triggerSubMenuAction,builtinPlacements:n.builtinPlacements,defaultActiveFirst:n.store.getState().defaultActiveFirst[B(n.eventKey)],multiple:n.multiple,prefixCls:n.rootPrefixCls,id:this.internalMenuId,manualRef:this.saveMenuInstance,itemIcon:n.itemIcon,expandIcon:n.expandIcon},o=this.haveRendered;if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i.visible||i.forceSubMenuRender,!this.haveOpened)return r["createElement"]("div",null);var a=qe({},n.motion,{leavedClassName:"".concat(n.rootPrefixCls,"-hidden"),removeOnLeave:!1,motionAppear:o||!i.visible||"inline"!==i.mode});return r["createElement"](Re,Object.assign({visible:i.visible},a),function(n){var o=n.className,a=n.style,s=h()("".concat(i.prefixCls,"-sub"),o);return r["createElement"](Ht,Object.assign({},i,{id:t.internalMenuId,className:s,style:a}),e)})}},{key:"render",value:function(){var e,t=qe({},this.props),n=t.isOpen,i=this.getPrefixCls(),o="inline"===t.mode,a=h()(i,"".concat(i,"-").concat(t.mode),(e={},Ke(e,t.className,!!t.className),Ke(e,this.getOpenClassName(),n),Ke(e,this.getActiveClassName(),t.active||n&&!o),Ke(e,this.getDisabledClassName(),t.disabled),Ke(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(Ge+=1,this.internalMenuId="$__$".concat(Ge,"$Menu")));var s={},l={},c={};t.disabled||(s={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},l={onClick:this.onTitleClick},c={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var u={};o&&(u.paddingLeft=t.inlineIndent*t.level);var f={};this.props.isOpen&&(f={"aria-owns":this.internalMenuId});var d=null;"horizontal"!==t.mode&&(d=this.props.expandIcon,"function"===typeof this.props.expandIcon&&(d=r["createElement"](this.props.expandIcon,qe({},this.props))));var p=r["createElement"]("div",Object.assign({ref:this.saveSubMenuTitle,style:u,className:"".concat(i,"-title")},c,l,{"aria-expanded":n},f,{"aria-haspopup":"true",title:"string"===typeof t.title?t.title:void 0}),t.title,d||r["createElement"]("i",{className:"".concat(i,"-arrow")})),m=this.renderChildren(t.children),g=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},v=Ye[t.mode],y=t.popupOffset?{offset:t.popupOffset}:{},b="inline"===t.mode?"":t.popupClassName,w=t.disabled,x=t.triggerSubMenuAction,_=t.subMenuOpenDelay,E=t.forceSubMenuRender,S=t.subMenuCloseDelay,C=t.builtinPlacements;return H.forEach(function(e){return delete t[e]}),delete t.onClick,r["createElement"]("li",Object.assign({},t,s,{className:a,role:"menuitem"}),o&&p,o&&m,!o&&r["createElement"](X["a"],{prefixCls:i,popupClassName:"".concat(i,"-popup ").concat(b),getPopupContainer:g,builtinPlacements:Object.assign({},De,C),popupPlacement:v,popupVisible:n,popupAlign:y,popup:m,action:w?[]:[x],mouseEnterDelay:_,mouseLeaveDelay:S,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:E},p))}}]),t}(r["Component"]);Qe.defaultProps={onMouseEnter:$,onMouseLeave:$,onTitleMouseEnter:$,onTitleMouseLeave:$,onTitleClick:$,manualRef:$,mode:"vertical",title:""};var Ze=Object(o["connect"])(function(e,t){var n=e.openKeys,r=e.activeKey,i=e.selectedKeys,o=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(o)>-1,active:r[a]===o,selectedKeys:i}})(Qe);Ze.isSubMenu=!0;var Je=Ze;function et(e){return et="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(e){return it(e)||rt(e)||nt()}function nt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function rt(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function it(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ct(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n=0});o.forEach(function(e){z(e,"display","inline-block")}),e.menuItemSizes=i.map(function(e){return U(e)}),o.forEach(function(e){z(e,"display","none")}),e.overflowedIndicatorWidth=U(t.children[t.children.length-1]),e.originalTotalWidth=e.menuItemSizes.reduce(function(e,t){return e+t},0),e.handleResize(),z(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=K["findDOMNode"](mt(e));if(t){var n=U(t);e.overflowedItems=[];var r,i=0;e.originalTotalWidth>n+wt&&(r=-1,e.menuItemSizes.forEach(function(t){i+=t,i+e.overflowedIndicatorWidth<=n&&(r+=1)})),e.setState({lastVisibleIndex:r})}}},e}return gt(t,e),ft(t,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=K["findDOMNode"](this);if(!t)return;this.resizeObserver=new Y["default"](function(t){t.forEach(e.setChildrenWidthAndResize)}),[].slice.call(t.children).concat(t).forEach(function(t){e.resizeObserver.observe(t)}),"undefined"!==typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect()}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,o,a){var s=o;if("horizontal"===t.props.mode){var l=t.getOverflowedSubMenuItem(o.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(a>n&&(s=r["cloneElement"](o,{style:{display:"none"},eventKey:"".concat(o.props.eventKey,"-hidden"),className:"".concat(bt)})),a===n+1&&(t.overflowedItems=e.slice(n+1).map(function(e){return r["cloneElement"](e,{key:e.props.eventKey,mode:"vertical-left"})}),l=t.getOverflowedSubMenuItem(o.props.eventKey,t.overflowedItems)));var c=[].concat(tt(i),[l,s]);return a===e.length-1&&c.push(t.getOverflowedSubMenuItem(o.props.eventKey,[],!0)),c}return[].concat(tt(i),[s])},[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,i=(e.theme,lt(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),o=t;return r["createElement"](o,Object.assign({},i),this.renderChildren(n))}}]),t}(r["Component"]);xt.defaultProps={tag:"div",className:""};var _t=xt;function Et(e){return Et="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function St(){return St=Object.assign||function(e){for(var t=1;t1?n-1:0);for(var r=1;r2?r-2:0);for(var i=2;i",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(s),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),h=["/","?","#"],f=255,d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function v(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}r.prototype.parse=function(e,t){var n,r,o,s,l,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var v=a.exec(c);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var y=i.exec(c);if(y&&(y=y[0],o=y.toLowerCase(),this.protocol=y,c=c.substr(y.length)),(t||y||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l="//"===c.substr(0,2),!l||y&&m[y]||(c=c.substr(2),this.slashes=!0)),!m[y]&&(l||y&&!g[y])){var b,w,x=-1;for(n=0;n127?k+="x":k+=C[O];if(!k.match(d)){var A=S.slice(0,n),P=S.slice(n+1),M=C.match(p);M&&(A.push(M[1]),P.unshift(M[2])),P.length&&(c=P.join(".")+c),this.hostname=A.join(".");break}}}}this.hostname.length>f&&(this.hostname=""),E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var R=c.indexOf("#");-1!==R&&(this.hash=c.substr(R),c=c.slice(0,R));var j=c.indexOf("?");return-1!==j&&(this.search=c.substr(j),c=c.slice(0,j)),c&&(this.pathname=c),g[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=o.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=v},"2mql":function(e,t,n){"use strict";var r=n("TOwV"),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?s:l[e["$$typeof"]]||i}l[r.ForwardRef]=a,l[r.Memo]=s;var u=Object.defineProperty,h=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function g(e,t,n){if("string"!==typeof t){if(m){var r=p(t);r&&r!==m&&g(e,r,n)}var i=h(t);f&&(i=i.concat(f(t)));for(var a=c(e),s=c(t),l=0;ll,n),i=void 0;return i=t.yearl?e.nextDecade:P.bind(e,t.year),u.a.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:i,className:g()(r)},u.a.createElement("a",{className:c+"-year"},t.content))});return u.a.createElement("tr",{key:n,role:"row"},r)}),f=i&&i("year");return u.a.createElement("div",{className:this.prefixCls},u.a.createElement("div",null,u.a.createElement("div",{className:c+"-header"},u.a.createElement("a",{className:c+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:r.previousDecade}),u.a.createElement("a",{className:c+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:r.decadeSelect},u.a.createElement("span",{className:c+"-decade-select-content"},s,"-",l),u.a.createElement("span",{className:c+"-decade-select-arrow"},"x")),u.a.createElement("a",{className:c+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:r.nextDecade})),u.a.createElement("div",{className:c+"-body"},u.a.createElement("table",{className:c+"-table",cellSpacing:"0",role:"grid"},u.a.createElement("tbody",{className:c+"-tbody"},h))),f&&u.a.createElement("div",{className:c+"-footer"},f)))},t}(u.a.Component),R=M;M.propTypes={rootPrefixCls:f.a.string,value:f.a.object,defaultValue:f.a.object,renderFooter:f.a.func},M.defaultProps={onSelect:function(){}};var j=4,L=3;function D(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}function N(e,t){var n=this.state.value.clone();n.year(e),n.month(this.state.value.month()),this.props.onSelect(n),t.preventDefault()}var I=function(e){function t(n){i()(this,t);var r=a()(this,e.call(this,n));return r.state={value:n.value||n.defaultValue},r.prefixCls=n.rootPrefixCls+"-decade-panel",r.nextCentury=D.bind(r,100),r.previousCentury=D.bind(r,-100),r}return l()(t,e),t.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,r=n.locale,i=n.renderFooter,o=t.year(),a=100*parseInt(o/100,10),s=a-10,l=a+99,c=[],h=0,f=this.prefixCls,d=0;dl,h=(n={},n[f+"-cell"]=1,n[f+"-selected-cell"]=r<=o&&o<=i,n[f+"-last-century-cell"]=s,n[f+"-next-century-cell"]=c,n),d=r+"-"+i,p=void 0;return p=s?e.previousCentury:c?e.nextCentury:N.bind(e,r),u.a.createElement("td",{key:r,onClick:p,role:"gridcell",className:g()(h)},u.a.createElement("a",{className:f+"-decade"},d))});return u.a.createElement("tr",{key:n,role:"row"},r)});return u.a.createElement("div",{className:this.prefixCls},u.a.createElement("div",{className:f+"-header"},u.a.createElement("a",{className:f+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:r.previousCentury}),u.a.createElement("div",{className:f+"-century"},a,"-",l),u.a.createElement("a",{className:f+"-next-century-btn",role:"button",onClick:this.nextCentury,title:r.nextCentury})),u.a.createElement("div",{className:f+"-body"},u.a.createElement("table",{className:f+"-table",cellSpacing:"0",role:"grid"},u.a.createElement("tbody",{className:f+"-tbody"},b))),y&&u.a.createElement("div",{className:f+"-footer"},y))},t}(u.a.Component),$=I;function F(e){var t=this.props.value.clone();t.add(e,"months"),this.props.onValueChange(t)}function B(e){var t=this.props.value.clone();t.add(e,"years"),this.props.onValueChange(t)}function V(e,t){return e?t:null}I.propTypes={locale:f.a.object,value:f.a.object,defaultValue:f.a.object,rootPrefixCls:f.a.string,renderFooter:f.a.func},I.defaultProps={onSelect:function(){}};var W=function(e){function t(n){i()(this,t);var r=a()(this,e.call(this,n));return H.call(r),r.nextMonth=F.bind(r,1),r.previousMonth=F.bind(r,-1),r.nextYear=B.bind(r,1),r.previousYear=B.bind(r,-1),r.state={yearPanelReferer:null},r}return l()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.prefixCls,r=t.locale,i=t.mode,o=t.value,a=t.showTimePicker,s=t.enableNext,l=t.enablePrev,c=t.disabledMonth,h=t.renderFooter,f=null;return"month"===i&&(f=u.a.createElement(k,{locale:r,value:o,rootPrefixCls:n,onSelect:this.onMonthSelect,onYearPanelShow:function(){return e.showYearPanel("month")},disabledDate:c,cellRender:t.monthCellRender,contentRender:t.monthCellContentRender,renderFooter:h,changeYear:this.changeYear})),"year"===i&&(f=u.a.createElement(R,{locale:r,defaultValue:o,rootPrefixCls:n,onSelect:this.onYearSelect,onDecadePanelShow:this.showDecadePanel,renderFooter:h})),"decade"===i&&(f=u.a.createElement($,{locale:r,defaultValue:o,rootPrefixCls:n,onSelect:this.onDecadeSelect,renderFooter:h})),u.a.createElement("div",{className:n+"-header"},u.a.createElement("div",{style:{position:"relative"}},V(l&&!a,u.a.createElement("a",{className:n+"-prev-year-btn",role:"button",onClick:this.previousYear,title:r.previousYear})),V(l&&!a,u.a.createElement("a",{className:n+"-prev-month-btn",role:"button",onClick:this.previousMonth,title:r.previousMonth})),this.monthYearElement(a),V(s&&!a,u.a.createElement("a",{className:n+"-next-month-btn",onClick:this.nextMonth,title:r.nextMonth})),V(s&&!a,u.a.createElement("a",{className:n+"-next-year-btn",onClick:this.nextYear,title:r.nextYear}))),f)},t}(u.a.Component);W.propTypes={prefixCls:f.a.string,value:f.a.object,onValueChange:f.a.func,showTimePicker:f.a.bool,onPanelChange:f.a.func,locale:f.a.object,enablePrev:f.a.any,enableNext:f.a.any,disabledMonth:f.a.func,renderFooter:f.a.func,onMonthSelect:f.a.func},W.defaultProps={enableNext:1,enablePrev:1,onPanelChange:function(){},onValueChange:function(){}};var H=function(){var e=this;this.onMonthSelect=function(t){e.props.onPanelChange(t,"date"),e.props.onMonthSelect?e.props.onMonthSelect(t):e.props.onValueChange(t)},this.onYearSelect=function(t){var n=e.state.yearPanelReferer;e.setState({yearPanelReferer:null}),e.props.onPanelChange(t,n),e.props.onValueChange(t)},this.onDecadeSelect=function(t){e.props.onPanelChange(t,"year"),e.props.onValueChange(t)},this.changeYear=function(t){t>0?e.nextYear():e.previousYear()},this.monthYearElement=function(t){var n=e.props,r=n.prefixCls,i=n.locale,o=n.value,a=o.localeData(),s=i.monthBeforeYear,l=r+"-"+(s?"my-select":"ym-select"),c=t?" "+r+"-time-status":"",h=u.a.createElement("a",{className:r+"-year-select"+c,role:"button",onClick:t?null:function(){return e.showYearPanel("date")},title:t?null:i.yearSelect},o.format(i.yearFormat)),f=u.a.createElement("a",{className:r+"-month-select"+c,role:"button",onClick:t?null:e.showMonthPanel,title:t?null:i.monthSelect},i.monthFormat?o.format(i.monthFormat):a.monthsShort(o)),p=void 0;t&&(p=u.a.createElement("a",{className:r+"-day-select"+c,role:"button"},o.format(i.dayFormat)));var m=[];return m=s?[f,p,h]:[h,f,p],u.a.createElement("span",{className:l},Object(d["a"])(m))},this.showMonthPanel=function(){e.props.onPanelChange(null,"month")},this.showYearPanel=function(t){e.setState({yearPanelReferer:t}),e.props.onPanelChange(null,"year")},this.showDecadePanel=function(){e.props.onPanelChange(null,"decade")}};t["a"]=W},3:function(e,t){},"330p":function(e,t,n){"use strict";var r=n("7tNx"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(a=function(e){var t,n,a,u,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",r.call(h))),l&&(t=h[s]),a=i.call(h,e),l&&a&&(h[s]=h.global?a.index+a[0].length:t),c&&a&&a.length>1&&o.call(a[0],n,function(){for(u=1;u=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("Q2Ig"))},"3BRs":function(e,t,n){"use strict";(function(t,r){var i=n("lm0R");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){N(t,e)}}e.exports=b;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=y;var l=Object.create(n("Onz0"));l.inherits=n("P7XM");var c={deprecate:n("t9FE")},u=n("QpuX"),h=n("hwdV").Buffer,f=r.Uint8Array||function(){};function d(e){return h.from(e)}function p(e){return h.isBuffer(e)||e instanceof f}var m,g=n("RoFp");function v(){}function y(e,t){a=a||n("sZro"),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(a=a||n("sZro"),!m.call(b,this)&&!(this instanceof a))return new b(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}function x(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}function _(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,n)),t}function E(e,t,n,r,i,o){if(!n){var a=_(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||D(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("Q2Ig"),n("yLpj"))},"3CBa":function(e,t,n){"use strict";var r=n("einR"),i=n("y+Vt"),o=n("Dagg"),a=n("6GrX"),s=n("3U8f"),l=Math.sin,c=Math.cos,u=Math.PI,h=2*Math.PI,f=180/u,d=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){this._add("C",e,t,n,r,i,o)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,o){this.ellipse(e,t,n,n,0,r,i,o)},e.prototype.ellipse=function(e,t,n,i,o,a,s,d){var p=s-a,m=!d,g=Math.abs(p),v=Object(r["j"])(g-h)||(m?p>=h:-p>=h),y=p>0?p%h:p%h+h,b=!1;b=!!v||!Object(r["j"])(g)&&y>=u===!!m;var w=e+n*c(a),x=t+i*l(a);this._start&&this._add("M",w,x);var _=Math.round(o*f);if(v){var E=1/this._p,S=(m?1:-1)*(h-E);this._add("A",n,i,_,1,+m,e+n*c(a+S),t+i*l(a+S)),E>.01&&this._add("A",n,i,_,0,+m,w,x)}else{var C=e+n*c(s),k=t+i*l(s);this._add("A",n,i,_,+b,+m,C,k)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,o,a,s,l){for(var c=[],u=this._p,h=1;h"}function R(e){return""}function j(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,o=e.attrs;return M(i,o)+Object(S["a"])(e.text)+(t?""+n+Object(g["D"])(t,function(e){return r(e)}).join(n)+n:"")+R(i)}return r(e)}function L(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(g["D"])(Object(g["B"])(e),function(t){return t+i+Object(g["D"])(Object(g["B"])(e[t]),function(n){return n+":"+e[t][n]+";"}).join(r)+o}).join(r),s=Object(g["D"])(Object(g["B"])(t),function(e){return"@keyframes "+e+i+Object(g["D"])(Object(g["B"])(t[e]),function(n){return n+i+Object(g["D"])(Object(g["B"])(t[e][n]),function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"}).join(r)+o}).join(r)+o}).join(r);return a||s?[""].join(r):""}function D(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function N(e,t,n,r){return P("svg","root",{width:e,height:t,xmlns:C,"xmlns:xlink":k,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var I=n("Xnb7"),$=n("hYLj"),F=n("IMiH"),B=n("1MYJ"),V=n("s2Iz"),W={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},H="transform-origin";function U(e,t,n){var i=Object(g["l"])({},e.shape);Object(g["l"])(i,t),e.buildPath(n,i);var o=new p;return o.reset(Object(r["f"])(e)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function z(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[H]=n+"px "+r+"px")}var q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function K(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function G(e,t,n){var r,i,o=e.shape.paths,a={};if(Object(g["j"])(o,function(e){var t=D(n.zrId);t.animation=!0,X(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(g["B"])(o),c=l.length;if(c){i=l[c-1];var u=o[i];for(var h in u){var f=u[h];a[h]=a[h]||{d:""},a[h].d+=f.d||""}for(var d in s){var p=s[d].animation;p.indexOf(i)>=0&&(r=p)}}}),r){t.d=!1;var s=K(a,n);return r.replace(i,s)}}function Y(e){return Object(g["y"])(e)?W[e]?"cubic-bezier("+W[e]+")":Object(V["a"])(e)?e:"":""}function X(e,t,n,i){var o=e.animators,a=o.length,s=[];if(e instanceof B["a"]){var l=G(e,t,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var c={},u=0;u0}).length){var M=K(h,n);return M+" "+o[0]+" both"}}for(var y in c){l=v(c[y]);l&&s.push(l)}if(s.length){var b=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+b]={animation:s.join(",")},t["class"]=b}}var Q=n("dqUG"),Z=n("cm6r"),J=Math.round;function ee(e){return e&&Object(g["y"])(e.src)}function te(e){return e&&Object(g["u"])(e.toDataURL)}function ne(e,t,n,i){E(function(o,a){var s="fill"===o||"stroke"===o;s&&Object(r["k"])(a)?ge(t,e,o,i):s&&Object(r["n"])(a)?ve(n,e,o,i):e[o]=a},t,n,!1),me(n,e,i)}function re(e){return Object(r["j"])(e[0]-1)&&Object(r["j"])(e[1])&&Object(r["j"])(e[2])&&Object(r["j"])(e[3]-1)}function ie(e){return Object(r["j"])(e[4])&&Object(r["j"])(e[5])}function oe(e,t,n){if(t&&(!ie(t)||!re(t))){var i=n?10:1e4;e.transform=re(t)?"translate("+J(t[4]*i)/i+" "+J(t[5]*i)/i+")":Object(r["e"])(t)}}function ae(e,t,n){for(var r=e.points,i=[],o=0;oc?(a=null==n[f+1]?null:n[f+1].elm,Le(e,a,n,l,f)):De(e,t,s,c))}function $e(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Ne(e,t),Ae(t.text)?Pe(r)&&Pe(i)?r!==i&&Ie(n,r,i):Pe(i)?(Pe(e.text)&&Ce(n,""),Le(n,null,i,0,i.length-1)):Pe(r)?De(n,r,0,r.length-1):Pe(e.text)&&Ce(n,""):e.text!==t.text&&(Pe(r)&&De(n,r,0,r.length-1),Ce(n,t.text)))}function Fe(e,t){if(Re(e,t))$e(e,t);else{var n=e.elm,r=Ee(n);je(t),null!==r&&(we(r,t.elm,Se(n)),De(r,[e],0,0))}return t}var Be=n("NDc/"),Ve=0,We=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=He("refreshHover"),this.configLayer=He("configLayer"),this.storage=t,this._opts=n=Object(g["l"])({},n),this.root=e,this._id="zr"+Ve++,this._oldVNode=N(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=A("svg");Ne(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Fe(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return pe(e,D(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,o=this._height,a=D(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var s=[];if(n&&"none"!==n){var l=Object(r["p"])(n),c=l.color,u=l.opacity;this._bgVNode=P("rect","bg",{width:i,height:o,x:"0",y:"0",id:"0",fill:c,"fill-opacity":u}),s.push(this._bgVNode)}else this._bgVNode=null;var h=e.compress?null:this._mainVNode=P("g","main",{},[]);this._paintList(t,a,h?h.children:s),h&&s.push(h);var f=Object(g["D"])(Object(g["B"])(a.defs),function(e){return a.defs[e]});if(f.length&&s.push(P("defs","defs",{},f)),e.animation){var d=L(a.cssNodes,a.cssAnims,{newline:!0});if(d){var p=P("style","stl",{},[],d);s.push(p)}}return N(i,o,s,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},j(this.renderToVNode({animation:Object(g["K"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(g["K"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Object(r["p"])(e),i=n.color,o=n.opacity;t.elm.setAttribute("fill",i),o<1&&t.elm.setAttribute("fill-opacity",o)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,o=e.length,a=[],s=0,l=0,c=0;c=0;p--)if(h&&i&&h[p]===i[p])break;for(var m=d-1;m>p;m--)s--,r=a[s-1];for(var g=p+1;g0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(s["g"])(c,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(o["d"])(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(i["c"]);u.prototype.type="tspan",t["a"]=u},"3a4m":function(e,t,n){e.exports=n("usdK").default},"3e3G":function(e,t,n){"use strict";var r=n("mrSG"),i=n("QuXc"),o=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},"3m+/":function(e,t,n){n("/sWw")("asyncIterator")},"3moC":function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={orders:[],fetchLoading:!1,assignLoading:!1,pagination:{pageSize:10,current:0},filter:[]};t["default"]={name:"order",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)},empty(e){return a()({},e,l)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r,o,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,r=t.select,e.next=3,r(e=>e.order);case 3:return o=e.sent,e.next=6,n({type:"setState",payload:{fetchLoading:!0}});case 6:return e.next=8,Object(s["a"])("/admin/order/fetch",a()({filter:o.filter},o.pagination));case 8:return l=e.sent,e.next=11,n({type:"setState",payload:{fetchLoading:!1}});case 11:if(200===l.code){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,n({type:"setState",payload:{orders:l.data}});case 15:return e.next=17,n({type:"setState",payload:{pagination:a()({},o.pagination,{total:l.total})}});case 17:case"end":return e.stop()}},e)})()},filter(e,t){return i.a.mark(function n(){var r,o,a,s,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.filter,o=t.put,a=t.select,n.next=4,a(e=>e.order);case 4:return s=n.sent,l=s.pagination,l["current"]=1,n.next=9,o({type:"setState",payload:{filter:r}});case 9:return n.next=11,o({type:"fetch"});case 11:case"end":return n.stop()}},n)})()},addFilter(e,t){return i.a.mark(function n(){var r,o,a,s,l,c,u,h,f;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.key,o=e.condition,a=e.value,s=e.clear,l=t.put,c=t.select,!s){n.next=5;break}return n.next=5,l({filter:[]});case 5:return n.next=7,c(e=>e.order);case 7:return u=n.sent,h=u.filter,f=u.pagination,h.push({key:r,condition:o,value:a}),f["current"]=1,n.next=14,l({type:"setState",payload:{filter:h,pagination:f}});case 14:return n.next=16,l({type:"fetch"});case 16:case"end":return n.stop()}},n)})()},update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.tradeNo,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/order/update",{trade_no:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},paid(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.tradeNo,o=t.put,n.next=4,Object(s["b"])("/admin/order/paid",{trade_no:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},cancel(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.tradeNo,o=t.put,n.next=4,Object(s["b"])("/admin/order/cancel",{trade_no:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},assign(e,t){return i.a.mark(function n(){var r,o,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,l=t.put,n.next=4,l({type:"setState",payload:{assignLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/order/assign",a()({},r,{total_amount:100*r.total_amount}));case 6:return c=n.sent,n.next=9,l({type:"setState",payload:{assignLoading:!1}});case 9:if(200===c.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,l({type:"fetch"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()},changeTable(e,t){return i.a.mark(function n(){var r,o,s,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,o=t.select,s=t.put,n.next=4,o(e=>e.order);case 4:return l=n.sent,n.next=7,s({type:"setState",payload:{pagination:a()({},l.pagination,r)}});case 7:return n.next=9,s({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},4:function(e,t){},"43KI":function(e,t,n){t=e.exports=n("rXFu"),t.Stream=t,t.Readable=t,t.Writable=n("3BRs"),t.Duplex=n("sZro"),t.Transform=n("J78i"),t.PassThrough=n("eA/Y")},"48Dx":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"49sm":function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},"4IlW":function(e,t,n){"use strict";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}}};t["a"]=r},"4JlD":function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?o(a(e),function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;rl)r.f(e,n=a[l++],t[n]);return e}},"4mN7":function(e,t,n){"use strict";n.d(t,"d",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"b",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"a",function(){return b});var r=n("QBsz"),i=n("Sj9i"),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,c=2*Math.PI,u=r["d"](),h=r["d"](),f=r["d"]();function d(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],s=r[0],l=r[1],c=r[1],u=1;u1e-4)return p[0]=e-n,p[1]=t-i,m[0]=e+n,void(m[1]=t+i);if(u[0]=l(o)*n+e,u[1]=s(o)*i+t,h[0]=l(a)*n+e,h[1]=s(a)*i+t,g(p,u,h),v(m,u,h),o%=c,o<0&&(o+=c),a%=c,a<0&&(a+=c),o>a&&!d?a+=c:oo&&(f[0]=l(w)*n+e,f[1]=s(w)*i+t,g(p,f,p),v(m,f,m))}},"4nmR":function(e,t,n){"use strict";var r=n("vpQ4"),i=n("ANjH"),o=n("7bO/"),a=n("QLaP"),s=n.n(a),l=n("U8pU"),c=n("+0iv"),u=n.n(c),h=n("KQm4");function f(e){if(Array.isArray(e))return e}var d=n("25BE"),p=n("BsWD");function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e){return f(e)||Object(d["a"])(e)||Object(p["a"])(e)||m()}var v=n("myn2"),y=n.n(v),b=n("1OyB"),w=n("vuIU"),x=n("QTEQ"),_=n.n(x);n("vgmO");function E(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(e){s=!0,i=e}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function S(e,t){return f(e)||E(e,t)||Object(p["a"])(e,t)||m()}var C=n("o0o1"),k=n.n(C);n.d(t,"a",function(){return oe}),n.d(t,"b",function(){return R});var O=Array.isArray.bind(Array),T=function(e){return"function"===typeof e},A=function(e){return e},P=function(){},M=function(e,t){for(var n=0,r=e.length;n-1&&(t[n]=e[n]),t},{})}var $=function(){function e(){Object(b["a"])(this,e),this._handleActions=null,this.hooks=N.reduce(function(e,t){return e[t]=[],e},{})}return Object(w["a"])(e,[{key:"use",value:function(e){s()(u()(e),"plugin.use: plugin should be plain object");var t=this.hooks;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s()(t[n],"plugin.use: unknown plugin property: ".concat(n)),"_handleActions"===n?this._handleActions=e[n]:"extraEnhancers"===n?t[n]=e[n]:t[n].push(e[n]))}},{key:"apply",value:function(e,t){var n=this.hooks,r=["onError","onHmr"];s()(r.indexOf(e)>-1,"plugin.apply: hook ".concat(e," cannot be applied"));var i=n[e];return function(){if(i.length){var e=!0,n=!1,r=void 0;try{for(var o,a=i[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var s=o.value;s.apply(void 0,arguments)}}catch(e){n=!0,r=e}finally{try{e||null==a.return||a.return()}finally{if(n)throw r}}}else t&&t.apply(void 0,arguments)}}},{key:"get",value:function(e){var t=this.hooks;return s()(e in t,"plugin.get: hook ".concat(e," cannot be got")),"extraReducers"===e?F(t[e]):"onReducer"===e?B(t[e]):t[e]}}]),e}();function F(e){var t={},n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;t=Object(r["a"])({},t,l)}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}function B(e){return function(t){var n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t=s(t)}}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t}}function V(e){var t=e.reducers,n=e.initialState,r=e.plugin,o=e.sagaMiddleware,a=e.promiseMiddleware,c=e.createOpts.setupMiddlewares,u=void 0===c?A:c,f=r.get("extraEnhancers");s()(O(f),"[app.start] extraEnhancers should be array, but got ".concat(Object(l["a"])(f)));var d=r.get("onAction"),p=u([a,o].concat(Object(h["a"])(_()(d)))),m=i["c"],g=[i["a"].apply(void 0,Object(h["a"])(p))].concat(Object(h["a"])(f));return Object(i["d"])(t,n,m.apply(void 0,Object(h["a"])(g)))}function W(e,t){var n="".concat(t.namespace).concat(j).concat(e),r=n.replace(/\/@@[^/]+?$/,""),i=Array.isArray(t.reducers)?t.reducers[0][r]:t.reducers&&t.reducers[r];return i||t.effects&&t.effects[r]?n:e}function H(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return k.a.mark(function a(){var s;return k.a.wrap(function(a){while(1)switch(a.prev=a.next){case 0:a.t0=k.a.keys(e);case 1:if((a.t1=a.t0()).done){a.next=7;break}if(s=a.t1.value,!Object.prototype.hasOwnProperty.call(e,s)){a.next=5;break}return a.delegateYield(k.a.mark(function a(){var l,c;return k.a.wrap(function(a){while(1)switch(a.prev=a.next){case 0:return l=U(s,e[s],t,n,r,i),a.next=3,o["b"].fork(l);case 3:return c=a.sent,a.next=6,o["b"].fork(k.a.mark(function e(){return k.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["b"].take("".concat(t.namespace,"/@@CANCEL_EFFECTS"));case 2:return e.next=4,o["b"].cancel(c);case 4:case"end":return e.stop()}},e)}));case 6:case"end":return a.stop()}},a)})(),"t2",5);case 5:a.next=1;break;case 7:case"end":return a.stop()}},a)})}function U(e,t,n,r,i,a){var l,c,u=k.a.mark(v),f=t,d="takeEvery";if(Array.isArray(t)){var p=S(t,1);f=p[0];var m=t[1];m&&m.type&&(d=m.type,"throttle"===d&&(s()(m.ms,"app.start: opts.ms should be defined if type is throttle"),l=m.ms),"poll"===d&&(s()(m.delay,"app.start: opts.delay should be defined if type is poll"),c=m.delay)),s()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(d)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function g(){}function v(){var t,i,s,l,c,d,p,m,v,y=arguments;return k.a.wrap(function(u){while(1)switch(u.prev=u.next){case 0:for(t=y.length,i=new Array(t),s=0;s0?i[0]:{},c=l.__dva_resolve,d=void 0===c?g:c,p=l.__dva_reject,m=void 0===p?g:p,u.prev=2,u.next=5,o["b"].put({type:"".concat(e).concat(j,"@@start")});case 5:return u.next=7,f.apply(void 0,Object(h["a"])(i.concat(z(n,a))));case 7:return v=u.sent,u.next=10,o["b"].put({type:"".concat(e).concat(j,"@@end")});case 10:d(v),u.next=17;break;case 13:u.prev=13,u.t0=u["catch"](2),r(u.t0,{key:e,effectArgs:i}),u.t0._dontReject||m(u.t0);case 17:case"end":return u.stop()}},u,null,[[2,13]])}var y=q(i,v,n,e);switch(d){case"watcher":return v;case"takeLatest":return k.a.mark(function t(){return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["b"].takeLatest(e,y);case 2:case"end":return t.stop()}},t)});case"throttle":return k.a.mark(function t(){return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["b"].throttle(l,e,y);case 2:case"end":return t.stop()}},t)});case"poll":return k.a.mark(function t(){var n,r,i,a,s,l,u;return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:i=function(e,t){var i;return k.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:i=e.call;case 1:return n.next=4,i(y,t);case 4:return n.next=6,i(r,c);case 6:n.next=1;break;case 8:case"end":return n.stop()}},n)},r=function(e){return new Promise(function(t){return setTimeout(t,e)})},n=k.a.mark(i),a=o["b"].call,s=o["b"].take,l=o["b"].race;case 4:return t.next=7,s("".concat(e,"-start"));case 7:return u=t.sent,t.next=10,l([a(i,o["b"],u),s("".concat(e,"-stop"))]);case 10:t.next=4;break;case 12:case"end":return t.stop()}},t)});default:return k.a.mark(function t(){return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["b"].takeEvery(e,y);case 2:case"end":return t.stop()}},t)})}}function z(e,t){function n(n,r){s()(n,"dispatch: action should be a plain Object with type");var i=t.namespacePrefixWarning,o=void 0===i||i;o&&y()(0!==n.indexOf("".concat(e.namespace).concat(j)),"[".concat(r,"] ").concat(n," should not be prefixed with namespace ").concat(e.namespace))}function i(t){var i=t.type;return n(i,"sagaEffects.put"),o["b"].put(Object(r["a"])({},t,{type:W(i,e)}))}function a(t){var i=t.type;return n(i,"sagaEffects.put.resolve"),o["b"].put.resolve(Object(r["a"])({},t,{type:W(i,e)}))}function l(t){return"string"===typeof t?(n(t,"sagaEffects.take"),o["b"].take(W(t,e))):Array.isArray(t)?o["b"].take(t.map(function(t){return"string"===typeof t?(n(t,"sagaEffects.take"),W(t,e)):t})):o["b"].take(t)}return i.resolve=a,Object(r["a"])({},o["b"],{put:i,take:l})}function q(e,t,n,r){var i=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;t=u(t,o["b"],n,r)}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return t}function K(e){return e}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K;return function(n,r){var i=r.type;return s()(i,"dispatch: action should be a plain Object with type"),e===i?t(n,r):n}}function Y(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;return r(e,n)}}function Q(e,t,n){return Array.isArray(e)?e[1]((n||X)(e[0],t)):(n||X)(e||{},t)}function Z(e){return function(){return function(e){return function(n){var i=n.type;return t(i)?new Promise(function(t,i){e(Object(r["a"])({__dva_resolve:t,__dva_reject:i},n))}):e(n)}}};function t(t){if(!t||"string"!==typeof t)return!1;var n=t.split(j),r=S(n,1),i=r[0],o=e._models.filter(function(e){return e.namespace===i})[0];return!!(o&&o.effects&&o.effects[t])}}function J(e,t){return function(n){var i=n.type;return s()(i,"dispatch: action should be a plain Object with type"),y()(0!==i.indexOf("".concat(t.namespace).concat(j)),"dispatch: ".concat(i," should not be prefixed with namespace ").concat(t.namespace)),e(Object(r["a"])({},n,{type:W(i,t)}))}}function ee(e,t,n,r){var i=[],o=[];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a],l=s({dispatch:J(n._store.dispatch,t),history:n._history},r);T(l)?i.push(l):o.push(a)}return{funcs:i,nonFuncs:o}}function te(e,t){if(e[t]){var n=e[t],r=n.funcs,i=n.nonFuncs;y()(0===i.length,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(i.join(", ")));var o=!0,a=!1,s=void 0;try{for(var l,c=r[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value;u()}}catch(e){a=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}delete e[t]}}var ne=P,re=M,ie={namespace:"@@dva",state:0,reducers:{UPDATE:function(e){return e+1}}};function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialReducer,a=t.setupApp,l=void 0===a?ne:a,c=new $;c.use(I(e));var u={_models:[D(Object(r["a"])({},ie))],_store:null,_plugin:c,use:c.use.bind(c),model:h,start:m};return u;function h(e){var t=D(Object(r["a"])({},e));return u._models.push(t),t}function f(t,n,r,i){i=h(i);var o=u._store;o.asyncReducers[i.namespace]=Q(i.reducers,i.state,c._handleActions),o.replaceReducer(t()),i.effects&&o.runSaga(u._getSaga(i.effects,i,n,c.get("onEffect"),e)),i.subscriptions&&(r[i.namespace]=ee(i.subscriptions,i,u,n))}function d(e,t,n,r){var i=u._store;delete i.asyncReducers[r],delete t[r],i.replaceReducer(e()),i.dispatch({type:"@@dva/UPDATE"}),i.dispatch({type:"".concat(r,"/@@CANCEL_EFFECTS")}),te(n,r),u._models=u._models.filter(function(e){return e.namespace!==r})}function p(e,t,n,r,i){var o=u._store,a=i.namespace,s=re(u._models,function(e){return e.namespace===a});~s&&(o.dispatch({type:"".concat(a,"/@@CANCEL_EFFECTS")}),delete o.asyncReducers[a],delete t[a],te(n,a),u._models.splice(s,1)),u.model(i),o.dispatch({type:"@@dva/UPDATE"})}function m(){var a=function(e,t){e&&("string"===typeof e&&(e=new Error(e)),e.preventDefault=function(){e._dontReject=!0},c.apply("onError",function(e){throw new Error(e.stack||e)})(e,u._store.dispatch,t))},h=Object(o["a"])(),m=Z(u);u._getSaga=H.bind(null);var g=[],v=Object(r["a"])({},n),y=!0,b=!1,w=void 0;try{for(var x,_=u._models[Symbol.iterator]();!(y=(x=_.next()).done);y=!0){var E=x.value;v[E.namespace]=Q(E.reducers,E.state,c._handleActions),E.effects&&g.push(u._getSaga(E.effects,E,a,c.get("onEffect"),e))}}catch(e){b=!0,w=e}finally{try{y||null==_.return||_.return()}finally{if(b)throw w}}var S=c.get("onReducer"),C=c.get("extraReducers");s()(Object.keys(C).every(function(e){return!(e in v)}),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(v).join(", "))),u._store=V({reducers:W(),initialState:e.initialState||{},plugin:c,createOpts:t,sagaMiddleware:h,promiseMiddleware:m});var k=u._store;k.runSaga=h.run,k.asyncReducers={};var O=c.get("onStateChange"),T=!0,A=!1,P=void 0;try{for(var M,R=function(){var e=M.value;k.subscribe(function(){e(k.getState())})},j=O[Symbol.iterator]();!(T=(M=j.next()).done);T=!0)R()}catch(e){A=!0,P=e}finally{try{T||null==j.return||j.return()}finally{if(A)throw P}}g.forEach(h.run),l(u);var L={},D=!0,N=!1,I=void 0;try{for(var $,F=this._models[Symbol.iterator]();!(D=($=F.next()).done);D=!0){var B=$.value;B.subscriptions&&(L[B.namespace]=ee(B.subscriptions,B,u,a))}}catch(e){N=!0,I=e}finally{try{D||null==F.return||F.return()}finally{if(N)throw I}}function W(){return S(Object(i["b"])(Object(r["a"])({},v,C,u._store?u._store.asyncReducers:{})))}u.model=f.bind(u,W,a,L),u.unmodel=d.bind(u,W,v,L),u.replaceModel=p.bind(u,W,v,L,a)}}},"4o36":function(e,t,n){var r=n("wHrr"),i=n("69SZ"),o=n("ULMT"),a=n("7vYJ"),s=n("OsVd"),l=n("BnQZ"),c={},u={};t=e.exports=function(e,t,n,h,f){var d,p,m,g,v=f?function(){return e}:l(e),y=r(n,h,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(d=s(e.length);d>b;b++)if(g=t?y(a(p=e[b])[0],p[1]):y(e[b]),g===c||g===u)return g}else for(m=v.call(e);!(p=m.next()).done;)if(g=i(m,y,p.value,t),g===c||g===u)return g};t.BREAK=c,t.RETURN=u},5:function(e,t){},"57TA":function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);function h(e,t,n){if("string"!==typeof t){if(u){var f=c(t);f&&f!==u&&h(e,f,n)}var d=a(t);s&&(d=d.concat(s(t)));for(var p=0;p0?b({},t,{},n):null}}]),t}(r["Component"]);T(M,"propTypes",{prefixCls:a.a.string,clearText:a.a.string,value:a.a.object,defaultOpenValue:a.a.object,inputReadOnly:a.a.bool,disabled:a.a.bool,allowEmpty:a.a.bool,defaultValue:a.a.object,open:a.a.bool,defaultOpen:a.a.bool,align:a.a.object,placement:a.a.any,transitionName:a.a.string,getPopupContainer:a.a.func,placeholder:a.a.string,format:a.a.string,showHour:a.a.bool,showMinute:a.a.bool,showSecond:a.a.bool,style:a.a.object,className:a.a.string,popupClassName:a.a.string,popupStyle:a.a.object,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,hideDisabledOptions:a.a.bool,onChange:a.a.func,onAmPmChange:a.a.func,onOpen:a.a.func,onClose:a.a.func,onFocus:a.a.func,onBlur:a.a.func,addon:a.a.func,name:a.a.string,autoComplete:a.a.string,use12Hours:a.a.bool,hourStep:a.a.number,minuteStep:a.a.number,secondStep:a.a.number,focusOnOpen:a.a.bool,onKeyDown:a.a.func,autoFocus:a.a.bool,id:a.a.string,inputIcon:a.a.node,clearIcon:a.a.node}),T(M,"defaultProps",{clearText:"clear",prefixCls:"rc-time-picker",defaultOpen:!1,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{},align:{},defaultOpenValue:c()(),allowEmpty:!0,showHour:!0,showMinute:!0,showSecond:!0,disabledHours:A,disabledMinutes:A,disabledSeconds:A,hideDisabledOptions:!1,placement:"bottomLeft",onChange:A,onAmPmChange:A,onOpen:A,onClose:A,onFocus:A,onBlur:A,addon:A,use12Hours:!1,focusOnOpen:!1,onKeyDown:A}),Object(u["polyfill"])(M);t["a"]=M},"5vMV":function(e,t,n){var r=n("B+OT"),i=n("NsO/"),o=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},6:function(e,t){},"6+eU":function(e,t,n){"use strict";var r=n("YEIV"),i=n.n(r),o=n("QbLZ"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("V7oC"),u=n.n(c),h=n("FYw3"),f=n.n(h),d=n("mRg0"),p=n.n(d),m=n("q1tI"),g=n.n(m),v=n("TSYQ"),y=n.n(v),b=n("17x9"),w=n.n(b),x=function(e){var t,n=e.rootPrefixCls+"-item",r=y()(n,n+"-"+e.page,(t={},i()(t,n+"-active",e.active),i()(t,e.className,!!e.className),i()(t,n+"-disabled",!e.page),t)),o=function(){e.onClick(e.page)},a=function(t){e.onKeyPress(t,e.onClick,e.page)};return g.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:o,onKeyPress:a,tabIndex:"0"},e.itemRender(e.page,"page",g.a.createElement("a",null,e.page)))};x.propTypes={page:w.a.number,active:w.a.bool,last:w.a.bool,locale:w.a.object,className:w.a.string,showTitle:w.a.bool,rootPrefixCls:w.a.string,onClick:w.a.func,onKeyPress:w.a.func,itemRender:w.a.func};var _=x,E={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},S=function(e){function t(){var e,n,r,i;l()(this,t);for(var o=arguments.length,a=Array(o),s=0;s=0||e.relatedTarget.className.indexOf(o+"-next")>=0)||i(r.getValidValue())},r.go=function(e){var t=r.state.goInputText;""!==t&&(e.keyCode!==E.ENTER&&"click"!==e.type||(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue())))},i=n,f()(r,i)}return p()(t,e),u()(t,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.pageSizeOptions,i=t.locale,o=t.rootPrefixCls,a=t.changeSize,s=t.quickGo,l=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,h=t.selectPrefixCls,f=t.disabled,d=this.state.goInputText,p=o+"-options",m=c,v=null,y=null,b=null;if(!a&&!s)return null;if(a&&m){var w=r.map(function(t,n){return g.a.createElement(m.Option,{key:n,value:t},(u||e.buildOptionText)(t))});v=g.a.createElement(m,{disabled:f,prefixCls:h,showSearch:!1,className:p+"-size-changer",optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||r[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},w)}return s&&(l&&(b="boolean"===typeof l?g.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f},i.jump_to_confirm):g.a.createElement("span",{onClick:this.go,onKeyUp:this.go},l)),y=g.a.createElement("div",{className:p+"-quick-jumper"},i.jump_to,g.a.createElement("input",{disabled:f,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),i.page,b)),g.a.createElement("li",{className:""+p},v,y)}}]),t}(g.a.Component);S.propTypes={disabled:w.a.bool,changeSize:w.a.func,quickGo:w.a.func,selectComponentClass:w.a.func,current:w.a.number,pageSizeOptions:w.a.arrayOf(w.a.string),pageSize:w.a.number,buildOptionText:w.a.func,locale:w.a.object,rootPrefixCls:w.a.string,selectPrefixCls:w.a.string,goButton:w.a.oneOfType([w.a.bool,w.a.node])},S.defaultProps={pageSizeOptions:["10","20","30","40"]};var C=S,k=n("N2Kk"),O=n("VCL8");function T(){}function A(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}function P(e,t,n){return n}function M(e,t,n){var r=e;return"undefined"===typeof r&&(r=t.pageSize),Math.floor((n.total-1)/r)+1}var R=function(e){function t(e){l()(this,t);var n=f()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));j.call(n);var r=e.onChange!==T,i="current"in e;i&&!r&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var o=e.defaultCurrent;"current"in e&&(o=e.current);var a=e.defaultPageSize;return"pageSize"in e&&(a=e.pageSize),o=Math.min(o,M(a,void 0,e)),n.state={current:o,currentInputValue:o,pageSize:a},n}return p()(t,e),u()(t,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector("."+n+"-item-"+t.current);r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=M(void 0,this.state,this.props),r=this.state.currentInputValue,i=void 0;return i=""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t),i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.disabled;if(!0===this.props.hideOnSinglePage&&this.props.total<=this.state.pageSize)return null;var o=this.props,s=o.locale,l=M(void 0,this.state,this.props),c=[],u=null,h=null,f=null,d=null,p=null,m=o.showQuickJumper&&o.showQuickJumper.goButton,v=o.showLessItems?1:2,b=this.state,w=b.current,x=b.pageSize,E=w-1>0?w-1:0,S=w+1=2*v&&3!==w&&(c[0]=g.a.cloneElement(c[0],{className:t+"-item-after-jump-prev"}),c.unshift(u)),l-w>=2*v&&w!==l-2&&(c[c.length-1]=g.a.cloneElement(c[c.length-1],{className:t+"-item-before-jump-next"}),c.push(h)),1!==D&&c.unshift(f),N!==l&&c.push(d)}var F=null;o.showTotal&&(F=g.a.createElement("li",{className:t+"-total-text"},o.showTotal(o.total,[0===o.total?0:(w-1)*x+1,w*x>o.total?o.total:w*x])));var B=!this.hasPrev()||!l,V=!this.hasNext()||!l;return g.a.createElement("ul",a()({className:y()(t,n,i()({},t+"-disabled",r)),style:o.style,unselectable:"unselectable",ref:this.savePaginationNode},k),F,g.a.createElement("li",{title:o.showTitle?s.prev_page:null,onClick:this.prev,tabIndex:B?null:0,onKeyPress:this.runIfEnterPrev,className:(B?t+"-disabled":"")+" "+t+"-prev","aria-disabled":B},o.itemRender(E,"prev",this.getItemIcon(o.prevIcon))),c,g.a.createElement("li",{title:o.showTitle?s.next_page:null,onClick:this.next,tabIndex:V?null:0,onKeyPress:this.runIfEnterNext,className:(V?t+"-disabled":"")+" "+t+"-next","aria-disabled":V},o.itemRender(S,"next",this.getItemIcon(o.nextIcon))),g.a.createElement(C,{disabled:r,locale:o.locale,rootPrefixCls:t,selectComponentClass:o.selectComponentClass,selectPrefixCls:o.selectPrefixCls,changeSize:this.props.showSizeChanger?this.changePageSize:null,current:this.state.current,pageSize:this.state.pageSize,pageSizeOptions:this.props.pageSizeOptions,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:m}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,i=M(e.pageSize,t,e);r=r>i?i:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),t}(g.a.Component);R.propTypes={disabled:w.a.bool,prefixCls:w.a.string,className:w.a.string,current:w.a.number,defaultCurrent:w.a.number,total:w.a.number,pageSize:w.a.number,defaultPageSize:w.a.number,onChange:w.a.func,hideOnSinglePage:w.a.bool,showSizeChanger:w.a.bool,showLessItems:w.a.bool,onShowSizeChange:w.a.func,selectComponentClass:w.a.func,showPrevNextJumpers:w.a.bool,showQuickJumper:w.a.oneOfType([w.a.bool,w.a.object]),showTitle:w.a.bool,pageSizeOptions:w.a.arrayOf(w.a.string),showTotal:w.a.func,locale:w.a.object,style:w.a.object,itemRender:w.a.func,prevIcon:w.a.oneOfType([w.a.func,w.a.node]),nextIcon:w.a.oneOfType([w.a.func,w.a.node]),jumpPrevIcon:w.a.oneOfType([w.a.func,w.a.node]),jumpNextIcon:w.a.oneOfType([w.a.func,w.a.node])},R.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:T,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showSizeChanger:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:T,locale:k["a"],style:{},itemRender:P};var j=function(){var e=this;this.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},this.getJumpNextPage=function(){return Math.min(M(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},this.getItemIcon=function(t){var n=e.props.prefixCls,r=t||g.a.createElement("a",{className:n+"-item-link"});return"function"===typeof t&&(r=g.a.createElement(t,a()({},e.props))),r},this.savePaginationNode=function(t){e.paginationNode=t},this.isValid=function(t){return A(t)&&t!==e.state.current},this.shouldDisplayQuickJumper=function(){var t=e.props,n=t.showQuickJumper,r=t.pageSize,i=t.total;return!(i<=r)&&n},this.handleKeyDown=function(e){e.keyCode!==E.ARROW_UP&&e.keyCode!==E.ARROW_DOWN||e.preventDefault()},this.handleKeyUp=function(t){var n=e.getValidValue(t),r=e.state.currentInputValue;n!==r&&e.setState({currentInputValue:n}),t.keyCode===E.ENTER?e.handleChange(n):t.keyCode===E.ARROW_UP?e.handleChange(n-1):t.keyCode===E.ARROW_DOWN&&e.handleChange(n+1)},this.changePageSize=function(t){var n=e.state.current,r=M(t,e.state,e.props);n=n>r?r:n,0===r&&(n=e.state.current),"number"===typeof t&&("pageSize"in e.props||e.setState({pageSize:t}),"current"in e.props||e.setState({current:n,currentInputValue:n})),e.props.onShowSizeChange(n,t)},this.handleChange=function(t){var n=e.props.disabled,r=t;if(e.isValid(r)&&!n){var i=M(void 0,e.state,e.props);r>i?r=i:r<1&&(r=1),"current"in e.props||e.setState({current:r,currentInputValue:r});var o=e.state.pageSize;return e.props.onChange(r,o),r}return e.state.current},this.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},this.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},this.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},this.jumpNext=function(){e.handleChange(e.getJumpNextPage())},this.hasPrev=function(){return e.state.current>1},this.hasNext=function(){return e.state.current2?n-2:0),i=2;i=0?parseFloat(e)/100*t:parseFloat(e):e}function p(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",h="top";if(r instanceof Array)l+=d(r[0],n.width),c+=d(r[1],n.height),u=null,h=null;else switch(r){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+a,c+=s,h="middle";break;case"top":l+=a/2,c-=i,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=a-i,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",h="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",h="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=h,e}},"6Ogq":function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0});var o={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function a(e){var t=e.direction,n=void 0===t?"vertical":t,a=e.prefixCls;if("undefined"===typeof document||"undefined"===typeof window)return 0;var s="vertical"===n;if(s&&r)return r;if(!s&&i)return i;var l=document.createElement("div");Object.keys(o).forEach(function(e){l.style[e]=o[e]}),l.className="".concat(a,"-hide-scrollbar scroll-div-append-to-body"),s?l.style.overflowY="scroll":l.style.overflowX="scroll",document.body.appendChild(l);var c=0;return s?(c=l.offsetWidth-l.clientWidth,r=c):(c=l.offsetHeight-l.clientHeight,i=c),document.body.removeChild(l),c}function s(e,t,n){var r;function i(){for(var i=arguments.length,o=new Array(i),a=0;a=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"6lKK":function(e,t,n){"use strict";n.r(t);n("2qtc");var r=n("kLXV"),i=(n("miYZ"),n("tsqr")),o=n("d6i3"),a=n.n(o),s=n("p0pE"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("t3Un"),f={invite:{},site:{},subscribe:{},frontend:{},server:{},email:{},telegram:{},app:{},tabs:"site",fetchLoading:!1,emailTemplate:[],themeTemplate:[],setTelegramWebhookLoading:!1};t["default"]={name:"config",state:l()({},f),reducers:{setState(e,t){var n=t.payload;return l()({},e,n)}},effects:{fetch(e,t){return a.a.mark(function n(){var r,i,o,s,c;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return o=e.key,s=t.put,n.next=4,s({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,Object(h["a"])("/admin/config/fetch",{key:o});case 6:return c=n.sent,n.next=9,s({type:"setState",payload:{fetchLoading:!1}});case 9:if(200===c.code){n.next=11;break}return n.abrupt("return");case 11:return"string"===typeof(null===(r=c.data.invite)||void 0===r?void 0:r.commission_withdraw_method)&&(c.data.invite.commission_withdraw_method=c.data.invite.commission_withdraw_method.split(",")),"string"===typeof(null===(i=c.data.site)||void 0===i?void 0:i.email_whitelist_suffix)&&(c.data.site.email_whitelist_suffix=c.data.site.email_whitelist_suffix.split(",")),n.next=15,s({type:"setState",payload:l()({},c.data)});case 15:case"end":return n.stop()}},n)})()},save(e,t){return a.a.mark(function n(){var r,o,s,c,u;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.parentKey,o=t.put,s=t.select,n.next=4,s(e=>e.config);case 4:return c=n.sent,n.next=7,Object(h["b"])("/admin/config/save",l()({},c[r]));case 7:if(u=n.sent,200===u.code){n.next=10;break}return n.abrupt("return");case 10:return i["a"].success("\u4fdd\u5b58\u6210\u529f"),n.next=13,o({type:"fetch"});case 13:case"end":return n.stop()}},n)})()},getEmailTemplate(e,t){return a.a.mark(function e(){var n,r;return a.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(h["a"])("/admin/config/getEmailTemplate");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"setState",payload:{emailTemplate:r.data}});case 8:case"end":return e.stop()}},e)})()},getThemeTemplate(e,t){return a.a.mark(function e(){var n,r;return a.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(h["a"])("/admin/config/getThemeTemplate");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"setState",payload:{themeTemplate:r.data}});case 8:case"end":return e.stop()}},e)})()},setTelegramWebhook(e,t){return a.a.mark(function n(){var r,o,s;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.token,o=t.put,t.select,n.next=4,o({type:"setState",payload:{setTelegramWebhookLoading:!0}});case 4:return n.next=6,Object(h["b"])("/admin/config/setTelegramWebhook",{telegram_bot_token:r});case 6:return s=n.sent,n.next=9,o({type:"setState",payload:{setTelegramWebhookLoading:!1}});case 9:if(200===s.code){n.next=11;break}return n.abrupt("return");case 11:i["a"].success("webhook \u8bbe\u7f6e\u6210\u529f");case 12:case"end":return n.stop()}},n)})()},testSendMail(e,t){return a.a.mark(function e(){var n,i,o,s,l,c,f,d,p,m,g;return a.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return m=t.put,e.next=3,m({type:"setState",payload:{testSendMailLoading:!0}});case 3:return e.next=5,Object(h["b"])("/admin/config/testSendMail");case 5:return g=e.sent,e.next=8,m({type:"setState",payload:{testSendMailLoading:!1}});case 8:if(200===g.code){e.next=10;break}return e.abrupt("return");case 10:r["a"][(null===g||void 0===g?void 0:null===(n=g.log)||void 0===n?void 0:n.error)?"error":"success"]({title:(null===g||void 0===g?void 0:null===(i=g.log)||void 0===i?void 0:i.error)?"\u53d1\u9001\u5931\u8d25":"\u53d1\u9001\u6210\u529f",content:u.a.createElement("div",null,(null===g||void 0===g?void 0:null===(o=g.log)||void 0===o?void 0:o.error)&&u.a.createElement("div",null,u.a.createElement("span",null,"\u5931\u8d25\u539f\u56e0:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(s=g.log)||void 0===s?void 0:s.error)),u.a.createElement("div",null,u.a.createElement("span",null,"\u6536\u4fe1\u5730\u5740:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(l=g.log)||void 0===l?void 0:l.email)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u670d\u52a1\u5668:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(c=g.log)||void 0===c?void 0:c.config.host)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u7aef\u53e3:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(f=g.log)||void 0===f?void 0:f.config.port)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u52a0\u5bc6\u65b9\u5f0f:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(d=g.log)||void 0===d?void 0:d.config.encryption)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u7528\u6237\u540d:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(p=g.log)||void 0===p?void 0:p.config.username)))}),console.log(g);case 12:case"end":return e.stop()}},e)})()}}}},"6tYh":function(e,t,n){var r=n("93I4"),i=n("5K7Z"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("2GTP")(Function.call,n("vwuL").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"7Cbv":function(e,t,n){"use strict";var r,i=new Uint8Array(16);function o(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function s(e){return"string"===typeof e&&a.test(e)}for(var l=s,c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n}var f=h;function d(e,t,n){e=e||{};var r=e.random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return f(r)}t["a"]=d},"7ICb":function(e,t,n){"use strict";function r(e){return e.clone().startOf("month")}function i(e){return e.clone().endOf("month")}function o(e,t,n){return e.clone().add(t,n)}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2];return e.some(function(e){return e.isSame(t,n)})}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return a})},"7Inb":function(e,t,n){"use strict";var r=n("W6Rk")["default"];n(6),t=e.exports=r,t["default"]=t},"7RDE":function(e,t,n){"use strict";var r,i=n("c0Oy"),o=n("+o5p")(0),a=n("rKIl"),s=n("+y51"),l=n("lFUy"),c=n("2Os2"),u=n("u8+u"),h=n("Jc7p"),f=n("Jc7p"),d=!i.ActiveXObject&&"ActiveXObject"in i,p="WeakMap",m=s.getWeak,g=Object.isExtensible,v=c.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(u(e)){var t=m(e);return!0===t?v(h(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(h(this,p),e,t)}},w=e.exports=n("nWMQ")(p,y,b,c,!0,!0);f&&d&&(r=c.getConstructor(y,p),l(r.prototype,b),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=w.prototype,n=t[e];a(t,e,function(t,i){if(u(t)&&!g(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},"7Uk0":function(e,t,n){"use strict";var r=n("il4q"),i=n("Spc3"),o=n("OsVd");e.exports=function(e){var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);while(c>s)t[s++]=e;return t}},"7ixt":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r={adjustX:1,adjustY:1},i=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:i}}},"7tDr":function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o);t["default"]={name:"layout",state:{showNav:!1},reducers:{save(e,t){return a()({},e,t.payload)}},effects:{showNav(e,t){return i.a.mark(function n(){var r,o,s,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.show,o=t.put,s=t.select,n.next=4,s(e=>e.layout);case 4:return l=n.sent,n.next=7,o({type:"save",payload:a()({},l,{showNav:"undefined"!==typeof r?r:!l.showNav})});case 7:case"end":return n.stop()}},n)})()}}}},"7tNx":function(e,t,n){"use strict";var r=n("7vYJ");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"7tlc":function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function h(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return _(i)||(i=h(e,i,r)),i}var o=f(e,n);if(o)return o;var a=Object.keys(n),s=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(C(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return d(n)}var c,y="",b=!1,w=["{","}"];if(v(n)&&(b=!0,w=["[","]"]),A(n)){var x=n.name?": "+n.name:"";y=" [Function"+x+"]"}return C(n)&&(y=" "+RegExp.prototype.toString.call(n)),O(n)&&(y=" "+Date.prototype.toUTCString.call(n)),T(n)&&(y=" "+d(n)),0!==a.length||b&&0!=n.length?r<0?C(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=b?p(e,n,r,s,a):a.map(function(t){return m(e,n,r,s,t,b)}),e.seen.pop(),g(c,y,w)):w[0]+y+w[1]}function f(e,t){if(S(t))return e.stylize("undefined","undefined");if(_(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return x(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,n){var r=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function b(e){return null===e}function w(e){return null==e}function x(e){return"number"===typeof e}function _(e){return"string"===typeof e}function E(e){return"symbol"===typeof e}function S(e){return void 0===e}function C(e){return k(e)&&"[object RegExp]"===M(e)}function k(e){return"object"===typeof e&&null!==e}function O(e){return k(e)&&"[object Date]"===M(e)}function T(e){return k(e)&&("[object Error]"===M(e)||e instanceof Error)}function A(e){return"function"===typeof e}function P(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function M(e){return Object.prototype.toString.call(e)}function R(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(o)&&(o=Object({NODE_ENV:"production"}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=y,t.isNull=b,t.isNullOrUndefined=w,t.isNumber=x,t.isString=_,t.isSymbol=E,t.isUndefined=S,t.isRegExp=C,t.isObject=k,t.isDate=O,t.isError=T,t.isFunction=A,t.isPrimitive=P,t.isBuffer=n("j/1Z");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",L(),t.format.apply(t,arguments))},t.inherits=n("FfBw"),t._extend=function(e,t){if(!t||!k(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var N="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function $(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r0)g=l(e,t,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=p}g++}v++}return g}e.exports=l},"8Z/V":function(e,t,n){e.exports=!n("wUWy")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8drl":function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=n("d6i3"),a=n.n(o),s=n("1l/V"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("Bl7J"),f=n("/MKj"),d=(n("2qtc"),n("kLXV")),p=(n("5NDa"),n("5rEg")),m=(n("OaEy"),n("2fM7")),g=(n("miYZ"),n("tsqr"));class v extends u.a.Component{constructor(e){super(e),this.state={params:{},visible:!1}}setParams(e,t){var n=this.state.params;n[e]=t,this.setState({params:n})}show(){this.setState({visible:!0}),this.getConfig()}hidden(){this.setState({visible:!1,params:{}})}getConfig(){var e=this.props.keyName;this.props.dispatch({type:"theme/getThemeConfig",name:e,complete:e=>{this.setState({params:e})}})}saveThemeConfig(){var e=this.props.keyName;this.props.dispatch({type:"theme/saveThemeConfig",config:window.btoa(unescape(encodeURIComponent(JSON.stringify(this.state.params)))),name:e,complete:e=>{g["a"].success("\u4fdd\u5b58\u6210\u529f")}})}buildType(e){var t=this.state.params;switch(e.field_type){case"select":return u.a.createElement("div",null,u.a.createElement(m["a"],{style:{width:"100%"},placeholder:e.placeholder,value:t[e.field_name],onChange:t=>this.setParams(e.field_name,t)},Object.keys(e.select_options).map(t=>{return u.a.createElement(m["a"].Option,{value:t},e.select_options[t])})));case"input":return u.a.createElement(p["a"],{placeholder:e.placeholder,value:t[e.field_name],onChange:t=>this.setParams(e.field_name,t.target.value)});case"textarea":return u.a.createElement(p["a"].TextArea,{rows:"5",placeholder:e.placeholder,value:t[e.field_name],onChange:t=>this.setParams(e.field_name,t.target.value)})}}render(){var e=this.props.theme,t=(e.getThemeConfigLoading,e.saveThemeConfigLoading);return u.a.createElement(u.a.Fragment,null,u.a.cloneElement(this.props.children,{onClick:()=>this.show()}),u.a.createElement(d["a"],{onCancel:()=>this.hidden(),title:"\u914d\u7f6e".concat(this.props.themeName,"\u4e3b\u9898"),visible:this.state.visible,okButtonProps:{loading:t},onOk:()=>this.saveThemeConfig()},(this.props.configs||[]).map(e=>{return u.a.createElement("div",{className:"form-group"},u.a.createElement("label",null,e.label),this.buildType(e))})))}}var y=Object(f["c"])(e=>{var t=e.theme;return{theme:t}})(v),b=n("t3Un");class w extends u.a.Component{constructor(e){super(e),this.state={visible:!1}}componentDidMount(){this.props.dispatch({type:"theme/getThemes"})}activeTheme(e){var t=this;return l()(a.a.mark(function n(){var r;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(b["b"])("/admin/config/save",{frontend_theme:e});case 2:if(r=n.sent,200===r.code){n.next=5;break}return n.abrupt("return");case 5:t.props.dispatch({type:"theme/getThemes"});case 6:case"end":return n.stop()}},n)}))()}render(){var e=this.props.theme,t=e.themes,n=e.active;e.getThemesLoading;return u.a.createElement(h["a"],i()({},this.props,{loading:Object.keys(t).length<=0,title:"\u4e3b\u9898\u914d\u7f6e"}),u.a.createElement("div",{className:"row"},u.a.createElement("div",{className:"col-lg-12"},u.a.createElement("div",{className:"alert alert-warning mb-0 mb-md-4",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u5982\u679c\u4f60\u91c7\u7528\u524d\u540e\u5206\u79bb\u7684\u65b9\u5f0f\u90e8\u7f72V2board\uff0c\u90a3\u4e48\u4e3b\u9898\u914d\u7f6e\u5c06\u4e0d\u4f1a\u751f\u6548\u3002\u4e86\u89e3",u.a.createElement("b",null,u.a.createElement("a",{href:"https://docs.v2board.com/use/advanced.html#%E5%89%8D%E7%AB%AF%E5%88%86%E7%A6%BB"},"\u524d\u540e\u5206\u79bb")))))),Object.keys(t).map(e=>{var r=t[e];return u.a.createElement("div",{className:"block block-transparent bg-image mb-0 mb-md-3 bg-primary",style:{backgroundImage:"url(https://images.unsplash.com/photo-1567095761054-7a02e69e5c43?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1374&q=80)"}},u.a.createElement("div",{className:"block-content block-content-full bg-gd-white-op-l"},u.a.createElement("div",{className:"d-md-flex justify-content-md-between align-items-md-center"},u.a.createElement("div",{className:"p-2 py-4"},u.a.createElement("h3",{className:"font-size-h4 font-w400 text-black mb-1"},r.name),u.a.createElement("p",{className:"text-black-75 mb-0"},r.description)),u.a.createElement("div",{className:"p-2 py-4"},u.a.createElement("button",{type:"button",className:"btn btn-sm rounded-pill btn-outline-light px-3 mr-2",onClick:()=>this.activeTheme(e),disabled:n===e},n===e?"\u5f53\u524d\u4e3b\u9898":"\u6fc0\u6d3b\u4e3b\u9898"),u.a.createElement(y,{keyName:e,themeName:r.name,configs:r.configs},u.a.createElement("button",{type:"button",className:"btn btn-sm rounded-pill btn-outline-light px-3"},"\u4e3b\u9898\u8bbe\u7f6e"))))))}))}}t["default"]=Object(f["c"])(e=>{var t=e.theme;return{theme:t}})(w)},"8ifW":function(e,t,n){"use strict";(function(e){var r=n("q1tI"),i=n.n(r),o=n("1EPD"),a=n("17x9"),s=n.n(a),l=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function u(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}function h(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}function d(e){return Array.isArray(e)?e[0]:e}function p(e,t){var n,i,a="__create-react-context-"+u()+"__",c=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=f(t.props.value),t}Object(o["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;h(r,i)?n=0:(n="function"===typeof t?t(r,i):l,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);c.childContextTypes=(n={},n[a]=s.a.object.isRequired,n);var p=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(o["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return d(this.props.children)(this.state.value)},n}(r["Component"]);return p.contextTypes=(i={},i[a]=s.a.object,i),{Provider:c,Consumer:p}}var m=i.a.createContext||p;t["a"]=m}).call(this,n("yLpj"))},"8jRI":function(e,t,n){"use strict";var r="%[a-f0-9]{2}",i=new RegExp(r,"gi"),o=new RegExp("("+r+")+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function s(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(i),n=1;n=n&&(e.updateKey=a[0].updateKey||a[0].key,a.shift()),a.push(e)),{notices:a}})},r.remove=function(e){r.setState(function(t){return{notices:t.notices.filter(function(t){return t.key!==e})}})},i=n,p()(r,i)}return g()(t,e),f()(t,[{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t}},{key:"render",value:function(){var e,t=this,n=this.props,r=this.state.notices,i=r.map(function(e,i){var o=Boolean(i===r.length-1&&e.updateKey),a=e.updateKey?e.updateKey:e.key,s=Object(S["a"])(t.remove.bind(t,e.key),e.onClose);return y.a.createElement(T,l()({prefixCls:n.prefixCls},e,{key:a,update:o,onClose:s,onClick:e.onClick,closeIcon:n.closeIcon}),e.content)}),o=(e={},a()(e,n.prefixCls,1),a()(e,n.className,!!n.className),e);return y.a.createElement("div",{className:k()(o),style:n.style},y.a.createElement(E["a"],{transitionName:this.getTransitionName()},i))}}]),t}(v["Component"]);R.propTypes={prefixCls:w.a.string,transitionName:w.a.string,animation:w.a.oneOfType([w.a.string,w.a.object]),style:w.a.object,maxCount:w.a.number,closeIcon:w.a.node},R.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},R.newInstance=function(e,t){var n=e||{},r=n.getContainer,o=i()(n,["getContainer"]),a=document.createElement("div");if(r){var s=r();s.appendChild(a)}else document.body.appendChild(a);var c=!1;function u(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){_.a.unmountComponentAtNode(a),a.parentNode.removeChild(a)}}))}_.a.render(y.a.createElement(R,l()({},o,{ref:u})),a)};var j=R;t["a"]=j},"8zNj":function(e,t,n){"use strict";n("2qtc");var r=n("kLXV"),i=(n("5NDa"),n("5rEg")),o=(n("Pwec"),n("CtXQ")),a=n("p0pE"),s=n.n(a),l=n("q1tI"),c=n.n(l),u=(n("Bl7J"),n("/MKj"));class h extends c.a.Component{constructor(e){super(e),this.state={submit:s()({},this.props.record),visible:!1}}save(){var e=s()({},this.state.submit);this.props.dispatch({type:"serverGroup/save",params:e,callback:()=>{this.setState({visible:!1})}})}render(){var e=this.props.serverGroup.fetchLoading;return c.a.createElement(c.a.Fragment,null,c.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),c.a.createElement(r["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u7ec4":"\u521b\u5efa\u7ec4"),visible:this.state.visible,onCancel:()=>this.setState({visible:!1}),onOk:()=>e||this.save(),okText:e?c.a.createElement(o["a"],{type:"loading"}):"\u63d0\u4ea4",cancelText:"\u53d6\u6d88"},c.a.createElement("div",null,c.a.createElement("div",{className:"form-group"},c.a.createElement("label",{for:"example-text-input-alt"},"\u7ec4\u540d"),c.a.createElement(i["a"],{placeholder:"\u8bf7\u8f93\u5165\u7ec4\u540d",value:this.state.submit.name,onChange:e=>{this.setState({submit:s()({},this.state.submit,{name:e.target.value})})}})))))}}t["a"]=Object(u["c"])(e=>{var t=e.serverGroup;return{serverGroup:t}})(h)},"93I4":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},"9HFh":function(e,t,n){var r=n("xJie"),i=n("WFJy").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"9R94":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?i+": "+n:i;throw new Error(o)}}},"9WFV":function(e,t,n){var r=n("2we2");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"9lTW":function(e,t,n){"use strict";(function(t){function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;c--)if(u[c]!==h[c])return!1;for(c=u.length-1;c>=0;c--)if(l=u[c],!b(e[l],t[l],n,r))return!1;return!0}function _(e,t,n){b(e,t,!0)&&v(e,t,n,"notDeepStrictEqual",_)}function E(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function S(e){var t;try{e()}catch(e){t=e}return t}function C(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=S(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var a="string"===typeof r,s=!e&&o.isError(i),l=!e&&i&&!n;if((s&&a&&E(i,n)||l)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!E(i,n)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=d(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(e,t,n){e!=t&&v(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=_,h.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){C(!0,e,t,n)},h.doesNotThrow=function(e,t,n){C(!1,e,t,n)},h.ifError=function(e){if(e)throw e};var k=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}}).call(this,n("yLpj"))},"9nSz":function(e,t,n){"use strict";var r=n("WGNW"),i=n("Y/ne"),o=n("08Qx"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},A22h:function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},A5Xg:function(e,t,n){var r=n("NsO/"),i=n("ar/p").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"A7R+":function(e,t,n){e.exports=!n("8Z/V")&&!n("wUWy")(function(){return 7!=Object.defineProperty(n("SfDG")("div"),"a",{get:function(){return 7}}).a})},AHJs:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}}),t&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){return function(){var t,n=h(e);if(u()){var r=h(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return l(this,t)}}function l(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t};Object.defineProperty(t,"__esModule",{value:!0});var d=f(n("q1tI")),p=function(e){o(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(d.Component);t.default=p,p.isTableColumnGroup=!0},AMgb:function(e,t,n){e.exports=n("j/9B").default},ANjH:function(e,t,n){"use strict";var r=n("rePB");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return{type:r,payload:{location:e,action:t,isFirstRendering:n}}},o="@@router/CALL_HISTORY_METHOD",a=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r0?r:n)(e)}},AUvm:function(e,t,n){"use strict";var r=n("5T2Y"),i=n("B+OT"),o=n("jmDH"),a=n("Y7ZC"),s=n("kTiW"),l=n("6/1s").KEY,c=n("KUxP"),u=n("29s/"),h=n("RfKB"),f=n("YqAc"),d=n("UWiX"),p=n("zLkG"),m=n("Zxgi"),g=n("R+7+"),v=n("kAMH"),y=n("5K7Z"),b=n("93I4"),w=n("JB68"),x=n("NsO/"),_=n("G8Mo"),E=n("rr1i"),S=n("oVml"),C=n("A5Xg"),k=n("vwuL"),O=n("mqlF"),T=n("2faE"),A=n("w6GO"),P=k.f,M=T.f,R=C.f,j=r.Symbol,L=r.JSON,D=L&&L.stringify,N="prototype",I=d("_hidden"),$=d("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),V=u("symbols"),W=u("op-symbols"),H=Object[N],U="function"==typeof j&&!!O.f,z=r.QObject,q=!z||!z[N]||!z[N].findChild,K=o&&c(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(H,t);r&&delete H[t],M(e,t,n),r&&e!==H&&M(H,t,r)}:M,G=function(e){var t=V[e]=S(j[N]);return t._k=e,t},Y=U&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},X=function(e,t,n){return e===H&&X(W,t,n),y(e),t=_(t,!0),y(n),i(V,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:E(0,!1)})):(i(e,I)||M(e,I,E(1,{})),e[I][t]=!0),K(e,t,n)):M(e,t,n)},Q=function(e,t){y(e);var n,r=g(t=x(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?S(e):Q(S(e),t)},J=function(e){var t=F.call(this,e=_(e,!0));return!(this===H&&i(V,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,I)&&this[I][e])||t)},ee=function(e,t){if(e=x(e),t=_(t,!0),e!==H||!i(V,t)||i(W,t)){var n=P(e,t);return!n||!i(V,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},te=function(e){var t,n=R(x(e)),r=[],o=0;while(n.length>o)i(V,t=n[o++])||t==I||t==l||r.push(t);return r},ne=function(e){var t,n=e===H,r=R(n?W:x(e)),o=[],a=0;while(r.length>a)!i(V,t=r[a++])||n&&!i(H,t)||o.push(V[t]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),K(this,e,E(1,n))};return o&&q&&K(H,e,{configurable:!0,set:t}),G(e)},s(j[N],"toString",function(){return this._k}),k.f=ee,T.f=X,n("ar/p").f=C.f=te,n("NV0k").f=J,O.f=ne,o&&!n("uOPS")&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(d(e))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=A(d.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=j(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c(function(){O.f(1)});a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),L&&a(a.S+a.F*(!U||c(function(){var e=j();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,D.apply(L,r)}}),j[N][$]||n("NegM")(j[N],$,j[N].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},AyUB:function(e,t,n){e.exports={default:n("3GJH"),__esModule:!0}},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},B6Jk:function(e,t,n){},B9Yq:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},BC81:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return null};t.default=r},BFt8:function(e,t,n){var r=n("oxo0"),i=n("il4q"),o=n("J57/")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"BGR+":function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r);function o(e,t){for(var n=i()({},e),r=0;r=r)t|=1&e,e>>=1;return e+t}function a(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i=0)i++;return i-t}function s(e,t,n){n--;while(t>>1,i(a,e[o])<0?l=o:s=o+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=a}}function c(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}a++;while(a>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function u(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function h(e,t){var n,r,o=i,a=0,s=0;a=e.length;var l=[];function h(e,t){n[s]=e,r[s]=t,s+=1}function f(){while(s>1){var e=s-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]r[e+1])break;p(e)}}function d(){while(s>1){var e=s-2;e>0&&r[e-1]=i||g>=i);if(v)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===r){for(h=0;h=0;h--)e[g+h]=e[m+h];if(0===r){w=!0;break}}if(e[p--]=l[d--],1===--s){w=!0;break}if(b=s-c(e[f],l,0,s,s-1,t),0!==b){for(p-=b,d-=b,s-=b,g=p+1,m=d+1,h=0;h=i||b>=i);if(w)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===s){for(p-=r,f-=r,g=p+1,m=f+1,h=r-1;h>=0;h--)e[g+h]=e[m+h];e[p]=l[d]}else{if(0===s)throw new Error;for(m=p-(s-1),h=0;h=0;h--)e[g+h]=e[m+h];e[p]=l[d]}else for(m=p-(s-1),h=0;hf&&(d=f),l(e,n,n+d,n+c,t),c=d}u.pushRun(n,c),u.mergeRuns(),s-=c,n+=c}while(0!==s);u.forceMergeRuns()}}},BjZs:function(e,t,n){"use strict";function r(e){return s(e)||a(e)||o(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return l(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return l(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];i[n]=i[n]||[];var o=[],a=function(e){var t=i.length-n;e&&!e.children&&t>1&&(!e.rowSpan||e.rowSpan0?(c.children=e(c.children,n+1,c,i),r.colSpan+=c.colSpan):r.colSpan+=1;for(var h=0;h{s.a.push(n),this.props.dispatch({type:"layout/showNav",show:!1})}},r&&r,o.a.createElement("span",{className:"nav-main-link-name"},t)));case"href":return o.a.createElement("li",{key:Math.random(),className:"nav-main-item"},o.a.createElement("a",{className:"nav-main-link",target:"_blank",href:n,rel:"noreferrer"},r&&r,o.a.createElement("span",{className:"nav-main-link-name"},t)))}}isAdmin(){return-1!==this.props.location.pathname.indexOf("admin")}render(){return o.a.createElement("nav",{id:"sidebar"},o.a.createElement("div",{className:"smini-hidden bg-header-dark"},o.a.createElement("div",{className:"content-header justify-content-lg-center bg-black-10"},o.a.createElement("a",{className:"link-fx font-size-lg text-white",href:"/"},o.a.createElement("span",{className:"text-white-75"},window.settings.title?window.settings.title:"V2Board")),o.a.createElement("div",{className:"d-lg-none"},o.a.createElement("a",{className:"text-white ml-2","data-toggle":"layout","data-action":"sidebar_close",href:"javascript:void(0);",onClick:()=>this.props.dispatch({type:"layout/showNav"})},o.a.createElement("i",{className:"fa fa-times-circle"}))))),o.a.createElement("div",{className:"content-side content-side-full"},o.a.createElement("ul",{className:"nav-main"},this.state.nav.map(e=>{return this.renderMenu(e.type,e.title,e.href,e.icon)}))),o.a.createElement("div",{className:"v2board-copyright"},window.settings.title?window.settings.title:"V2Board"," v1.6.2"))}}var u=Object(l["c"])(e=>{var t=e.layout;return{layout:t}})(c),h=(n("t3Un"),n("nDCI")),f=n("yWgo"),d=window.settings.theme;class p extends o.a.Component{constructor(e){super(e),this.state={showAvatarMenu:!1,showSearchBar:!1}}componentDidMount(){var e=this.props.user.userInfo;e.email||this.props.dispatch({type:"user/getUserInfo"})}showAvatarMenu(){var e=this;this.setState({showAvatarMenu:!this.state.showAvatarMenu},()=>{document.onclick=function(t){e.state.showAvatarMenu&&e.setState({showAvatarMenu:!1}),document.onclick=void 0}})}logout(){Object(f["g"])(),s.a.push("/login")}darkMode(){"1"===Object(f["d"])("dark_mode")?(Object(h["disable"])(),Object(f["i"])("dark_mode",0)):(Object(h["enable"])({brightness:100,contrast:90,sepia:10}),Object(f["i"])("dark_mode",1)),this.forceUpdate()}render(){var e=this.props.user.userInfo;return o.a.createElement("header",{id:"page-header"},o.a.createElement("div",{className:"content-header",style:{maxWidth:"unset"}},o.a.createElement("div",{className:"sidebar-toggle",style:{display:this.props.search?"block":"none"}},o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary mr-1 d-lg-none":"btn mr-1 d-lg-none",onClick:()=>this.props.dispatch({type:"layout/showNav"})},o.a.createElement("i",{className:"fa fa-fw fa-bars"})),this.props.search&&o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary":"btn",onClick:()=>{this.setState({showSearchBar:!0})}},o.a.createElement("i",{className:"fa fa-fw fa-search"})," ",o.a.createElement("span",{className:"ml-1 d-none d-sm-inline-block"},"\u641c\u7d22"))),o.a.createElement("div",{className:"dark"===d.header?"v2board-container-title text-white":"v2board-container-title text-black"},this.props.title),o.a.createElement("div",null,o.a.createElement("div",{className:"dropdown d-inline-block"},o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary mr-1":"btn mr-1",onClick:()=>this.darkMode()},"1"===Object(f["d"])("dark_mode")?o.a.createElement("i",{className:"far fa fa-moon"}):o.a.createElement("i",{className:"far fa fa-sun"}))),this.state.loading?o.a.createElement("div",{className:"spinner-grow text-primary"}):o.a.createElement("div",{className:"dropdown d-inline-block"},o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary":"btn",id:"page-header-user-dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:()=>this.showAvatarMenu()},o.a.createElement("i",{className:"far fa fa-user-circle"}),o.a.createElement("span",{className:"d-none d-lg-inline ml-1"},e.email),o.a.createElement("i",{className:"fa fa-fw fa-angle-down ml-1"})),o.a.createElement("div",{className:"dropdown-menu dropdown-menu-right dropdown-menu-lg p-0 ".concat(this.state.showAvatarMenu&&"show"),"aria-labelledby":"page-header-user-dropdown"},o.a.createElement("div",{className:"p-2"},o.a.createElement("a",{className:"dropdown-item d-flex justify-content-between align-items-center",href:"javascript:void(0);",onClick:()=>this.logout()},"\u767b\u51fa",o.a.createElement("i",{className:"fa fa-fw fa-sign-out-alt text-danger ml-1"}))))))),this.props.search&&o.a.createElement("div",{className:"overlay-header bg-dark ".concat(this.state.showSearchBar?"show":"")},o.a.createElement("div",{className:"content-header bg-dark"},o.a.createElement("div",{className:"w-100"},o.a.createElement("div",{className:"input-group"},o.a.createElement("div",{className:"input-group-prepend"},o.a.createElement("button",{type:"button",className:"btn btn-dark",onClick:()=>{this.setState({showSearchBar:!1})}},o.a.createElement("i",{className:"fa fa-fw fa-times-circle"}))),o.a.createElement("input",{type:"text",className:"form-control border-0",placeholder:this.props.search.placeholder,onChange:e=>this.props.search.onChange(e.target.value),defaultValue:this.props.search.defaultValue}))))))}}var m=Object(l["c"])(e=>{var t=e.layout,n=e.user;return{layout:t,user:n}})(p);var g=n("+Gva"),v=window.settings.theme;class y extends o.a.Component{componentDidMount(){window.scrollTo(0,0)}render(){return o.a.createElement(r["a"],{locale:g["a"]},o.a.createElement("div",{id:"page-container",className:"sidebar-o ".concat("dark"===v.sidebar?"sidebar-dark":""," ").concat("dark"===v.header?"page-header-dark":""," side-scroll page-header-fixed main-content-boxed side-trans-enabled ").concat(this.props.layout.showNav&&"sidebar-o-xs")},o.a.createElement("div",{onClick:()=>this.props.dispatch({type:"layout/showNav"}),className:"v2board-nav-mask",style:{display:this.props.layout.showNav?"block":"none"}}),o.a.createElement(u,this.props),o.a.createElement(m,{search:this.props.search,title:this.props.title}),this.props.loading?o.a.createElement("main",{id:"main-container"},o.a.createElement("div",{className:"content content-full text-center pt-5"},o.a.createElement("div",{className:"spinner-grow text-primary",role:"status"},o.a.createElement("span",{className:"sr-only"},"Loading...")))):o.a.createElement("main",{id:"main-container"},o.a.createElement("div",{className:"p-0 p-lg-4"},this.props.children))))}}t["a"]=Object(l["c"])(e=>{var t=e.layout;return{layout:t}})(y)},BnQZ:function(e,t,n){var r=n("2a/h"),i=n("gL7N")("iterator"),o=n("yw4e");e.exports=n("bV5f").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},Bq2U:function(e,t,n){"use strict";var r={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-r.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*r.bounceIn(2*e):.5*r.bounceOut(2*e-1)+.5}},i=r,o=n("bYtY"),a=n("s2Iz"),s=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||o["G"],this.ondestroy=e.ondestroy||o["G"],this.onrestart=e.onrestart||o["G"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(o["u"])(e)?e:i[e]||Object(a["a"])(e)},e}(),l=s,c=n("Qe9p"),u=n("einR");n.d(t,"a",function(){return b});var h=Array.prototype.slice;function f(e,t,n){return(t-e)*n+e}function d(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,s=r.length,l=!1,h=T,f=t;if(Object(o["s"])(t)){var d=x(t);h=d,(1===d&&!Object(o["w"])(t[0])||2===d&&!Object(o["w"])(t[0][0]))&&(l=!0)}else if(Object(o["w"])(t)&&!Object(o["k"])(t))h=_;else if(Object(o["y"])(t))if(isNaN(+t)){var p=c["d"](t);p&&(f=p,h=C)}else h=_;else if(Object(o["v"])(t)){var m=Object(o["l"])({},f);m.colorStops=Object(o["D"])(t.colorStops,function(e){return{offset:e.offset,color:c["d"](e.color)}}),Object(u["m"])(t)?h=k:Object(u["o"])(t)&&(h=O),f=m}0===s?this.valType=h:h===this.valType&&h!==T||(l=!0),this.discrete=this.discrete||l;var g={time:e,value:f,rawValue:t,percent:0};return n&&(g.easing=n,g.easingFunc=Object(o["u"])(n)?n:i[n]||Object(a["a"])(n)),r.push(g),g},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=P(r),l=A(r),c=0;c=0;n--)if(c[n].percent<=t)break;n=v(n,u-2)}else{for(n=g;nt)break;n=v(n-1,u-2)}i=c[n+1],r=c[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var b=i.percent-r.percent,x=0===b?1:v((t-r.percent)/b,1);i.easingFunc&&(x=i.easingFunc(x));var _=a?this._additiveValue:m?M:e[h];if(!P(l)&&!m||_||(_=this._additiveValue=[]),this.discrete)e[h]=x<1?r.rawValue:i.rawValue;else if(P(l))l===E?d(_,r[s],i[s],x):p(_,r[s],i[s],x);else if(A(l)){var S=r[s],O=i[s],T=l===k;e[h]={type:T?"linear":"radial",x:f(S.x,O.x,x),y:f(S.y,O.y,x),colorStops:Object(o["D"])(S.colorStops,function(e,t){var n=O.colorStops[t];return{offset:f(e.offset,n.offset,x),color:w(d([],e.color,n.color,x))}}),global:O.global},T?(e[h].x2=f(S.x2,O.x2,x),e[h].y2=f(S.y2,O.y2,x)):e[h].r=f(S.r,O.r,x)}else if(m)d(_,r[s],i[s],x),a||(e[h]=w(_));else{var R=f(r[s],i[s],x);a?this._additiveValue=R:e[h]=R}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===_?e[n]=e[n]+r:t===C?(c["d"](e[n],M),m(M,M,r,1),e[n]=w(M)):t===E?m(e[n],e[n],r,1):t===S&&g(e[n],e[n],r,1)},e}(),j=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(o["C"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(o["B"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,b(l),r),this._trackKeys.push(a)}s.addKeyframe(e,b(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var s=a.pop();i.addKeyframe(s.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();t["b"]=j},BsWD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("a3WO");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(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)?Object(r["a"])(e,t):void 0}}},Bus3:function(e,t,n){n("Jaki")("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},Bz7s:function(e,t,n){n("8Z/V")&&"g"!=/./g.flags&&n("V5/1").f(RegExp.prototype,"flags",{configurable:!0,get:n("7tNx")})},CTsd:function(e,t,n){var r=n("OeOC"),i=n("9HFh").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},CfL3:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("8BMt"),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},CgOb:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("BoS7"),n("Sdc0")),a=(n("5Dmo"),n("3S7+")),s=(n("Pwec"),n("CtXQ")),l=(n("OaEy"),n("2fM7")),c=(n("iQDF"),n("+eQT")),u=(n("5NDa"),n("5rEg")),h=n("p0pE"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("/MKj"),g=n("wd/R"),v=n.n(g);class y extends p.a.Component{constructor(e){super(e),this.state={visible:!1}}show(){this.props.userId&&this.setState({visible:!0},()=>{this.props.dispatch({type:"user/getUserInfoById",id:this.props.userId})})}hide(){this.setState({visible:!1},()=>{this.props.dispatch({type:"user/setState",payload:{user:{}}})})}formChange(e,t){this.props.dispatch({type:"user/setState",payload:{user:f()({},this.props.user.user,{[e]:t})}})}submit(){var e=f()({},this.props.user.user);this.props.dispatch({type:"user/update",params:e,callback:()=>{this.hide()}})}render(){var e=this.props.user,t=e.user,n=e.updateLoading,h=this.props.plan.plans,f=this.state.visible;return p.a.createElement(p.a.Fragment,null,p.a.cloneElement(this.props.children,{onClick:()=>this.show()}),p.a.createElement(r["a"],{id:"user",width:"80%",title:"\u7528\u6237\u7ba1\u7406",visible:f,onClose:()=>this.hide(),cancelText:"\u53d6\u6d88"},t.email?p.a.createElement("div",null,p.a.createElement("div",null,p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u90ae\u7bb1"),p.a.createElement(u["a"],{placeholder:"\u8bf7\u8f93\u5165\u90ae\u7bb1",defaultValue:t.email,onChange:e=>this.formChange("email",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u9080\u8bf7\u4eba\u90ae\u7bb1"),p.a.createElement(u["a"],{placeholder:"\u8bf7\u8f93\u5165\u9080\u8bf7\u4eba\u90ae\u7bb1",defaultValue:t.invite_user_email,onChange:e=>this.formChange("invite_user_email",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u5bc6\u7801"),p.a.createElement(u["a"],{defaultValue:t.password,placeholder:"\u5982\u9700\u4fee\u6539\u5bc6\u7801\u8bf7\u8f93\u5165",onChange:e=>this.formChange("password",e.target.value)})),p.a.createElement("div",{className:"row"},p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u4f59\u989d"),p.a.createElement(u["a"],{type:"number",addonAfter:"\xa5",placeholder:"\u4f59\u989d",defaultValue:t.balance,onChange:e=>this.formChange("balance",e.target.value)})),p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u63a8\u5e7f\u4f63\u91d1"),p.a.createElement(u["a"],{type:"number",addonAfter:"\xa5",placeholder:"\u63a8\u5e7f\u4f63\u91d1",defaultValue:t.commission_balance,onChange:e=>this.formChange("commission_balance",e.target.value)}))),p.a.createElement("div",{className:"row"},p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u5df2\u7528\u4e0a\u884c"),p.a.createElement(u["a"],{type:"number",addonAfter:"GB",placeholder:"\u5df2\u7528\u4e0a\u884c",defaultValue:t.u,onChange:e=>this.formChange("u",e.target.value)})),p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u5df2\u7528\u4e0b\u884c"),p.a.createElement(u["a"],{type:"number",addonAfter:"GB",placeholder:"\u5df2\u7528\u4e0b\u884c",defaultValue:t.d,onChange:e=>this.formChange("d",e.target.value)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u6d41\u91cf"),p.a.createElement(u["a"],{type:"number",addonAfter:"GB",defaultValue:t.transfer_enable,placeholder:"\u8bf7\u8f93\u5165\u6d41\u91cf",onChange:e=>this.formChange("transfer_enable",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u5230\u671f\u65f6\u95f4"),p.a.createElement("div",null,p.a.createElement(c["a"],{placeholder:"\u957f\u671f\u6709\u6548",defaultValue:null!==t.expired_at&&v()(1e3*t.expired_at),style:{width:"100%"},onChange:e=>this.formChange("expired_at",e?e.format("X"):null)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u8ba2\u9605\u8ba1\u5212"),p.a.createElement(l["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u8ba2\u9605\u8ba1\u5212",style:{width:"100%"},defaultValue:t.plan_id||null,onChange:e=>this.formChange("plan_id",e)},p.a.createElement(l["a"].Option,{value:null},"\u65e0"),h.map(e=>{return p.a.createElement(l["a"].Option,{key:Math.random(),value:e.id},e.name)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u8d26\u6237\u72b6\u6001"),p.a.createElement(l["a"],{style:{width:"100%"},defaultValue:t.banned?1:0,onChange:e=>this.formChange("banned",e)},p.a.createElement(l["a"].Option,{key:1,value:1},"\u5c01\u7981"),p.a.createElement(l["a"].Option,{key:0,value:0},"\u6b63\u5e38"))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u63a8\u8350\u8fd4\u5229\u7c7b\u578b"),p.a.createElement(l["a"],{style:{width:"100%"},defaultValue:parseInt(t.commission_type),onChange:e=>this.formChange("commission_type",e)},p.a.createElement(l["a"].Option,{key:0,value:0},"\u8ddf\u968f\u7cfb\u7edf\u8bbe\u7f6e"),p.a.createElement(l["a"].Option,{key:1,value:1},"\u5faa\u73af\u8fd4\u5229"),p.a.createElement(l["a"].Option,{key:2,value:2},"\u9996\u6b21\u8fd4\u5229"))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u63a8\u8350\u8fd4\u5229\u6bd4\u4f8b"),p.a.createElement(u["a"],{addonAfter:"%",defaultValue:t.commission_rate,placeholder:"\u8bf7\u8f93\u5165\u63a8\u8350\u8fd4\u5229\u6bd4\u4f8b(\u4e3a\u7a7a\u5219\u8ddf\u968f\u7ad9\u70b9\u8bbe\u7f6e\u8fd4\u5229\u6bd4\u4f8b)",onChange:e=>this.formChange("commission_rate",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u4e13\u4eab\u6298\u6263\u6bd4\u4f8b ",p.a.createElement(a["a"],{placement:"top",title:"\u8bbe\u7f6e\u540e\u8be5\u7528\u6237\u8d2d\u4e70\u4efb\u4f55\u8ba2\u9605\u5c06\u59cb\u7ec8\u4eab\u53d7\u8be5\u6298\u6263"},p.a.createElement(s["a"],{type:"question-circle"}))),p.a.createElement(u["a"],{addonAfter:"%",defaultValue:t.discount,placeholder:"\u8bf7\u8f93\u5165\u4e13\u4eab\u6298\u6263\u6bd4\u4f8b",onChange:e=>this.formChange("discount",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u662f\u5426\u7ba1\u7406\u5458"),p.a.createElement("div",null,p.a.createElement(o["a"],{checked:t.is_admin,onChange:e=>this.formChange("is_admin",e?1:0)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u662f\u5426\u5458\u5de5"),p.a.createElement("div",null,p.a.createElement(o["a"],{checked:t.is_staff,onChange:e=>this.formChange("is_staff",e?1:0)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5907\u6ce8"),p.a.createElement("div",null,p.a.createElement(u["a"].TextArea,{rows:4,placeholder:"\u8bf7\u5728\u8fd9\u91cc\u8bb0\u5f55..",defaultValue:t.remarks,onChange:e=>this.formChange("remarks",e.target.value)})))),p.a.createElement("div",{className:"v2board-drawer-action"},p.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.hide()},"\u53d6\u6d88"),p.a.createElement(i["a"],{disabled:n,loading:n,onClick:()=>this.submit(),type:"primary"},"\u63d0\u4ea4"))):p.a.createElement(s["a"],{type:"loading",style:{fontSize:24,color:"#415A94"}})))}}t["a"]=Object(m["c"])(e=>{var t=e.user,n=e.plan;return{user:t,plan:n}})(y)},Cit5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n("q1tI")),s=i(n("17x9")),l=o(n("TSYQ")),c=n("6Ogq"),u=o(n("UNrv"));function h(e,t){var n=t.table,i=n.props,o=i.prefixCls,s=i.scroll,h=i.showHeader,f=e.columns,d=e.fixed,p=e.tableClassName,m=e.handleBodyScrollLeft,g=e.expander,v=n.saveRef,y=n.props.useFixedHeader,b={},w=c.measureScrollbar({direction:"vertical"});if(s.y){y=!0;var x=c.measureScrollbar({direction:"horizontal",prefixCls:o});x>0&&!d&&(b.marginBottom="-".concat(x,"px"),b.paddingBottom="0px",b.minWidth="".concat(w,"px"),b.overflowX="scroll",b.overflowY=0===w?"hidden":"scroll")}return y&&h?a.createElement("div",{key:"headTable",ref:d?null:v("headTable"),className:l.default("".concat(o,"-header"),r({},"".concat(o,"-hide-scrollbar"),w>0)),style:b,onScroll:m},a.createElement(u.default,{tableClassName:p,hasHead:!0,hasBody:!1,fixed:d,columns:f,expander:g})):null}t.default=h,h.contextTypes={table:s.any}},CnBM:function(e,t,n){"use strict";var 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};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n("q1tI"),l=n("17x9"),c=[],u=[];function h(e){return"object"===r(n.m)&&e().every(function(e){return"undefined"!==typeof e&&"undefined"!==typeof n.m[e]})}function f(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}function d(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach(function(r){var i=f(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then(function(e){t.loaded[r]=e}).catch(function(e){t.error=e})})}catch(e){t.error=e}return t.promise=Promise.all(n).then(function(e){return t.loading=!1,e}).catch(function(e){throw t.loading=!1,e}),t}function p(e){return e&&e.__esModule?e.default:e}function m(e,t){return s.createElement(p(e),t)}function g(e,t){var n,r;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var f=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:m,webpack:null,modules:null},t),d=null;function p(){return d||(d=e(f.loader)),d.promise}return c.push(p),"function"===typeof f.webpack&&u.push(function(){if(h(f.webpack))return p()}),r=n=function(t){function n(r){i(this,n);var a=o(this,t.call(this,r));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),d=e(f.loader),a._loadModule()},p(),a.state={error:d.error,pastDelay:!1,timedOut:!1,loading:d.loading,loaded:d.loaded},a}return a(n,t),n.preload=function(){return p()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(f.modules)&&f.modules.forEach(function(t){e.context.loadable.report(t)}),d.loading){"number"===typeof f.delay&&(0===f.delay?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){e.setState({pastDelay:!0})},f.delay)),"number"===typeof f.timeout&&(this._timeout=setTimeout(function(){e.setState({timedOut:!0})},f.timeout));var t=function(){e._mounted&&(e.setState({error:d.error,loaded:d.loaded,loading:d.loading}),e._clearTimeouts())};d.promise.then(function(){t()}).catch(function(e){t()})}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?s.createElement(f.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?f.render(this.state.loaded,this.props):null},n}(s.Component),n.contextTypes={loadable:l.shape({report:l.func.isRequired})},r}function v(e){return g(f,e)}function y(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return g(d,e)}v.Map=y;var b=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function w(e){var t=[];while(e.length){var n=e.pop();t.push(n())}return Promise.all(t).then(function(){if(e.length)return w(e)})}b.propTypes={report:l.func.isRequired},b.childContextTypes={loadable:l.shape({report:l.func.isRequired}).isRequired},v.Capture=b,v.preloadAll=function(){return new Promise(function(e,t){w(c).then(e,t)})},v.preloadReady=function(){return new Promise(function(e,t){w(u).then(e,e)})},e.exports=v},Crw4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=M;var r=o(n("q1tI")),i=n("6YkS");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){"@babel/helpers - typeof";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 s(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,l,"next",e)}function l(e){s(o,r,i,a,l,"throw",e)}a(void 0)})}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function S(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var C={get:function(e){return e._routeInternalComponent},has:function(e){return void 0!==e._routeInternalComponent},set:function(e,t){e._routeInternalComponent=t}},k=function(e){var t=e.path,n=e.exact,o=e.strict,a=e.render,s=e.location,l=e.sensitive,c=E(e,["path","exact","strict","render","location","sensitive"]);return r.default.createElement(i.Route,{path:t,exact:n,strict:o,location:s,sensitive:l,render:function(e){return a(x({},e,{},c))}})};function O(e){var t={};return t}function T(e){if(C.has(e))return C.get(e);var t=e.Routes,n=t.length-1,i=function(e){var t=e.render,n=E(e,["render"]);return t(n)},o=function(){var e=t[n],o=i;i=function(t){return r.default.createElement(e,t,r.default.createElement(o,t))},n-=1};while(n>=0)o();var a=function(t){var n=t.render,o=E(t,["render"]);return r.default.createElement(k,b({},o,{render:function(t){return r.default.createElement(i,b({},t,{route:e,render:n}))}}))};return C.set(e,a),a}var A=!1;function P(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=function(n){f(a,n);var o=p(a);function a(e){var t;return c(this,a),t=o.call(this,e),t.wrappedWithInitialProps=!0,t.state={extraProps:x({},i)},A||(A=!window.g_useSSR||e.history&&"POP"!==e.history.action),t}return h(a,[{key:"componentDidMount",value:function(){var e=l(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:A&&this.getInitialProps();case 1:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"componentDidUpdate",value:function(e){var t=this.props.location;e.location.pathname!==t.pathname&&(A=!0,this.getInitialProps())}},{key:"componentWillUnmount",value:function(){A=!0}},{key:"getInitialProps",value:function(){var n=l(regeneratorRuntime.mark(function n(){var r,i,o,a,s;return regeneratorRuntime.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=this.props,i=r.match,o=r.location,a=this.state.extraProps,this.setState({extraProps:x({},a,{fetchingProps:!0})}),n.next=5,e.getInitialProps(x({isServer:!1,route:i,location:o,prevInitialProps:a},t));case 5:if(n.t0=n.sent,n.t0){n.next=8;break}n.t0={};case 8:s=n.t0,s.fetchingProps=!1,this.setState({extraProps:s});case 11:case"end":return n.stop()}},n,this)}));function r(){return n.apply(this,arguments)}return r}()},{key:"render",value:function(){return r.default.createElement(e,x({},this.props,{},this.state.extraProps))}}]),a}(r.default.Component),n}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n("PszG");return e?r.default.createElement(i.Switch,o,e.map(function(e,n){if(e.redirect)return r.default.createElement(i.Redirect,{key:e.key||n,from:e.path,to:e.redirect,exact:e.exact,strict:e.strict});var o=e.Routes?T(e):k;return r.default.createElement(o,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,sensitive:e.sensitive,render:function(n){var i=n.location;A&&(t={});var o=M(e.routes,t,{location:i});if(e.component){var s=O(x({},n,{},t)),l=a.apply("modifyRouteProps",{initialValue:x({},n,{},t,{},s),args:{route:e}}),c=e.component;if(c.getInitialProps){var u=a.apply("modifyInitialProps",{initialValue:{}});c.wrappedWithInitialProps||(c=P(c,u,t),e.component=c)}return r.default.createElement(c,b({key:e.path},l,{route:e}),o)}return o}})})):null}},Ctgt:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("VCL8");function l(){return l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!g(p(this,t),e)}}),f&&r(u.prototype,"size",{get:function(){return p(this,t)[m]}}),u},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))},n?"entries":"values",!n,!0),h(t)}}},CxY0:function(e,t,n){"use strict";var r=n("GYWy"),i=n("Nehr");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=x,t.resolve=E,t.resolveObject=S,t.format=_,t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["<",">",'"',"`"," ","\r","\n","\t"],u=["{","}","|","\\","^","`"].concat(c),h=["'"].concat(u),f=["%","/","?",";","#"].concat(h),d=["/","?","#"],p=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=n("s4NR");function x(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}function _(e){return i.isString(e)&&(e=x(e)),e instanceof o?e.format():o.prototype.format.call(e)}function E(e,t){return x(e,!1,!0).resolve(t)}function S(e,t){return e?x(e,!1,!0).resolveObject(t):t}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?D+="x":D+=L[N];if(!D.match(m)){var $=R.slice(0,A),F=R.slice(A+1),B=L.match(g);B&&($.push(B[1]),F.unshift(B[2])),F.length&&(x="/"+F.join(".")+x),this.hostname=$.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var V=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+V,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!v[S])for(A=0,j=h.length;A0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===k||".."===k)||""===k,T=0,A=E.length;A>=0;A--)k=E[A],"."===k?E.splice(A,1):".."===k?(E.splice(A,1),T++):T&&(E.splice(A,1),T--);if(!x&&!_)for(;T--;T)E.unshift("..");!x||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var P=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(S){n.hostname=n.host=P?"":E.length?E.shift():"";C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return x=x||n.host&&E.length,x&&!P&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},D8kY:function(e,t,n){var r=n("Ojgd"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},DBt0:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("il4q"),o=n("OsVd"),a=n("AUWw"),s=n("ETUh"),l=n("bsDr"),c=Math.max,u=Math.min,h=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("h7Gi")("replace",2,function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var h=r(e),f=String(this),d="function"===typeof t;d||(t=String(t));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}var b=[];while(1){var w=l(h,f);if(null===w)break;if(b.push(w),!v)break;var x=String(w[0]);""===x&&(h.lastIndex=s(f,o(h.lastIndex),y))}for(var _="",E=0,S=0;S=E&&(_+=f.slice(E,k)+M,E=k+C.length)}return _+f.slice(E)}];function g(e,t,r,o,a,s){var l=r+e.length,c=o.length,u=d;return void 0!==a&&(a=i(a),u=f),n.call(s,u,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var f=h(u/10);return 0===f?n:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s})}})},DFAo:function(e,t,n){"use strict";n("Bz7s");var r=n("7vYJ"),i=n("7tNx"),o=n("8Z/V"),a="toString",s=/./[a],l=function(e){n("rKIl")(RegExp.prototype,a,e,!0)};n("wUWy")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&l(function(){return s.call(this)})},DIcO:function(e,t,n){var r=n("gL7N")("unscopables"),i=Array.prototype;void 0==i[r]&&n("VPOE")(i,r,{}),e.exports=function(e){i[r][e]=!0}},DN2a:function(e,t){window.MutationObserver||(window.MutationObserver=function(e){function t(e){this.i=[],this.m=e}function n(e){(function n(){var r=e.takeRecords();r.length&&e.m(r,e),e.h=setTimeout(n,t._period)})()}function r(t){var n,r={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(n in t)r[n]!==e&&t[n]!==e&&(r[n]=t[n]);return r}function i(e,t){var n=c(e,t);return function(i){var o=i.length;if(t.a&&3===e.nodeType&&e.nodeValue!==n.a&&i.push(new r({type:"characterData",target:e,oldValue:n.a})),t.b&&n.b&&s(i,e,n.b,t.f),t.c||t.g)var a=l(i,e,n,t);(a||i.length!==o)&&(n=c(e,t))}}function o(e,t){return t.value}function a(e,t){return"style"!==t.name?t.value:e.style.cssText}function s(t,n,i,o){for(var a,s,l={},c=n.attributes,u=c.length;u--;)a=c[u],s=a.name,o&&o[s]===e||(m(n,a)!==i[s]&&t.push(r({type:"attributes",target:n,attributeName:s,oldValue:i[s],attributeNamespace:a.namespaceURI})),l[s]=!0);for(s in i)l[s]||t.push(r({target:n,type:"attributes",attributeName:s,oldValue:i[s]}))}function l(t,n,i,o){function a(e,n,i,a,c){var u,h,f,d=e.length-1;for(c=-~((d-c)/2);f=e.pop();)u=i[f.j],h=a[f.l],o.c&&c&&Math.abs(f.j-f.l)>=d&&(t.push(r({type:"childList",target:n,addedNodes:[u],removedNodes:[u],nextSibling:u.nextSibling,previousSibling:u.previousSibling})),c--),o.b&&h.b&&s(t,u,h.b,o.f),o.a&&3===u.nodeType&&u.nodeValue!==h.a&&t.push(r({type:"characterData",target:u,oldValue:h.a})),o.g&&l(u,h)}function l(n,i){for(var h,f,p,m,g,v=n.childNodes,y=i.c,b=v.length,w=y?y.length:0,x=0,_=0,E=0;_2&&l.push(t),t=[e,n]}function p(e,n,r,i){v(e,r)&&v(n,i)||t.push(e,n,r,i,r,i)}function m(e,n,r,i,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=nk:A2&&l.push(t),l}function b(e,t,n,i,o,a,s,l,c,u){if(v(e,n)&&v(t,i)&&v(o,s)&&v(a,l))c.push(s,l);else{var h=2/u,f=h*h,d=s-e,p=l-t,m=Math.sqrt(d*d+p*p);d/=m,p/=m;var g=n-e,y=i-t,w=o-s,x=a-l,_=g*g+y*y,E=w*w+x*x;if(_=0&&O=0)c.push(s,l);else{var T=[],A=[];Object(r["g"])(e,n,o,s,.5,T),Object(r["g"])(t,i,a,l,.5,A),b(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],c,u),b(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],c,u)}}}}function w(e,t){var n=y(e),r=[];t=t||1;for(var i=0;i0)for(c=0;cMath.abs(c),h=x([l,c],u?0:1,t),f=(u?s:c)/h.length,d=0;di,a=x([r,i],o?0:1,t),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=e[s]/a.length,f=0;f1?null:new h["a"](g*l+e,g*c+t)}function k(e,t,n){var r=new h["a"];h["a"].sub(r,n,t),r.normalize();var i=new h["a"];h["a"].sub(i,e,t);var o=i.dot(r);return o}function O(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function T(e,t,n){for(var r=e.length,i=[],o=0;oa?(f.x=d.x=s+o/2,f.y=l,d.y=l+a):(f.y=d.y=l+a/2,f.x=s,d.x=s+o),T(t,f,d)}function P(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),o=e(t);P(e,o[0],i,r),P(e,o[1],n-i,r)}return r}function M(e,t){for(var n=[],r=0;r0)for(var x=r/n,_=-r/2;_<=r/2;_+=x){var E=Math.sin(_),S=Math.cos(_),C=0;for(b=0;b0;c/=2){var u=0,h=0;(e&c)>0&&(u=1),(t&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function X(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(o["D"])(e,function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}),s=Object(o["D"])(a,function(o,a){return{cp:o,z:Y(o[0],o[1],t,n,r,i),path:e[a]}});return s.sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function Q(e){return L(e.path,e.count)}function Z(){return{fromIndividuals:[],toIndividuals:[],count:0}}function J(e,t,n){var r=[];function a(e){for(var t=0;t=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(f.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,f.supportsGoWithoutReloadUsingHash)(),i=e.getUserConfirmation,a=void 0===i?f.getConfirmation:i,u=e.hashType,d=void 0===u?"slash":u,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",w=m[d],x=w.encodePath,_=w.decodePath,E=function(){var e=_(g());return(0,o.default)(!b||(0,c.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,c.stripBasename)(e,b)),(0,l.createLocation)(e)},S=(0,h.default)(),C=function(e){r(q,e),q.length=t.length,S.notifyListeners(q.location,q.action)},k=!1,O=null,T=function(){var e=g(),t=x(e);if(e!==t)y(t);else{var n=E(),r=q.location;if(!k&&(0,l.locationsAreEqual)(r,n))return;if(O===(0,c.createPath)(n))return;O=null,A(n)}},A=function(e){if(k)k=!1,C();else{var t="POP";S.confirmTransitionTo(e,t,a,function(n){n?C({action:t,location:e}):P(e)})}},P=function(e){var t=q.location,n=L.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=L.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var i=n-r;i&&(k=!0,$(i))},M=g(),R=x(M);M!==R&&y(R);var j=E(),L=[(0,c.createPath)(j)],D=function(e){return"#"+x(b+(0,c.createPath)(e))},N=function(e,t){(0,o.default)(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=(0,l.createLocation)(e,void 0,void 0,q.location);S.confirmTransitionTo(r,n,a,function(e){if(e){var t=(0,c.createPath)(r),i=x(b+t),a=g()!==i;if(a){O=t,v(i);var s=L.lastIndexOf((0,c.createPath)(q.location)),l=L.slice(0,-1===s?0:s+1);l.push(t),L=l,C({action:n,location:r})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),C()}})},I=function(e,t){(0,o.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=(0,l.createLocation)(e,void 0,void 0,q.location);S.confirmTransitionTo(r,n,a,function(e){if(e){var t=(0,c.createPath)(r),i=x(b+t),o=g()!==i;o&&(O=t,y(i));var a=L.indexOf((0,c.createPath)(q.location));-1!==a&&(L[a]=t),C({action:n,location:r})}})},$=function(e){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},F=function(){return $(-1)},B=function(){return $(1)},V=0,W=function(e){V+=e,1===V?window.addEventListener(p,T):0===V&&window.removeEventListener(p,T)},H=!1,U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=S.setPrompt(e);return H||(W(1),H=!0),function(){return H&&(H=!1,W(-1)),t()}},z=function(e){var t=S.appendListener(e);return W(1),function(){W(-1),t()}},q={length:t.length,action:"POP",location:j,createHref:D,push:N,replace:I,go:$,goBack:F,goForward:B,block:U,listen:z};return q};t.default=b},ERIh:function(e,t,n){"use strict";n.r(t),n.d(t,"dva",function(){return h});var r=n("yWgo"),i=n("nDCI"),o=n("wd/R"),a=n.n(o),s=(n("XDpg"),window.settings),l=s.theme,c=s.host,u=document.createElement("link");u.rel="stylesheet",u.href=c?"./theme/".concat(l.color,".css"):"./assets/admin/theme/".concat(l.color,".css"),document.getElementsByTagName("head")[0].appendChild(u),a.a.locale("zh-cn"),"1"===Object(r["d"])("dark_mode")&&Object(i["enable"])({brightness:100,contrast:90,sepia:10});var h={config:{onError(e){e.preventDefault()}}}},ETUh:function(e,t,n){"use strict";var r=n("6RnP")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},EVqI:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t{return e.is_me?o.a.createElement("div",null,o.a.createElement("div",{className:"font-size-sm text-muted my-2 text-right"},h()(1e3*e.created_at).format("YYYY/MM/DD HH:mm")),o.a.createElement("div",{className:"text-right ml-4"},o.a.createElement("div",{className:"d-inline-block bg-gray-lighter px-3 py-2 mb-2 mw-100 rounded text-left"},e.message))):o.a.createElement("div",null,o.a.createElement("div",{className:"font-size-sm text-muted my-2"},h()(1e3*e.created_at).format("YYYY/MM/DD HH:mm")),o.a.createElement("div",{className:"mr-4"},o.a.createElement("div",{className:"d-inline-block bg-success-lighter px-3 py-2 mb-2 mw-100 rounded text-left"},e.message)))})),o.a.createElement("div",{className:"js-chat-form block-content p-2 bg-body-dark ".concat(d.a.input)},o.a.createElement("input",{onKeyDown:e=>this.props.onKeyDown(e,()=>{this.refs.message&&(this.refs.message.value="")}),ref:"message",type:"text",className:"js-chat-input bg-body-dark border-0 form-control form-control-alt",placeholder:"\u8f93\u5165\u5185\u5bb9\u56de\u590d\u5de5\u5355...",onChange:e=>this.props.onChange(e)})))}}class v extends o.a.Component{constructor(e){super(e),this.state={message:void 0,submit:{}}}componentDidMount(){this.props.dispatch({type:"ticket/fetchById",id:this.props.match.params.ticket_id}),this.props.dispatch({type:"plan/fetch"}),this.check()}check(){r=setTimeout(()=>{this.props.dispatch({type:"ticket/fetchById",id:this.props.match.params.ticket_id}),this.check()},5e3)}componentWillUnmount(){clearTimeout(r)}reply(e){this.props.dispatch({type:"ticket/reply",id:this.props.match.params.ticket_id,msg:this.state.message,callback:()=>{e()}})}render(){var e=this.props.user.user,t=this.props.ticket,n=t.ticket,r=t.replyLoading;return o.a.createElement(g,{ticket:n,user:e,onKeyDown:(e,t)=>{13!==e.keyCode||r||this.reply(t)},onChange:e=>{this.setState({message:e.target.value})}})}}t["default"]=Object(a["c"])(e=>{var t=e.user,n=e.ticket;return{user:t,ticket:n}})(v)},FYw3:function(e,t,n){"use strict";t.__esModule=!0;var r=n("EJiy"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,i.default)(t))&&"function"!==typeof t?e:t}},FfBw:function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},FlQf:function(e,t,n){"use strict";var r=n("ccE7")(!0);n("MPFp")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},Fofx:function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function a(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function l(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=r*u+a*c,e[1]=-r*c+a*u,e[2]=i*u+s*c,e[3]=-i*c+u*s,e[4]=u*o+c*l,e[5]=u*l-c*o,e}function c(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function u(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return c}),n.d(t,"d",function(){return u})},FpHa:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},FqPH:function(e,t){e.exports=!1},FwrZ:function(e,t,n){"use strict";t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var r=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}},G7Hh:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("A22h"),o=n("bsDr");n("h7Gi")("search",1,function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var u=o(s,l);return i(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]})},G8Mo:function(e,t,n){var r=n("93I4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"GB+t":function(e,t,n){"use strict";var r=function(){};e.exports=r},GYWy:function(e,t,n){(function(e,r){var i;(function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,h=26,f=38,d=700,p=72,m=128,g="-",v=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-u,_=Math.floor,E=String.fromCharCode;function S(e){throw new RangeError(w[e])}function C(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(b,".");var i=e.split("."),o=C(i,t).join(".");return r+o}function O(e){var t,n,r=[],i=0,o=e.length;while(i=55296&&t<=56319&&i65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e),t}).join("")}function A(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>x*h>>1;r+=c)e=_(e/x);return _(r+(x+1)*e/(e+f))}function R(e){var t,n,r,i,o,a,s,f,d,v,y=[],b=e.length,w=0,x=m,E=p;for(n=e.lastIndexOf(g),n<0&&(n=0),r=0;r=128&&S("not-basic"),y.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=b&&S("invalid-input"),f=A(e.charCodeAt(i++)),(f>=c||f>_((l-w)/a))&&S("overflow"),w+=f*a,d=s<=E?u:s>=E+h?h:s-E,f_(l/v)&&S("overflow"),a*=v}t=y.length+1,E=M(w-o,t,0==o),_(w/t)>l-x&&S("overflow"),x+=_(w/t),w%=t,y.splice(w++,0,x)}return T(y)}function j(e){var t,n,r,i,o,a,s,f,d,v,y,b,w,x,C,k=[];for(e=O(e),b=e.length,t=m,n=0,o=p,a=0;a=t&&y_((l-n)/w)&&S("overflow"),n+=(s-t)*w,t=s,a=0;al&&S("overflow"),y==t){for(f=n,d=c;;d+=c){if(v=d<=o?u:d>=o+h?h:d-o,f{Object.keys(l["a"].periodText).forEach(t=>{null!==e[t]&&(e[t]=null!==e[t]?e[t]/100:null)})}),e.next=13,n({type:"setState",payload:{plans:r.data}});case 13:case"end":return e.stop()}},e)})()},save(e,t){return i.a.mark(function n(){var r,o,a,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return Object.keys(l["a"].periodText).forEach(e=>{null!==r[e]&&(r[e]=null!==r[e]?Math.round(100*r[e]):null)}),n.next=7,Object(s["b"])("/admin/plan/save",r);case 7:return c=n.sent,n.next=10,a({type:"setState",payload:{saveLoading:!1}});case 10:if(200===c.code){n.next=12;break}return n.abrupt("return");case 12:return n.next=14,a({type:"fetch"});case 14:"function"===typeof o&&o();case 15:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/plan/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/plan/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},sort(e,t){return i.a.mark(function n(){var r,o,a,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.fromIndex,o=e.toIndex,a=t.select,l=t.put,n.next=4,l({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,a(e=>e.plan);case 6:return c=n.sent,u=c.plans,re.id)});case 13:if(h=n.sent,200===h.code){n.next=16;break}return n.abrupt("return");case 16:return n.next=18,l({type:"fetch"});case 18:case"end":return n.stop()}},n)})()}}}},GrtH:function(e,t,n){"use strict";n.d(t,"e",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"b",function(){return h}),n.d(t,"h",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"g",function(){return g}),n.d(t,"a",function(){return v});var r=n("QbLZ"),i=n.n(r),o=n("wd/R"),a=n.n(o),s={disabledHours:function(){return[]},disabledMinutes:function(){return[]},disabledSeconds:function(){return[]}};function l(e){var t=a()();return t.locale(e.locale()).utcOffset(e.utcOffset()),t}function c(e){return e.format("LL")}function u(e){var t=l(e);return c(t)}function h(e){var t=e.locale(),n=e.localeData();return n["zh-cn"===t?"months":"monthsShort"](e)}function f(e,t){a.a.isMoment(e)&&a.a.isMoment(t)&&(t.hour(e.hour()),t.minute(e.minute()),t.second(e.second()),t.millisecond(e.millisecond()))}function d(e,t){var n=t?t(e):{};return n=i()({},s,n),n}function p(e,t){var n=!1;if(e){var r=e.hour(),i=e.minute(),o=e.second(),a=t.disabledHours();if(-1===a.indexOf(r)){var s=t.disabledMinutes(r);if(-1===s.indexOf(i)){var l=t.disabledSeconds(r,i);n=-1!==l.indexOf(o)}else n=!0}else n=!0}return!n}function m(e,t){var n=d(e,t);return p(e,n)}function g(e,t,n){return(!t||!t(e))&&!(n&&!m(e,n))}function v(e,t){return e?(Array.isArray(t)&&(t=t[0]),e.format(t)):""}},GsrZ:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},Gytx:function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(h(e,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},H9LU:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("5Dmo"),n("3S7+")),a=(n("OaEy"),n("2fM7")),s=(n("5NDa"),n("5rEg")),l=n("p0pE"),c=n.n(l),u=n("q1tI"),h=n.n(u),f=n("/MKj"),d=(n("lc5D"),n("VeWa"),n("umNf"),n("8zNj"));class p extends h.a.Component{constructor(e){super(e),this.state={server:this.props.record||{cipher:"chacha20-ietf-poly1305",rate:1},visible:!1,childDrawer:{visible:!1}}}onShow(){this.setState({visible:!this.state.visible})}save(){var e=this.state.server;this.props.dispatch({type:"serverShadowsocks/save",params:e,callback:()=>{this.onShow()}})}showChildDrawer(e,t){this.setState({childDrawer:c()({},this.state.childDrawer,{visible:!this.state.childDrawer.visible,title:e,type:t})})}changeServer(e,t){this.setState({server:c()({},this.state.server,{[e]:t})})}formChange(e,t){this.setState({server:c()({},this.state.server,{[e]:t})})}setObfsSettings(e,t){var n=this.state.server,r=n.obfs_settings||{};r[e]=t,this.setState({server:c()({},this.state.server,{obfs_settings:r})})}renderObfs(){var e=this.state.server;switch(e.obfs){case"http":var t,n;return h.a.createElement("div",{className:"row mt-2"},h.a.createElement("div",{className:"form-group col-4 mb-0"},h.a.createElement(s["a"],{placeholder:"\u8def\u5f84",value:null===(t=e.obfs_settings)||void 0===t?void 0:t.path,onChange:e=>this.setObfsSettings("path",e.target.value)})),h.a.createElement("div",{className:"form-group col-8 mb-0"},h.a.createElement(s["a"],{placeholder:"Host",value:null===(n=e.obfs_settings)||void 0===n?void 0:n.host,onChange:e=>this.setObfsSettings("host",e.target.value)})))}}render(){var e=this.state.server,t=this.props.serverShadowsocks.saveLoading,n=this.props.serverManage.servers,l=this.props.serverGroup.groups;return h.a.createElement(h.a.Fragment,null,h.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),h.a.createElement(r["a"],{id:"server",maskClosable:!0,title:e.id?"\u7f16\u8f91\u8282\u70b9":"\u65b0\u5efa\u8282\u70b9",width:"80%",visible:this.state.visible,onClose:()=>this.onShow()},h.a.createElement("div",null,h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"form-group col-8"},h.a.createElement("label",null,"\u8282\u70b9\u540d\u79f0"),h.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",value:e.name,onChange:e=>this.formChange("name",e.target.value)})),h.a.createElement("div",{className:"form-group col-4"},h.a.createElement("label",null,"\u500d\u7387"),h.a.createElement(s["a"],{addonAfter:"x",placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u500d\u7387",value:e.rate,onChange:e=>this.formChange("rate",e.target.value)}))),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u8282\u70b9\u6807\u7b7e"),h.a.createElement(a["a"],{mode:"tags",value:e.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>this.formChange("tags",e.length>0?e:null)})),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u6743\u9650\u7ec4 ",h.a.createElement(d["a"],null,h.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),h.a.createElement(a["a"],{mode:"multiple",value:e.group_id,placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},onChange:e=>this.formChange("group_id",e)},l.map(e=>{return h.a.createElement(a["a"].Option,{key:e.id},e.name)}))),h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"form-group col-md-12 col-xs-12"},h.a.createElement("label",null,"\u8282\u70b9\u5730\u5740"),h.a.createElement(s["a"],{placeholder:"\u5730\u5740\u6216IP",value:e.host,onChange:e=>this.formChange("host",e.target.value)}))),h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},h.a.createElement("label",null,"\u8fde\u63a5\u7aef\u53e3"),h.a.createElement(s["a"],{placeholder:"\u7528\u6237\u8fde\u63a5\u7aef\u53e3",value:e.port,onChange:e=>{this.formChange("port",e.target.value)}})),h.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},h.a.createElement("label",null,"\u670d\u52a1\u7aef\u53e3"),h.a.createElement(s["a"],{placeholder:"\u670d\u52a1\u7aef\u5f00\u653e\u7aef\u53e3",value:e.server_port,onChange:e=>{this.formChange("server_port",e.target.value)}}))),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u52a0\u5bc6\u7b97\u6cd5"),h.a.createElement(a["a"],{value:e.cipher,onChange:e=>this.formChange("cipher",e),style:{width:"100%"}},h.a.createElement(a["a"].Option,{value:"aes-128-gcm"},"aes-128-gcm"),h.a.createElement(a["a"].Option,{value:"aes-192-gcm"},"aes-192-gcm"),h.a.createElement(a["a"].Option,{value:"aes-256-gcm"},"aes-256-gcm"),h.a.createElement(a["a"].Option,{value:"chacha20-ietf-poly1305"},"chacha20-ietf-poly1305"),h.a.createElement(a["a"].Option,{value:"2022-blake3-aes-128-gcm"},"2022-blake3-aes-128-gcm"),h.a.createElement(a["a"].Option,{value:"2022-blake3-aes-256-gcm"},"2022-blake3-aes-256-gcm"))),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u6df7\u6dc6"),h.a.createElement(a["a"],{value:e.obfs||"",onChange:e=>this.formChange("obfs",e),style:{width:"100%"}},h.a.createElement(a["a"].Option,{value:""},"\u65e0"),h.a.createElement(a["a"].Option,{value:"http"},"HTTP")),h.a.createElement("div",null,this.renderObfs())),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,h.a.createElement(o["a"],{placement:"top"},"\u7236\u8282\u70b9 ",h.a.createElement("a",{target:"_blank",href:"https://docs.v2board.com/use/node.html#\u7236\u8282\u70b9\u4e0e\u5b50\u8282\u70b9\u5173\u7cfb",rel:"noreferrer"},"\u66f4\u591a\u89e3\u7b54"))),h.a.createElement(a["a"],{value:e.parent_id||"",onChange:e=>this.formChange("parent_id",e),style:{width:"100%"}},h.a.createElement(a["a"].Option,{value:""},"\u65e0"),n.map(t=>{if("shadowsocks"===t.type&&t.id!==e.id)return h.a.createElement(a["a"].Option,{key:Math.random(),value:t.id},t.name)})))),h.a.createElement("div",{className:"v2board-drawer-action"},h.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.onShow()},"\u53d6\u6d88"),h.a.createElement(i["a"],{loading:t,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4"))))}}t["a"]=Object(f["c"])(e=>{var t=e.serverShadowsocks,n=e.serverGroup,r=e.serverManage;return{serverShadowsocks:t,serverGroup:n,serverManage:r}})(p)},HCMe:function(e,t,n){n("Jaki")("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},HKjm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("2UD4"),i=n("jBYB"),o=n("obDU");t.default=l;var a=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"],s=["best fit","numeric"];function l(e,t){t=t||{},o.isArray(e)&&(e=e.concat()),o.defineProperty(this,"_locale",{value:this._resolveLocale(e)}),o.defineProperty(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),o.defineProperty(this,"_locales",{value:e}),o.defineProperty(this,"_fields",{value:this._findFields(this._locale)}),o.defineProperty(this,"_messages",{value:o.objCreate(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}o.defineProperty(l,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(l,"__addLocaleData",{value:function(){for(var e=0;e=0)return!0;if("string"===typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&o.arrIndexOf.call(a,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+a.join('", "')+'"')},l.prototype._resolveLocale=function(e){"string"===typeof e&&(e=[e]),e=(e||[]).concat(l.defaultLocale);var t,n,r,i,o=l.__localeData__;for(t=0,n=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+s.join('", "')+'"')},l.prototype._selectUnits=function(e){var t,n,r,i=a.filter(function(e){return e.indexOf("-short")<1});for(t=0,n=i.length;to)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&D(e)})}},D=function(e){v.call(l,function(){var t,n,r,i=e._v,o=N(e);if(o&&(t=w(function(){A?C.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=A||N(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},I=function(e){v.call(l,function(){var t;A?C.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},$=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=j(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(F,r,1),c($,r,1))}catch(e){$.call(r,e)}}):(n._v=e,n._s=1,L(n,!1))}catch(e){$.call({_w:n,_d:!1},e)}}};R||(T=function(e){p(this,T,E,"_h"),d(e),r.call(this);try{e(c(F,this,1),c($,this,1))}catch(e){$.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("zNw+")(T.prototype,{then:function(e,t){var n=M(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c($,e,1)},b.f=M=function(e){return e===T||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!R,{Promise:T}),n("lvAo")(T,E),n("gRqi")(E),a=n("bV5f")[E],h(h.S+h.F*!R,E,{reject:function(e){var t=M(this),n=t.reject;return n(e),t.promise}}),h(h.S+h.F*(s||!R),E,{resolve:function(e){return _(s&&this===a?T:this,e)}}),h(h.S+h.F*!(R&&n("cQyX")(function(e){T.all(e)["catch"](P)})),E,{all:function(e){var t=this,n=M(t),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=M(t),r=n.reject,i=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},Hfiw:function(e,t,n){var r=n("Y7ZC");r(r.S,"Object",{setPrototypeOf:n("6tYh").set})},Hsns:function(e,t,n){var r=n("93I4"),i=n("5T2Y").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},HzlJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},week:{displayName:"week",relativePeriod:"the week of {0}",relative:{0:"this week",1:"next week","-1":"last week"},relativeTime:{future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}}},"week-short":{displayName:"wk.",relativePeriod:"the week of {0}",relative:{0:"this wk.",1:"next wk.","-1":"last wk."},relativeTime:{future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}},I1u9:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("5Dmo"),n("3S7+")),a=(n("OaEy"),n("2fM7")),s=(n("5NDa"),n("5rEg")),l=(n("Pwec"),n("CtXQ")),c=n("p0pE"),u=n.n(c),h=(n("/xke"),n("TeRw")),f=n("q1tI"),d=n.n(f),p=n("/MKj"),m=(n("/zsF"),n("PArb"));class g extends d.a.Component{constructor(e){super(e),this.state={settings:this.props.settings||{servers:[],hosts:{}}}}addHost(){this.state.settings.hosts}addServer(){var e=this.state.settings.servers,t={address:"",port:53,domains:[],expectIPs:[]};e.push(t),this.setState({settings:u()({},this.state.settings,{servers:e})},()=>{this.props.onChange(this.state.settings)})}dropServer(e){var t=this.state.settings.servers;t.splice(e,1),this.setState({settings:u()({},this.state.settings,{servers:t})},()=>{this.props.onChange(this.state.settings)})}changeServer(e,t,n){var r=this.state.settings.servers;"domains"===t?r[e].domains=n.split("\n"):r[e][t]=n,this.setState({settings:u()({},this.state.settings,{servers:r})},()=>{this.props.onChange(this.state.settings)})}render(){var e=this.state.settings.servers;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"DNS\u670d\u52a1\u5668\u8868"),e.map((e,t)=>{var n;return d.a.createElement("div",{key:t},d.a.createElement("div",{className:"row"},d.a.createElement(m["a"],{type:"horizontal"},e.address||"\u670d\u52a1\u5668\u7ec4".concat(t+1)," ",d.a.createElement(l["a"],{type:"delete",style:{color:"#ff4d4f"},onClick:()=>this.dropServer(t)})),d.a.createElement("div",{className:"form-group col-md-9 col-xs-12"},d.a.createElement("label",null,"DNS\u670d\u52a1\u5668\u5730\u5740"),d.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165DNS\u670d\u52a1\u5668\u5730\u5740",value:e.address,onChange:e=>this.changeServer(t,"address",e.target.value)})),d.a.createElement("div",{className:"form-group col-md-3 col-xs-12"},d.a.createElement("label",null,"\u7aef\u53e3"),d.a.createElement(s["a"],{type:"number",placeholder:"\u7aef\u53e3",value:e.port,onChange:e=>this.changeServer(t,"port",parseInt(e.target.value))}))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u57df\u540d"),d.a.createElement(s["a"].TextArea,{rows:5,onChange:e=>this.changeServer(t,"domains",e.target.value),value:null===(n=e.domains)||void 0===n?void 0:n.join("\n"),placeholder:"\u57df\u540d\u5217\u8868\uff0c\u6b64\u5217\u8868\u5305\u542b\u7684\u57df\u540d\uff0c\u5c06\u4f18\u5148\u4f7f\u7528\u6b64\u670d\u52a1\u5668\u8fdb\u884c\u67e5\u8be2\u3002\u4e00\u884c\u4e00\u6761"})))}),d.a.createElement("div",null,d.a.createElement(i["a"],{type:"primary",style:{width:"100%"},onClick:()=>this.addServer()},"\u6dfb\u52a0"))))}}class v extends d.a.Component{constructor(e){super(e);var t=this.props.settings;"{}"!==JSON.stringify(t)&&t||(t={domain:[],protocol:[]}),this.state={settings:t}}change(e,t){var n=this.state.settings;t=t.split("\n"),n[e]=t,this.setState({settings:n}),this.props.onChange(n)}render(){var e=this.state.settings,t=e.domain,n=e.protocol;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u57df\u540d\u8fc7\u6ee4\u5668"),d.a.createElement(s["a"].TextArea,{value:t&&t.join("\n"),onChange:e=>this.change("domain",e.target.value),rows:5})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u534f\u8bae\u8fc7\u6ee4\u5668"),d.a.createElement(s["a"].TextArea,{value:n&&n.join("\n"),onChange:e=>this.change("protocol",e.target.value),rows:5})))}}n("BoS7");var y=n("Sdc0");class b extends d.a.Component{constructor(e){super(e);var t=this.props.settings;"{}"!==JSON.stringify(t)&&t||(t={serverName:"",allowInsecure:0}),this.state={settings:t}}change(e,t){var n=this.state.settings;n[e]=t,this.setState({settings:n}),this.props.onChange(this.state.settings)}render(){var e=this.state.settings,t=e.serverName,n=e.allowInsecure;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"Server Name"),d.a.createElement(s["a"],{value:t,onChange:e=>this.change("serverName",e.target.value),placeholder:"\u4e0d\u4f7f\u7528\u8bf7\u7559\u7a7a"})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"Allow Insecure"),d.a.createElement("div",null,d.a.createElement(y["a"],{checked:parseInt(n),onChange:e=>this.change("allowInsecure",e?"1":"0")})))))}}var w=n("lc5D"),x=n.n(w),_=(n("VeWa"),n("umNf"),n("8zNj"));class E extends d.a.Component{constructor(e){super(e),this.state={server:this.props.record||{tls:0,rate:1},visible:!1,childDrawer:{visible:!1}}}onShow(){if(this.setState({visible:!this.state.visible}),this.state.server.networkSettings&&"object"===typeof this.state.server.networkSettings){var e=this.state.server;e.networkSettings=JSON.stringify(e["networkSettings"],null,2),this.setState({server:e})}}save(){try{var e,t,n=this.state.server;n.networkSettings=n.networkSettings?"string"===typeof n.networkSettings&&JSON.parse(n.networkSettings):null,(null===(e=n.dnsSettings)||void 0===e?void 0:null===(t=e.servers)||void 0===t?void 0:t.length)||(n.dnsSettings=null),console.log(n),this.props.dispatch({type:"serverV2ray/save",params:n,callback:()=>{this.onShow()}})}catch(e){h["a"].error({message:"\u8bf7\u6c42\u5931\u8d25",description:"\u4f20\u8f93\u534f\u8bae\u914d\u7f6e\u683c\u5f0f\u6709\u8bef"})}}showChildDrawer(e,t){this.setState({childDrawer:u()({},this.state.childDrawer,{visible:!this.state.childDrawer.visible,title:e,type:t})})}changeServer(e,t){this.setState({server:u()({},this.state.server,{[e]:t})})}renderChildDrawer(){var e=this.state.server,t=e.networkSettings,n=e.ruleSettings,r=e.tlsSettings,i=e.dnsSettings;switch(this.state.childDrawer.type){case"networkSettings":var o={tcp:"",ws:JSON.stringify({path:"/",headers:{Host:"v2ray.com"}},null,4),grpc:JSON.stringify({serviceName:"GunService"},null,4)};return d.a.createElement("div",{id:"v2ray-protocol"},d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u534f\u8bae\u8be6\u7ec6\u914d\u7f6e",d.a.createElement("a",{href:"https://www.v2ray.com/chapter_02/05_transport.html"},d.a.createElement(l["a"],{type:"link"}),"\u53c2\u8003")),d.a.createElement(x.a,{placeholder:(null===o||void 0===o?void 0:o[this.state.server.network])||"",mode:"json",theme:"github",fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:t||"",onChange:e=>this.formChange("networkSettings",e),setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,showLineNumbers:!0,tabSize:2},ref:"editor"})));case"ruleSettings":return d.a.createElement(v,{settings:n,onChange:e=>this.changeServer("ruleSettings",e)});case"tlsSettings":return d.a.createElement(b,{settings:r,onChange:e=>this.changeServer("tlsSettings",e)});case"dnsSettings":return d.a.createElement(g,{settings:i,onChange:e=>this.changeServer("dnsSettings",e)})}}formChange(e,t){this.refs.editor&&this.refs.editor.editor.resize();var n=this.state.server;n[e]=t,this.setState({server:n})}render(){var e=this.state.server,t=this.props.serverV2ray.saveLoading,n=this.props.serverManage.servers,c=this.props.serverGroup.groups;return d.a.createElement(d.a.Fragment,null,d.a.cloneElement(this.props.children,{onClick:()=>this.onShow()}),d.a.createElement(r["a"],{id:"server",maskClosable:!0,title:e.id?"\u7f16\u8f91\u8282\u70b9":"\u65b0\u5efa\u8282\u70b9",width:"80%",visible:this.state.visible,onClose:()=>this.onShow()},d.a.createElement("div",null,d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-8"},d.a.createElement("label",null,"\u8282\u70b9\u540d\u79f0"),d.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",value:e.name,onChange:e=>this.formChange("name",e.target.value)})),d.a.createElement("div",{className:"form-group col-4"},d.a.createElement("label",null,"\u500d\u7387"),d.a.createElement(s["a"],{addonAfter:"x",placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u500d\u7387",value:e.rate,onChange:e=>this.formChange("rate",e.target.value)}))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u8282\u70b9\u6807\u7b7e"),d.a.createElement(a["a"],{mode:"tags",value:e.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>this.formChange("tags",e.length>0?e:null)})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u6743\u9650\u7ec4 ",d.a.createElement(_["a"],null,d.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),d.a.createElement(a["a"],{mode:"multiple",value:e.group_id,placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},onChange:e=>this.formChange("group_id",e)},c.map(e=>{return d.a.createElement(a["a"].Option,{key:e.id},e.name)}))),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-md-8 col-xs-12"},d.a.createElement("label",null,"\u8282\u70b9\u5730\u5740"),d.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u8fde\u63a5\u5730\u5740",value:e.host,onChange:e=>this.formChange("host",e.target.value)})),d.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},d.a.createElement("label",null,d.a.createElement(o["a"],{placement:"top",title:"\u652f\u6301TLS\u9700\u8981\u5148\u5728\u8282\u70b9\u670d\u52a1\u5668 /root/.cert/ \u76ee\u5f55\u653e\u7f6e\u8bc1\u4e66"},"TLS ",d.a.createElement(l["a"],{type:"question-circle"}))," ",d.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.showChildDrawer("\u7f16\u8f91TLS\u914d\u7f6e","tlsSettings")},"\u7f16\u8f91\u914d\u7f6e")),d.a.createElement(a["a"],{value:parseInt(e.tls)?1:0,placeholder:"\u662f\u5426\u652f\u6301TLS",style:{width:"100%"},onChange:e=>this.formChange("tls",e)},d.a.createElement(a["a"].Option,{key:0,value:0},"\u4e0d\u652f\u6301"),d.a.createElement(a["a"].Option,{key:1,value:1},"\u652f\u6301")))),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},d.a.createElement("label",null,"\u8fde\u63a5\u7aef\u53e3"),d.a.createElement(s["a"],{placeholder:"\u7528\u6237\u8fde\u63a5\u7aef\u53e3",value:e.port,onChange:e=>{this.formChange("port",e.target.value)}})),d.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},d.a.createElement("label",null,"\u670d\u52a1\u7aef\u53e3"),d.a.createElement(s["a"],{placeholder:"\u975eNAT\u540c\u8fde\u63a5\u7aef\u53e3",value:e.server_port,onChange:e=>this.formChange("server_port",e.target.value)}))),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-md-12 col-xs-12"},d.a.createElement("label",null,"\u4f20\u8f93\u534f\u8bae ",d.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.showChildDrawer("\u7f16\u8f91\u534f\u8bae\u914d\u7f6e","networkSettings")},"\u7f16\u8f91\u914d\u7f6e")),d.a.createElement(a["a"],{value:e.network,placeholder:"\u9009\u62e9\u4f20\u8f93\u534f\u8bae",style:{width:"100%"},onChange:e=>this.formChange("network",e)},d.a.createElement(a["a"].Option,{value:"tcp"},"TCP"),d.a.createElement(a["a"].Option,{value:"ws"},"WebSocket"),d.a.createElement(a["a"].Option,{value:"grpc"},"gRPC")))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,d.a.createElement(o["a"],{placement:"top"},"\u7236\u8282\u70b9 ",d.a.createElement("a",{target:"_blank",href:"https://docs.v2board.com/use/node.html#\u7236\u8282\u70b9\u4e0e\u5b50\u8282\u70b9\u5173\u7cfb",rel:"noreferrer"},d.a.createElement(l["a"],{type:"read"})))),d.a.createElement(a["a"],{value:e.parent_id||"",onChange:e=>this.formChange("parent_id",e),style:{width:"100%"}},d.a.createElement(a["a"].Option,{value:""},"\u65e0"),n.map(t=>{if("v2ray"===t.type&&t.id!==e.id)return d.a.createElement(a["a"].Option,{key:Math.random(),value:t.id},t.name)}))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,d.a.createElement(o["a"],{placement:"top",title:"\u89c4\u5219\u5185\u7684\u8bbf\u95ee\u5c06\u4f1a\u88ab\u62d2\u7edd"},"\u5ba1\u8ba1\u89c4\u5219 ",d.a.createElement(l["a"],{type:"question-circle"}))),d.a.createElement("div",null,d.a.createElement(i["a"],{type:"primary",style:{width:"100%"},onClick:()=>this.showChildDrawer("\u7f16\u8f91\u5ba1\u8ba1\u89c4\u5219","ruleSettings")},"\u7f16\u8f91\u89c4\u5219"))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"DNS\u89c4\u5219 ",d.a.createElement(l["a"],{type:"question-circle"})),d.a.createElement("div",null,d.a.createElement(i["a"],{type:"primary",style:{width:"100%"},onClick:()=>this.showChildDrawer("\u7f16\u8f91DNS\u89c4\u5219","dnsSettings")},"\u7f16\u8f91DNS\u89c4\u5219")))),d.a.createElement("div",{className:"v2board-drawer-action"},d.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.onShow()},"\u53d6\u6d88"),d.a.createElement(i["a"],{loading:t,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4")),d.a.createElement(r["a"],{closable:!1,id:"server",width:"80%",title:this.state.childDrawer.title,visible:this.state.childDrawer.visible,onClose:()=>this.showChildDrawer()},this.renderChildDrawer())))}}t["a"]=Object(p["c"])(e=>{var t=e.serverV2ray,n=e.serverGroup,r=e.serverManage;return{serverV2ray:t,serverGroup:n,serverManage:r}})(E)},IMiH:function(e,t,n){"use strict";var r=n("QBsz"),i=n("mFDi"),o=n("LPTA"),a=n("4mN7"),s=n("Sj9i"),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],u=[],h=[],f=[],d=[],p=[],m=Math.min,g=Math.max,v=Math.cos,y=Math.sin,b=Math.abs,w=Math.PI,x=2*w,_="undefined"!==typeof Float32Array,E=[];function S(e){var t=Math.round(e/w*1e8)/1e8;return t%2*w}function C(e,t){var n=S(e[0]);n<0&&(n+=x);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=x?i=n+x:t&&n-i>=x?i=n-x:!t&&n>i?i=n+(x-S(n-i)):t&&n0&&(this._ux=b(n/o["e"]/e)||0,this._uy=b(n/o["e"]/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=b(e-this._xi),r=b(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(l.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(l.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(l.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),E[0]=r,E[1]=i,C(E,o),r=E[0],i=E[1];var a=i-r;return this.addData(l.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=v(i)*n+e,this._yi=y(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!_||(this.data=new Float32Array(t));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,o=0,s=0,c=0;for(e=0;en||b(k)>r||d===t-1)&&(_=Math.sqrt(C*C+k*k),i=E,o=S);break;case l.C:var O=e[d++],T=e[d++],A=(E=e[d++],S=e[d++],e[d++]),P=e[d++];_=Object(s["d"])(i,o,O,T,E,S,A,P,10),i=A,o=P;break;case l.Q:O=e[d++],T=e[d++],E=e[d++],S=e[d++];_=Object(s["k"])(i,o,O,T,E,S,10),i=E,o=S;break;case l.A:var M=e[d++],R=e[d++],j=e[d++],L=e[d++],D=e[d++],N=e[d++],I=N+D;d+=1;e[d++];w&&(a=v(D)*j+M,c=y(D)*L+R),_=g(j,L)*m(x,Math.abs(N)),i=v(I)*j+M,o=y(I)*L+R;break;case l.R:a=i=e[d++],c=o=e[d++];var $=e[d++],F=e[d++];_=2*$+2*F;break;case l.Z:C=a-i,k=c-o;_=Math.sqrt(C*C+k*k),i=a,o=c;break}_>=0&&(u[f++]=_,h+=_)}return this._pathLen=h,h},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,h,f,d,p,w,x,_=this.data,E=this._ux,S=this._uy,C=this._len,k=t<1,O=0,T=0,A=0;if(!k||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,d=this._pathLen,p=t*d,p))e:for(var P=0;P0&&(e.lineTo(w,x),A=0),M){case l.M:n=i=_[P++],r=o=_[P++],e.moveTo(i,o);break;case l.L:a=_[P++],h=_[P++];var j=b(a-i),L=b(h-o);if(j>E||L>S){if(k){var D=f[T++];if(O+D>p){var N=(p-O)/D;e.lineTo(i*(1-N)+a*N,o*(1-N)+h*N);break e}O+=D}e.lineTo(a,h),i=a,o=h,A=0}else{var I=j*j+L*L;I>A&&(w=a,x=h,A=I)}break;case l.C:var $=_[P++],F=_[P++],B=_[P++],V=_[P++],W=_[P++],H=_[P++];if(k){D=f[T++];if(O+D>p){N=(p-O)/D;Object(s["g"])(i,$,B,W,N,c),Object(s["g"])(o,F,V,H,N,u),e.bezierCurveTo(c[1],u[1],c[2],u[2],c[3],u[3]);break e}O+=D}e.bezierCurveTo($,F,B,V,W,H),i=W,o=H;break;case l.Q:$=_[P++],F=_[P++],B=_[P++],V=_[P++];if(k){D=f[T++];if(O+D>p){N=(p-O)/D;Object(s["n"])(i,$,B,N,c),Object(s["n"])(o,F,V,N,u),e.quadraticCurveTo(c[1],u[1],c[2],u[2]);break e}O+=D}e.quadraticCurveTo($,F,B,V),i=B,o=V;break;case l.A:var U=_[P++],z=_[P++],q=_[P++],K=_[P++],G=_[P++],Y=_[P++],X=_[P++],Q=!_[P++],Z=q>K?q:K,J=b(q-K)>.001,ee=G+Y,te=!1;if(k){D=f[T++];O+D>p&&(ee=G+Y*(p-O)/D,te=!0),O+=D}if(J&&e.ellipse?e.ellipse(U,z,q,K,X,G,ee,Q):e.arc(U,z,Z,G,ee,Q),te)break e;R&&(n=v(G)*q+U,r=y(G)*K+z),i=v(ee)*q+U,o=y(ee)*K+z;break;case l.R:n=i=_[P],r=o=_[P+1],a=_[P++],h=_[P++];var ne=_[P++],re=_[P++];if(k){D=f[T++];if(O+D>p){var ie=p-O;e.moveTo(a,h),e.lineTo(a+m(ie,ne),h),ie-=ne,ie>0&&e.lineTo(a+ne,h+m(ie,re)),ie-=re,ie>0&&e.lineTo(a+g(ne-ie,0),h+re),ie-=ne,ie>0&&e.lineTo(a,h+g(re-ie,0));break e}O+=D}e.rect(a,h,ne,re);break;case l.Z:if(k){D=f[T++];if(O+D>p){N=(p-O)/D;e.lineTo(i*(1-N)+n*N,o*(1-N)+r*N);break e}O+=D}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=l,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();t["a"]=k},IR7R:function(e,t,n){"use strict";var r=n("WGNW"),i=n("Y/ne"),o=n("08Qx"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},IX3V:function(e,t){function n(e,t){var n,r=0,i=e.length;for(r;r18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},IuST:function(e,t){function n(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(e){i=!0,o=e}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}e.exports=n},IzUq:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"J57/":function(e,t,n){var r=n("VyuQ")("keys"),i=n("kCK5");e.exports=function(e){return r[e]||(r[e]=i(e))}},J78i:function(e,t,n){"use strict";e.exports=a;var r=n("sZro"),i=Object.create(n("Onz0"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length0&&void 0!==arguments[0]?arguments[0]:[],t=Array.isArray(e)?e:[e];t.forEach(function(e){e&&e.locale&&(a.a.__addLocaleData(e),l.a.__addLocaleData(e))})}function E(e){var t=(e||"").split("-");while(t.length>0){if(S(t.join("-")))return!0;t.pop()}return!1}function S(e){var t=e&&e.toLowerCase();return!(!a.a.__localeData__[t]||!l.a.__localeData__[t])}var C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=(function(){function e(e){this.value=e}function t(t){var n,r;function i(e,t){return new Promise(function(i,a){var s={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=s:(n=r=s,o(e,t))})}function o(n,r){try{var i=t[n](r),s=i.value;s instanceof e?Promise.resolve(s.value).then(function(e){o("next",e)},function(e){o("throw",e)}):a(i.done?"return":"normal",i.value)}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1});break}n=n.next,n?o(n.key,n.arg):r=null}this._invoke=i,"function"!==typeof t.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),O=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},R=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},j=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t":">","<":"<",'"':""","'":"'"},ne=/[&><"']/g;function re(e){return(""+e).replace(ne,function(e){return te[e]})}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intl;g()(t,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function ae(e,t){if(e===t)return!0;if("object"!==("undefined"===typeof e?"undefined":C(e))||null===e||"object"!==("undefined"===typeof t?"undefined":C(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o3&&void 0!==arguments[3]?arguments[3]:{},l=a.intl,c=void 0===l?{}:l,u=s.intl,h=void 0===u?{}:u;return!ae(t,r)||!ae(n,i)||!(h===c||ae(ie(h,ee),ie(c,ee)))}function le(e,t){var n=t?"\n"+t:"";return"[React Intl] "+e+n}function ce(e){0}function ue(e){return e.displayName||e.name||"Component"}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.intlPropName,r=void 0===n?"intl":n,i=t.withRef,o=void 0!==i&&i,a=function(t){function n(e,t){k(this,n);var r=R(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return oe(t),r}return P(n,t),O(n,[{key:"getWrappedInstance",value:function(){return g()(o,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return f.a.createElement(e,A({},this.props,T({},r,this.context.intl),{ref:o?function(e){return t._wrappedInstance=e}:null}))}}]),n}(h["Component"]);return a.displayName="InjectIntl("+ue(e)+")",a.contextTypes={intl:Y},a.WrappedComponent=e,p()(a,e)}function fe(e){return e}function de(e){return a.a.prototype._resolveLocale(e)}function pe(e){return a.a.prototype._findPluralRuleFunction(e)}var me=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,e);var r="ordinal"===n.style,i=pe(de(t));this.format=function(e){return i(e,r)}},ge=Object.keys(X),ve=Object.keys(Q),ye=Object.keys(Z),be=Object.keys(J),we={second:60,minute:60,hour:24,day:30,month:12};function xe(e){var t=l.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function _e(e,t,n,r){var i=e&&e[t]&&e[t][n];if(i)return i;r(le("No "+t+" format named: "+n))}function Ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||ce,c=new Date(n),u=A({},a&&{timeZone:a},s&&_e(o,"date",s,l)),h=ie(r,ge,u);try{return t.getDateTimeFormat(i,h).format(c)}catch(e){l(le("Error formatting date.",e))}return String(c)}function Se(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||ce,c=new Date(n),u=A({},a&&{timeZone:a},s&&_e(o,"time",s,l)),h=ie(r,ge,u);h.hour||h.minute||h.second||(h=A({},h,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(i,h).format(c)}catch(e){l(le("Error formatting time.",e))}return String(c)}function Ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||ce,c=new Date(n),u=new Date(r.now),h=a&&_e(o,"relative",a,s),f=ie(r,ye,h),d=A({},l.a.thresholds);xe(we);try{return t.getRelativeFormat(i,f).format(c,{now:isFinite(u)?u:t.now()})}catch(e){s(le("Error formatting relative time.",e))}finally{xe(d)}return String(c)}function ke(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||ce,l=a&&_e(o,"number",a,s),c=ie(r,ve,l);try{return t.getNumberFormat(i,c).format(n)}catch(e){s(le("Error formatting number.",e))}return String(n)}function Oe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=ie(r,be),a=e.onError||ce;try{return t.getPluralFormat(i,o).format(n)}catch(e){a(le("Error formatting plural.",e))}return"other"}function Te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,c=n.id,u=n.defaultMessage;g()(c,"[React Intl] An `id` must be provided to format a message.");var h=a&&a[c],f=Object.keys(r).length>0;if(!f)return h||u||c;var d=void 0,p=e.onError||ce;if(h)try{var m=t.getMessageFormat(h,i,o);d=m.format(r)}catch(e){p(le('Error formatting message: "'+c+'" for locale: "'+i+'"'+(u?", using default message as fallback.":""),e))}else(!u||i&&i.toLowerCase()!==s.toLowerCase())&&p(le('Missing message: "'+c+'" for locale: "'+i+'"'+(u?", using default message as fallback.":"")));if(!d&&u)try{var v=t.getMessageFormat(u,s,l);d=v.format(r)}catch(e){p(le('Error formatting the default message for: "'+c+'"',e))}return d||p(le('Cannot format message: "'+c+'", using message '+(h||u?"source":"id")+" as fallback.")),d||h||u||c}function Ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"===typeof n?re(n):n,e},{});return Te(e,t,n,i)}var Pe=Object.freeze({formatDate:Ee,formatTime:Se,formatRelative:Ce,formatNumber:ke,formatPlural:Oe,formatMessage:Te,formatHTMLMessage:Ae}),Me=Object.keys(K),Re=Object.keys(G),je={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:ce},Le=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,t);var r=R(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));g()("undefined"!==typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var i=n.intl,o=void 0;o=isFinite(e.initialNow)?Number(e.initialNow):i?i.now():Date.now();var s=i||{},c=s.formatters,u=void 0===c?{getDateTimeFormat:w(Intl.DateTimeFormat),getNumberFormat:w(Intl.NumberFormat),getMessageFormat:w(a.a),getRelativeFormat:w(l.a),getPluralFormat:w(me)}:c;return r.state=A({},u,{now:function(){return r._didDisplay?Date.now():o}}),r}return P(t,e),O(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=ie(this.props,Me,e);for(var n in je)void 0===t[n]&&(t[n]=je[n]);if(!E(t.locale)){var r=t,i=r.locale,o=r.defaultLocale,a=r.defaultFormats,s=r.onError;s(le('Missing locale data for locale: "'+i+'". Using default locale: "'+o+'" as fallback.')),t=A({},t,{locale:o,formats:a,messages:je.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return Re.reduce(function(n,r){return n[r]=Pe[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,i=M(n,["now"]);return{intl:A({},e,t,{formatters:i,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?i-1:0),a=1;a0;if(v){var y=Math.floor(1099511627776*Math.random()).toString(16),b=function(){var e=0;return function(){return"ELEMENT-"+y+"-"+(e+=1)}}();p="@__"+y+"__@",m={},g={},Object.keys(c).forEach(function(e){var t=c[e];if(Object(h["isValidElement"])(t)){var n=b();m[e]=p+n+p,g[n]=t}else m[e]=t})}var w={id:a,description:s,defaultMessage:l},x=n(w,m||c),_=void 0,E=g&&Object.keys(g).length>0;return _=E?x.split(p).filter(function(e){return!!e}).map(function(e){return g[e]||e}):[x],"function"===typeof d?d.apply(void 0,j(_)):h["createElement"].apply(void 0,[f,null].concat(j(_)))}}]),t}(h["Component"]);Ye.displayName="FormattedMessage",Ye.contextTypes={intl:Y},Ye.defaultProps={values:{}};var Xe=function(e){function t(e,n){k(this,t);var r=R(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return oe(n),r}return P(t,e),O(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!ae(n,t))return!0;for(var r=A({},e,{values:t}),i=arguments.length,o=Array(i>1?i-1:0),a=1;a{this.state.visible||this.setState({submit:{}})})}save(){this.props.dispatch({type:"notice/save",params:p()({},this.state.submit),callback:()=>{this.modalVisible()}})}drop(e){this.props.dispatch({type:"notice/drop",id:e.id})}render(){var e=this.props.notice,t=e.notices,n=e.fetchLoading,r=[{title:"#",dataIndex:"id",key:"id"},{title:"\u663e\u793a",dataIndex:"show",key:"show",render:(e,t)=>{return g.a.createElement(f["a"],{size:"small",onChange:()=>this.props.dispatch({type:"notice/show",id:t.id}),checked:e})}},{title:"\u6807\u9898",dataIndex:"title",key:"title"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"created_at",key:"created_at",align:"right",render:e=>{return b()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,n,r)=>{return g.a.createElement("div",null,g.a.createElement("a",{onClick:()=>this.setState({submit:t[r]},()=>this.modalVisible()),href:"javascript:void(0);"},"\u7f16\u8f91"),g.a.createElement(h["a"],{type:"vertical"}),g.a.createElement("a",{onClick:()=>this.drop(n),href:"javascript:void(0);"},"\u5220\u9664"))}}];return g.a.createElement(v["a"],i()({},this.props,{title:"\u516c\u544a\u7ba1\u7406"}),g.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),g.a.createElement(x["a"],{loading:n},g.a.createElement("div",{className:"block block-rounded"},g.a.createElement("div",{className:"bg-white"},g.a.createElement("div",{style:{padding:15}},g.a.createElement(c["a"],{onClick:()=>this.modalVisible()},g.a.createElement(u["a"],{type:"plus"})," \u6dfb\u52a0\u516c\u544a")),g.a.createElement(l["a"],{tableLayout:"auto",dataSource:t,pagination:!1,columns:r,scroll:{x:950}})))),g.a.createElement(o["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u516c\u544a":"\u65b0\u5efa\u516c\u544a"),visible:this.state.visible,onCancel:()=>this.modalVisible(),onOk:()=>this.state.saveLoading||this.save(),okText:this.state.saveLoading?g.a.createElement(u["a"],{type:"loading"}):"\u63d0\u4ea4",cancelText:"\u53d6\u6d88"},g.a.createElement("div",null,g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{for:"example-text-input-alt"},"\u6807\u9898"),g.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u516c\u544a\u6807\u9898",value:this.state.submit.title,onChange:e=>{this.setState({submit:p()({},this.state.submit,{title:e.target.value})})}})),g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{for:"example-text-input-alt"},"\u516c\u544a\u5185\u5bb9"),g.a.createElement(s["a"].TextArea,{rows:12,value:this.state.submit.content,placeholder:"\u8bf7\u8f93\u5165\u516c\u544a\u5185\u5bb9",onChange:e=>{this.setState({submit:p()({},this.state.submit,{content:e.target.value})})}})),g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u516c\u544a\u6807\u7b7e"),g.a.createElement(a["a"],{mode:"tags",value:this.state.submit.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>{this.setState({submit:p()({},this.state.submit,{tags:e.length>0?e:null})})}})),g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{for:"example-text-input-alt"},"\u56fe\u7247URL"),g.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u56fe\u7247URL",value:this.state.submit.img_url,onChange:e=>{this.setState({submit:p()({},this.state.submit,{img_url:e.target.value})})}})))))}}t["default"]=Object(w["c"])(e=>{var t=e.notice;return{notice:t}})(_)},Jaki:function(e,t,n){"use strict";if(n("8Z/V")){var r=n("FqPH"),i=n("c0Oy"),o=n("wUWy"),a=n("WGNW"),s=n("88Vn"),l=n("yLMY"),c=n("wHrr"),u=n("YEVI"),h=n("pQGJ"),f=n("VPOE"),d=n("zNw+"),p=n("AUWw"),m=n("OsVd"),g=n("nYLq"),v=n("Spc3"),y=n("8BMt"),b=n("oxo0"),w=n("2a/h"),x=n("u8+u"),_=n("il4q"),E=n("ULMT"),S=n("/Mfd"),C=n("BFt8"),k=n("9HFh").f,O=n("BnQZ"),T=n("kCK5"),A=n("gL7N"),P=n("+o5p"),M=n("Lnex"),R=n("VeyY"),j=n("OERk"),L=n("yw4e"),D=n("cQyX"),N=n("gRqi"),I=n("7Uk0"),$=n("wlPd"),F=n("V5/1"),B=n("15BC"),V=F.f,W=B.f,H=i.RangeError,U=i.TypeError,z=i.Uint8Array,q="ArrayBuffer",K="Shared"+q,G="BYTES_PER_ELEMENT",Y="prototype",X=Array[Y],Q=l.ArrayBuffer,Z=l.DataView,J=P(0),ee=P(2),te=P(3),ne=P(4),re=P(5),ie=P(6),oe=M(!0),ae=M(!1),se=j.values,le=j.keys,ce=j.entries,ue=X.lastIndexOf,he=X.reduce,fe=X.reduceRight,de=X.join,pe=X.sort,me=X.slice,ge=X.toString,ve=X.toLocaleString,ye=A("iterator"),be=A("toStringTag"),we=T("typed_constructor"),xe=T("def_constructor"),_e=s.CONSTR,Ee=s.TYPED,Se=s.VIEW,Ce="Wrong length!",ke=P(1,function(e,t){return Me(R(e,e[xe]),t)}),Oe=o(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),Te=!!z&&!!z[Y].set&&o(function(){new z(1).set({})}),Ae=function(e,t){var n=p(e);if(n<0||n%t)throw H("Wrong offset!");return n},Pe=function(e){if(x(e)&&Ee in e)return e;throw U(e+" is not a typed array!")},Me=function(e,t){if(!(x(e)&&we in e))throw U("It is not a typed array constructor!");return new e(t)},Re=function(e,t){return je(R(e,e[xe]),t)},je=function(e,t){var n=0,r=t.length,i=Me(e,r);while(r>n)i[n]=t[n++];return i},Le=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},De=function(e){var t,n,r,i,o,a,s=_(e),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,f=O(s);if(void 0!=f&&!E(f)){for(a=f.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(h&&l>2&&(u=c(u,arguments[2],2)),t=0,n=m(s.length),i=Me(this,n);n>t;t++)i[t]=h?u(s[t],t):s[t];return i},Ne=function(){var e=0,t=arguments.length,n=Me(this,t);while(t>e)n[e]=arguments[e++];return n},Ie=!!z&&o(function(){ve.call(new z(1))}),$e=function(){return ve.apply(Ie?me.call(Pe(this)):Pe(this),arguments)},Fe={copyWithin:function(e,t){return $.call(Pe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Pe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return I.apply(Pe(this),arguments)},filter:function(e){return Re(this,ee(Pe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Pe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Pe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Pe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Pe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Pe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Pe(this),arguments)},lastIndexOf:function(e){return ue.apply(Pe(this),arguments)},map:function(e){return ke(Pe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return he.apply(Pe(this),arguments)},reduceRight:function(e){return fe.apply(Pe(this),arguments)},reverse:function(){var e,t=this,n=Pe(t).length,r=Math.floor(n/2),i=0;while(i1?arguments[1]:void 0)},sort:function(e){return pe.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,i=v(e,r);return new(R(n,n[xe]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Be=function(e,t){return Re(this,me.call(Pe(this),e,t))},Ve=function(e){Pe(this);var t=Ae(arguments[1],1),n=this.length,r=_(e),i=m(r.length),o=0;if(i+t>n)throw H(Ce);while(o255?255:255&r),i.v[d](n*t+i.o,r,Oe)},A=function(e,t){V(e,t,{get:function(){return O(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};b?(p=n(function(e,n,r,i){u(e,p,c,"_d");var o,a,s,l,h=0,d=0;if(x(n)){if(!(n instanceof Q||(l=w(n))==q||l==K))return Ee in n?je(p,n):De.call(p,n);o=n,d=Ae(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw H(Ce);if(a=v-d,a<0)throw H(Ce)}else if(a=m(i)*t,a+d>v)throw H(Ce);s=a/t}else s=g(n),a=s*t,o=new Q(a);f(e,"_d",{b:o,o:d,l:a,e:s,v:new Z(o)});while(h{this.getData()},3e3)}render(){var e=this.props.system,t=e.queueStats,n=(e.getQueueStatsLoading,e.queueWorkload);e.getQueueWorkloadLoading;return s.a.createElement(l["a"],i()({},this.props,{title:"\u961f\u5217\u76d1\u63a7"}),s.a.createElement(u["a"],{loading:!t},s.a.createElement("div",{className:"block block-rounded "},s.a.createElement("div",{className:"block-header block-header-default"},s.a.createElement("h3",{className:"block-title"},"\u603b\u89c8")),s.a.createElement("div",{className:"block-content p-0"},s.a.createElement("div",{className:"row no-gutters"},s.a.createElement("div",{className:"col-lg-6 col-xl-3 border-right p-4 border-bottom"},s.a.createElement("div",null,s.a.createElement("div",null,"\u5f53\u524d\u4f5c\u4e1a\u91cf"),s.a.createElement("div",{className:"mt-4 font-size-h3"},(null===t||void 0===t?void 0:t.jobsPerMinute)||"0"))),s.a.createElement("div",{className:"col-lg-6 col-xl-3 border-right p-4 border-bottom"},s.a.createElement("div",null,s.a.createElement("div",null,"\u8fd1\u4e00\u5c0f\u65f6\u5904\u7406\u91cf"),s.a.createElement("div",{className:"mt-4 font-size-h3"},(null===t||void 0===t?void 0:t.recentJobs)||"0"))),s.a.createElement("div",{className:"col-lg-6 col-xl-3 border-right p-4 border-bottom"},s.a.createElement("div",null,s.a.createElement("div",null,"7\u65e5\u5185\u62a5\u9519\u6570\u91cf"),s.a.createElement("div",{className:"mt-4 font-size-h3"},(null===t||void 0===t?void 0:t.failedJobs)||"0"))),s.a.createElement("div",{className:"col-lg-6 col-xl-3 p-4 border-bottom overflow-hidden"},s.a.createElement("div",null,s.a.createElement("div",null,"\u72b6\u6001"),s.a.createElement("div",{className:"mt-4 font-size-h3"},t&&((null===t||void 0===t?void 0:t.status)?"\u8fd0\u884c\u4e2d":"\u672a\u542f\u52a8")),t&&((null===t||void 0===t?void 0:t.status)?s.a.createElement("i",{class:"si si-check text-success",style:{position:"absolute",fontSize:100,right:-20,bottom:-20}}):s.a.createElement("i",{class:"si si-close text-danger",style:{position:"absolute",fontSize:100,right:-20,bottom:-20}})))))))),s.a.createElement(u["a"],{loading:!n},s.a.createElement("div",{className:"block block-rounded "},s.a.createElement("div",{className:"block-header block-header-default"},s.a.createElement("h3",{className:"block-title"},"\u5f53\u524d\u4f5c\u4e1a\u8be6\u60c5")),s.a.createElement("div",{className:"block-content p-0"},s.a.createElement(o["a"],{columns:[{title:"\u961f\u5217\u540d\u79f0",dataIndex:"name",key:"name",render:e=>{var t={order_handle:"\u8ba2\u5355\u961f\u5217",send_email:"\u90ae\u4ef6\u961f\u5217",send_email_mass:"\u90ae\u4ef6\u7fa4\u53d1\u961f\u5217",send_telegram:"Telegram\u6d88\u606f\u961f\u5217",stat:"\u7edf\u8ba1\u961f\u5217",traffic_fetch:"\u6d41\u91cf\u6d88\u8d39\u961f\u5217"};return t[e]}},{title:"\u4f5c\u4e1a\u91cf",dataIndex:"processes",key:"processes"},{title:"\u4efb\u52a1\u91cf",dataIndex:"length",key:"length"},{title:"\u5360\u7528\u65f6\u95f4",dataIndex:"wait",key:"wait",align:"right",render:e=>e+"s"}],dataSource:n&&n.filter(e=>"default"!==e.name),pagination:!1})))))}}t["default"]=Object(c["c"])(e=>{var t=e.system;return{system:t}})(h)},Ji7U:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)}n.d(t,"a",function(){return i})},KQm4:function(e,t,n){"use strict";var r=n("a3WO");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}var o=n("25BE"),a=n("BsWD");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return i(e)||Object(o["a"])(e)||Object(a["a"])(e)||s()}n.d(t,"a",function(){return l})},KUxP:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},KbcA:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("iCc5"),a=n.n(o),s=n("FYw3"),l=n.n(s),c=n("mRg0"),u=n.n(c),h=n("q1tI"),f=n.n(h),d=n("17x9"),p=n.n(d),m=n("4IlW"),g=n("VCL8"),v=n("2zpS"),y=n("JDzL"),b=n("jBZG"),w=n("F4Vz"),x=n("wd/R"),_=n.n(x),E=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return r.onKeyDown=function(e){var t=e.keyCode,n=e.ctrlKey||e.metaKey,i=r.state.value,o=r.props.disabledDate,a=i;switch(t){case m["a"].DOWN:a=i.clone(),a.add(3,"months");break;case m["a"].UP:a=i.clone(),a.add(-3,"months");break;case m["a"].LEFT:a=i.clone(),n?a.add(-1,"years"):a.add(-1,"months");break;case m["a"].RIGHT:a=i.clone(),n?a.add(1,"years"):a.add(1,"months");break;case m["a"].ENTER:return o&&o(i)||r.onSelect(i),e.preventDefault(),1;default:return}if(a!==i)return r.setValue(a),e.preventDefault(),1},r.handlePanelChange=function(e,t){"date"!==t&&r.setState({mode:t})},r.state={mode:"month",value:n.value||n.defaultValue||_()(),selectedValue:n.selectedValue||n.defaultSelectedValue},r}return u()(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=t.mode,r=t.value,i=f.a.createElement("div",{className:e.prefixCls+"-month-calendar-content"},f.a.createElement("div",{className:e.prefixCls+"-month-header-wrap"},f.a.createElement(v["a"],{prefixCls:e.prefixCls,mode:n,value:r,locale:e.locale,disabledMonth:e.disabledDate,monthCellRender:e.monthCellRender,monthCellContentRender:e.monthCellContentRender,onMonthSelect:this.onSelect,onValueChange:this.setValue,onPanelChange:this.handlePanelChange})),f.a.createElement(y["a"],{prefixCls:e.prefixCls,renderFooter:e.renderFooter}));return this.renderRoot({className:e.prefixCls+"-month-calendar",children:i})},t}(f.a.Component);E.propTypes=i()({},b["b"],w["c"],{monthCellRender:p.a.func,value:p.a.object,defaultValue:p.a.object,selectedValue:p.a.object,defaultSelectedValue:p.a.object,disabledDate:p.a.func}),E.defaultProps=i()({},w["b"],b["a"]),t["a"]=Object(g["polyfill"])(Object(b["c"])(Object(w["a"])(E)))},Kwbf:function(e,t,n){"use strict";var r={};function i(e,t){0}function o(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function a(e,t){o(i,e,t)}t["a"]=a},KyW6:function(e,t,n){"use strict";n.r(t);n("Y/ft"),n("qIgq");var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("1l/V"),l=n.n(s),c=(n("0wlq"),n("dcFJ"),n("VxKu"),n("QsMh"),n("kgWH"),n("/gYn"),n("Q6cQ"),n("nwK/"),n("O42g"),n("XrRV"),n("jN/G"),n("PkQq"),n("er1Y"),n("/mWb"),n("jjMW"),n("OHgp"),n("EEQl"),n("HXXR"),n("kWR5"),n("Bz7s"),n("lZXM"),n("DBt0"),n("hIUm"),n("G7Hh"),n("DFAo"),n("0sxA"),n("rUcv"),n("3m+/"),n("9nSz"),n("IR7R"),n("UQt1"),n("u2w5"),n("zxrt"),n("Bus3"),n("OR3X"),n("o175"),n("XP1/"),n("w8uh"),n("HCMe"),n("QEzc"),n("QeHl"),n("SPFY"),n("7RDE"),n("fKm+"),n("N4uP"),n("zr8x"),n("zQzA"),n("wOl0"),n("RFCh"),n("q1tI")),u=n.n(c),h=n("i8i4"),f=n.n(h),d=n("sa7a"),p=n.n(d);n.d(t,"ReactDOMServer",function(){return v});var m=n("PszG");window.g_plugins=m,m.init({validKeys:["patchRoutes","render","rootContainer","modifyRouteProps","onRouteChange","modifyInitialProps","initialProps","dva"]}),m.use(n("3JrO")),m.use(n("ERIh"));var g=n("xg5P")._onCreate();window.g_app=g;var v,y=function(){var e=l()(i.a.mark(function e(){var t,r,o,s,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(window.g_isBrowser=!0,t={},!window.g_useSSR){e.next=6;break}t=window.g_initialData,e.next=18;break;case 6:if(r=location.pathname,o=p()(n("i4x8").routes,r),!(o&&o.component&&o.component.getInitialProps)){e.next=18;break}if(s=m.apply("modifyInitialProps",{initialValue:{}}),!o.component.getInitialProps){e.next=16;break}return e.next=13,o.component.getInitialProps(a()({route:o,isServer:!1,location:location},s));case 13:e.t0=e.sent,e.next=17;break;case 16:e.t0={};case 17:t=e.t0;case 18:l=m.apply("rootContainer",{initialValue:u.a.createElement(n("i4x8").default,t)}),f.a[window.g_useSSR?"hydrate":"render"](l,document.getElementById("root"));case 20:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),b=m.compose("render",{initialValue:y}),w=[];Promise.all(w).then(()=>{b()}).catch(e=>{window.console&&window.console.error(e)});t["default"]=null;n("hh8c")},L9pr:function(e,t,n){"use strict";t["a"]={today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"}},LIAx:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a;var i=n("E0u0"),o=r(i);function a(e,t,n,r){function i(t){var r=new o["default"](t);n.call(e,r)}if(e.addEventListener){var a=function(){var n=!1;return"object"===typeof r?n=r.capture||!1:"boolean"===typeof r&&(n=r),e.addEventListener(t,i,r||!1),{v:{remove:function(){e.removeEventListener(t,i,n)}}}}();if("object"===typeof a)return a.v}else if(e.attachEvent)return e.attachEvent("on"+t,i),{remove:function(){e.detachEvent("on"+t,i)}}}e.exports=t["default"]},LLXN:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],n=window,r=n.g_langSeparator,i=void 0===r?"-":r,o=new RegExp("^([a-z]{2})".concat(i,"?([A-Z]{2})?$"));if(void 0!==e&&!o.test(e))throw new Error("setLocale lang format error");if(u()!==e&&(window.g_lang=e,window.localStorage.setItem("umi_locale",e||""),a&&!t&&a.reloadAppLocale(),t&&window.location.reload(),window.dispatchEvent)){var s=new Event("languagechange");window.dispatchEvent(s)}}function u(){var e=window,t=e.g_langSeparator,n=void 0===t?"-":t,r=e.g_lang,i="undefined"!==typeof localStorage?window.localStorage.getItem("umi_locale"):"",o="undefined"!==typeof navigator&&"string"===typeof navigator.language,a=o?navigator.language.split("-").join(n):"";return i||r||a}var h,f=l({lang:u()}),d={};function p(e){h=e}function m(e){a=e}["formatMessage","formatHTMLMessage","formatDate","formatTime","formatRelative","formatNumber","formatPlural","LangContext","now","onError"].forEach(function(e){d[e]=function(){var t;return h&&h[e]?(t=h[e]).call.apply(t,[h].concat(Array.prototype.slice.call(arguments))):(console&&console.warn&&console.warn("[umi-plugin-locale] ".concat(e," not initialized yet, you should use it after react app mounted.")),null)}}),e.exports=i({},s,{},d,{setLocale:c,getLocale:u,_setIntlObject:p,LangContext:f,_setLocaleContext:m})},LMyI:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={switchLoading:{},saveLoading:!1};t["default"]={name:"serverShadowsocks",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/server/shadowsocks/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/shadowsocks/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},copy(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/shadowsocks/copy",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/server/shadowsocks/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"serverManage/getNodes"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()}}}},LPTA:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c});var r=n("ItGF"),i=1;r["a"].hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=i,a=.4,s="#333",l="#ccc",c="#eee"},LcXL:function(e,t,n){"use strict";var r=n("mrSG"),i=n("bYtY"),o=n("1bdT"),a=n("mFDi"),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=i["p"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i["p"](n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0)return!0;return!1}function ce(e,t){var n=new RegExp("[".concat(t.join(),"]"));return e.split(n).filter(function(e){return e})}function ue(e,t){if(t.props.disabled)return!1;var n=J(K(t,this.props.optionFilterProp)).join("");return n.toLowerCase().indexOf(e.toLowerCase())>-1}function he(e,t){if(!Z(t)&&!G(t)&&"string"!==typeof e)throw new Error("Invalid `value` of type `".concat(typeof e,"` supplied to Option, ")+"expected `string` when `tags/combobox` is `true`.")}function fe(e,t){return function(n){e[t]=n}}function de(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:7&n|8).toString(16)});return t}function pe(){return pe=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.needFocus,i=t.fireSearch,o=n.props,a=n.state;if(a.open!==e){n.props.onDropdownVisibleChange&&n.props.onDropdownVisibleChange(e);var s={open:e,backfillValue:""};!e&&Z(o)&&o.showSearch&&n.setInputValue("",i),e||n.maybeFocus(e,!!r),n.setState($e({open:e},s),function(){e&&n.maybeFocus(e,!!r)})}else n.maybeFocus(e,!!r)},n.setInputValue=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n.props.onSearch;e!==n.state.inputValue&&n.setState(function(n){return t&&e!==n.inputValue&&r&&r(e),{inputValue:e}},n.forcePopupAlign)},n.getValueByInput=function(e){var t=n.props,r=t.multiple,i=t.tokenSeparators,o=n.state.value,a=!1;return ce(e,i).forEach(function(e){var t=[e];if(r){var i=n.getValueByLabel(e);i&&-1===ne(o,i)&&(o=o.concat(i),a=!0,n.fireSelect(i))}else-1===ne(o,e)&&(o=o.concat(t),a=!0,n.fireSelect(e))}),a?o:void 0},n.getRealOpenState=function(e){var t=n.props.open;if("boolean"===typeof t)return t;var r=(e||n.state).open,i=n._options||[];return!Q(n.props)&&n.props.showSearch||r&&!i.length&&(r=!1),r},n.markMouseDown=function(){n._mouseDown=!0},n.markMouseLeave=function(){n._mouseDown=!1},n.handleBackfill=function(e){if(n.props.backfill&&(Z(n.props)||Y(n.props))){var t=q(e);Y(n.props)&&n.setInputValue(t,!1),n.setState({value:[t],backfillValue:t})}},n.filterOption=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue,i=n.state.value,o=i[i.length-1];if(!e||o&&o===n.state.backfillValue)return!0;var a=n.props.filterOption;return"filterOption"in n.props?!0===a&&(a=r.bind(Ue(n))):a=r.bind(Ue(n)),!a||("function"===typeof a?a.call(Ue(n),e,t):!t.props.disabled)},n.timeoutFocus=function(){var e=n.props.onFocus;n.focusTimer&&n.clearFocusTime(),n.focusTimer=window.setTimeout(function(){e&&e()},10)},n.clearFocusTime=function(){n.focusTimer&&(clearTimeout(n.focusTimer),n.focusTimer=null)},n.clearBlurTime=function(){n.blurTimer&&(clearTimeout(n.blurTimer),n.blurTimer=null)},n.clearComboboxTime=function(){n.comboboxTimer&&(clearTimeout(n.comboboxTimer),n.comboboxTimer=null)},n.updateFocusClassName=function(){var e=n.rootRef,t=n.props;n._focused?P()(e).add("".concat(t.prefixCls,"-focused")):P()(e).remove("".concat(t.prefixCls,"-focused"))},n.maybeFocus=function(e,t){if(t||e){var r=n.getInputDOMNode(),i=document,o=i.activeElement;r&&(e||Q(n.props))?o!==r&&(r.focus(),n._focused=!0):o!==n.selectionRef&&n.selectionRef&&(n.selectionRef.focus(),n._focused=!0)}},n.removeSelected=function(e,t){var r=n.props;if(!r.disabled&&!n.isChildDisabled(e)){t&&t.stopPropagation&&t.stopPropagation();var i=n.state.value,o=i.filter(function(t){return t!==e}),a=X(r);if(a){var s=e;r.labelInValue&&(s={key:e,label:n.getLabelBySingleValue(e)}),r.onDeselect&&r.onDeselect(s,n.getOptionBySingleValue(e))}n.fireChange(o)}},n.openIfHasChildren=function(){var e=n.props;(r["Children"].count(e.children)||Z(e))&&n.setOpenState(!0)},n.fireSelect=function(e){n.props.onSelect&&n.props.onSelect(n.getVLBySingleValue(e),n.getOptionBySingleValue(e))},n.fireChange=function(e){var t=n.props;"value"in t||n.setState({value:e},n.forcePopupAlign);var r=n.getVLForOnChange(e),i=n.getOptionsBySingleValue(e);t.onChange&&t.onChange(r,X(n.props)?i:i[0])},n.isChildDisabled=function(e){return L(n.props.children).some(function(t){var n=q(t);return n===e&&t.props&&t.props.disabled})},n.forcePopupAlign=function(){n.state.open&&n.selectTriggerRef&&n.selectTriggerRef.triggerRef&&n.selectTriggerRef.triggerRef.forcePopupAlign()},n.renderFilterOptions=function(){var e=n.state.inputValue,t=n.props,i=t.children,o=t.tags,a=t.notFoundContent,s=[],l=[],c=!1,u=n.renderFilterOptionsFromChildren(i,l,s);if(o){var h=n.state.value;h=h.filter(function(t){return-1===l.indexOf(t)&&(!e||String(t).indexOf(String(e))>-1)}),h.sort(function(e,t){return e.length-t.length}),h.forEach(function(e){var t=e,n=r["createElement"](R["b"],{style:oe,role:"option",attribute:ae,value:t,key:t},t);u.push(n),s.push(n)}),e&&s.every(function(t){return q(t)!==e})&&u.unshift(r["createElement"](R["b"],{style:oe,role:"option",attribute:ae,value:e,key:e},e))}return!u.length&&a&&(c=!0,u=[r["createElement"](R["b"],{style:oe,attribute:ae,disabled:!0,role:"option",value:"NOT_FOUND",key:"NOT_FOUND"},a)]),{empty:c,options:u}},n.renderFilterOptionsFromChildren=function(e,t,i){var o=[],a=n.props,s=n.state.inputValue,l=a.tags;return r["Children"].forEach(e,function(e){if(e){var a=e.type;if(a.isSelectOptGroup){var c=e.props.label,u=e.key;if(u||"string"!==typeof c?!c&&u&&(c=u):u=c,s&&n.filterOption(s,e)){var h=L(e.props.children).map(function(e){var t=q(e)||e.key;return r["createElement"](R["b"],$e({key:t,value:t},e.props))});o.push(r["createElement"](R["c"],{key:u,title:c},h))}else{var f=n.renderFilterOptionsFromChildren(e.props.children,t,i);f.length&&o.push(r["createElement"](R["c"],{key:u,title:c},f))}}else{F()(a.isSelectOption,"the children of `Select` should be `Select.Option` or `Select.OptGroup`, "+"instead of `".concat(a.name||a.displayName||e.type,"`."));var d=q(e);if(he(d,n.props),n.filterOption(s,e)){var p=r["createElement"](R["b"],$e({style:oe,attribute:ae,value:d,key:d,role:"option"},e.props));o.push(p),i.push(p)}l&&t.push(d)}}}),o},n.renderTopControlNode=function(){var e=n.state,t=e.open,i=e.inputValue,o=n.state.value,a=n.props,s=a.choiceTransitionName,l=a.prefixCls,c=a.maxTagTextLength,u=a.maxTagCount,h=a.showSearch,f=a.removeIcon,d=a.maxTagPlaceholder,p="".concat(l,"-selection__rendered"),m=null;if(Z(a)){var g=null;if(o.length){var v=!1,y=1;h&&t?(v=!i,v&&(y=.4)):v=!0;var b=o[0],w=n.getOptionInfoBySingleValue(b),x=w.label,_=w.title;g=r["createElement"]("div",{key:"value",className:"".concat(l,"-selection-selected-value"),title:z(_||x),style:{display:v?"block":"none",opacity:y}},x)}m=h?[g,r["createElement"]("div",{className:"".concat(l,"-search ").concat(l,"-search--inline"),key:"input",style:{display:t?"block":"none"}},n.getInputElement())]:[g]}else{var E,S=[],C=o;if(void 0!==u&&o.length>u){C=C.slice(0,u);var k=n.getVLForOnChange(o.slice(u,o.length)),O="+ ".concat(o.length-u," ...");d&&(O="function"===typeof d?d(k):d),E=r["createElement"]("li",$e({style:oe},ae,{role:"presentation",onMouseDown:te,className:"".concat(l,"-selection__choice ").concat(l,"-selection__choice__disabled"),key:"maxTagPlaceholder",title:z(O)}),r["createElement"]("div",{className:"".concat(l,"-selection__choice__content")},O))}X(a)&&(S=C.map(function(e){var t=n.getOptionInfoBySingleValue(e),i=t.label,o=t.title||i;c&&"string"===typeof i&&i.length>c&&(i="".concat(i.slice(0,c),"..."));var a=n.isChildDisabled(e),s=a?"".concat(l,"-selection__choice ").concat(l,"-selection__choice__disabled"):"".concat(l,"-selection__choice");return r["createElement"]("li",$e({style:oe},ae,{onMouseDown:te,className:s,role:"presentation",key:e||Ge,title:z(o)}),r["createElement"]("div",{className:"".concat(l,"-selection__choice__content")},i),a?null:r["createElement"]("span",{onClick:function(t){n.removeSelected(e,t)},className:"".concat(l,"-selection__choice__remove")},f||r["createElement"]("i",{className:"".concat(l,"-selection__choice__remove-icon")},"\xd7")))})),E&&S.push(E),S.push(r["createElement"]("li",{className:"".concat(l,"-search ").concat(l,"-search--inline"),key:"__input"},n.getInputElement())),m=X(a)&&s?r["createElement"](M["a"],{onLeave:n.onChoiceAnimationLeave,component:"ul",transitionName:s},S):r["createElement"]("ul",null,S)}return r["createElement"]("div",{className:p,ref:n.saveTopCtrlRef},n.getPlaceholderElement(),m)};var i=t.getOptionsInfoFromProps(e);if(e.tags&&"function"!==typeof e.filterOption){var o=Object.keys(i).some(function(e){return i[e].disabled});F()(!o,"Please avoid setting option to disabled in tags mode since user can always type text as tag.")}return n.state={value:t.getValueFromProps(e,!0),inputValue:e.combobox?t.getInputValueForCombobox(e,i,!0):"",open:e.defaultOpen,optionsInfo:i,backfillValue:"",skipBuildOptionsInfo:!0,ariaId:""},n.saveInputRef=fe(Ue(n),"inputRef"),n.saveInputMirrorRef=fe(Ue(n),"inputMirrorRef"),n.saveTopCtrlRef=fe(Ue(n),"topCtrlRef"),n.saveSelectTriggerRef=fe(Ue(n),"selectTriggerRef"),n.saveRootRef=fe(Ue(n),"rootRef"),n.saveSelectionRef=fe(Ue(n),"selectionRef"),n}return ze(t,e),Ve(t,[{key:"componentDidMount",value:function(){(this.props.autoFocus||this.state.open)&&this.focus(),this.setState({ariaId:de()})}},{key:"componentDidUpdate",value:function(){if(X(this.props)){var e=this.getInputDOMNode(),t=this.getInputMirrorDOMNode();e&&e.value&&t?(e.style.width="",e.style.width="".concat(t.clientWidth,"px")):e&&(e.style.width="")}this.forcePopupAlign()}},{key:"componentWillUnmount",value:function(){this.clearFocusTime(),this.clearBlurTime(),this.clearComboboxTime(),this.dropdownContainer&&(N["unmountComponentAtNode"](this.dropdownContainer),document.body.removeChild(this.dropdownContainer),this.dropdownContainer=null)}},{key:"focus",value:function(){Z(this.props)&&this.selectionRef?this.selectionRef.focus():this.getInputDOMNode()&&this.getInputDOMNode().focus()}},{key:"blur",value:function(){Z(this.props)&&this.selectionRef?this.selectionRef.blur():this.getInputDOMNode()&&this.getInputDOMNode().blur()}},{key:"renderArrow",value:function(e){var t=this.props,n=t.showArrow,i=void 0===n?!e:n,o=t.loading,a=t.inputIcon,s=t.prefixCls;if(!i&&!o)return null;var l=o?r["createElement"]("i",{className:"".concat(s,"-arrow-loading")}):r["createElement"]("i",{className:"".concat(s,"-arrow-icon")});return r["createElement"]("span",$e({key:"arrow",className:"".concat(s,"-arrow"),style:oe},ae,{onClick:this.onArrowClick}),a||l)}},{key:"renderClear",value:function(){var e=this.props,t=e.prefixCls,n=e.allowClear,i=e.clearIcon,o=this.state.inputValue,a=this.state.value,s=r["createElement"]("span",$e({key:"clear",className:"".concat(t,"-selection__clear"),onMouseDown:te,style:oe},ae,{onClick:this.onClearSelection}),i||r["createElement"]("i",{className:"".concat(t,"-selection__clear-icon")},"\xd7"));return n?Y(this.props)?o?s:null:o||a.length?s:null:null}},{key:"render",value:function(){var e,t=this.props,n=X(t),i=t.showArrow,o=void 0===i||i,a=this.state,s=t.className,l=t.disabled,c=t.prefixCls,u=t.loading,h=this.renderTopControlNode(),f=this.state,d=f.open,p=f.ariaId;if(d){var m=this.renderFilterOptions();this._empty=m.empty,this._options=m.options}var g=this.getRealOpenState(),v=this._empty,y=this._options||[],b={};Object.keys(t).forEach(function(e){!Object.prototype.hasOwnProperty.call(t,e)||"data-"!==e.substr(0,5)&&"aria-"!==e.substr(0,5)&&"role"!==e||(b[e]=t[e])});var w=$e({},b);Q(t)||(w=$e($e({},w),{onKeyDown:this.onKeyDown,tabIndex:t.disabled?-1:t.tabIndex}));var x=(e={},Ie(e,s,!!s),Ie(e,c,1),Ie(e,"".concat(c,"-open"),d),Ie(e,"".concat(c,"-focused"),d||!!this._focused),Ie(e,"".concat(c,"-combobox"),Y(t)),Ie(e,"".concat(c,"-disabled"),l),Ie(e,"".concat(c,"-enabled"),!l),Ie(e,"".concat(c,"-allow-clear"),!!t.allowClear),Ie(e,"".concat(c,"-no-arrow"),!o),Ie(e,"".concat(c,"-loading"),!!u),e);return r["createElement"](Ne,{onPopupFocus:this.onPopupFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,dropdownAlign:t.dropdownAlign,dropdownClassName:t.dropdownClassName,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,defaultActiveFirstOption:t.defaultActiveFirstOption,dropdownMenuStyle:t.dropdownMenuStyle,transitionName:t.transitionName,animation:t.animation,prefixCls:t.prefixCls,dropdownStyle:t.dropdownStyle,combobox:t.combobox,showSearch:t.showSearch,options:y,empty:v,multiple:n,disabled:l,visible:g,inputValue:a.inputValue,value:a.value,backfillValue:a.backfillValue,firstActiveValue:t.firstActiveValue,onDropdownVisibleChange:this.onDropdownVisibleChange,getPopupContainer:t.getPopupContainer,onMenuSelect:this.onMenuSelect,onMenuDeselect:this.onMenuDeselect,onPopupScroll:t.onPopupScroll,showAction:t.showAction,ref:this.saveSelectTriggerRef,menuItemSelectedIcon:t.menuItemSelectedIcon,dropdownRender:t.dropdownRender,ariaId:p},r["createElement"]("div",{id:t.id,style:t.style,ref:this.saveRootRef,onBlur:this.onOuterBlur,onFocus:this.onOuterFocus,className:T()(x),onMouseDown:this.markMouseDown,onMouseUp:this.markMouseLeave,onMouseOut:this.markMouseLeave},r["createElement"]("div",$e({ref:this.saveSelectionRef,key:"selection",className:"".concat(c,"-selection\n ").concat(c,"-selection--").concat(n?"multiple":"single"),role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-controls":p,"aria-expanded":g},w),h,this.renderClear(),this.renderArrow(!!n))))}}]),t}(r["Component"]);Qe.propTypes=k,Qe.defaultProps={prefixCls:"rc-select",defaultOpen:!1,labelInValue:!1,defaultActiveFirstOption:!0,showSearch:!0,allowClear:!1,placeholder:"",onChange:Ye,onFocus:Ye,onBlur:Ye,onSelect:Ye,onSearch:Ye,onDeselect:Ye,onInputKeyDown:Ye,dropdownMatchSelectWidth:!0,dropdownStyle:{},dropdownMenuStyle:{},optionFilterProp:"value",optionLabelProp:"value",notFoundContent:"Not Found",backfill:!1,showAction:["click"],tokenSeparators:[],autoClearSearchValue:!0,tabIndex:0,dropdownRender:function(e){return e}},Qe.getDerivedStateFromProps=function(e,t){var n=t.skipBuildOptionsInfo?t.optionsInfo:Qe.getOptionsInfoFromProps(e,t),r={optionsInfo:n,skipBuildOptionsInfo:!1};if("open"in e&&(r.open=e.open),e.disabled&&t.open&&(r.open=!1),"value"in e){var i=Qe.getValueFromProps(e);r.value=i,e.combobox&&(r.inputValue=Qe.getInputValueForCombobox(e,n))}return r},Qe.getOptionsFromChildren=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r["Children"].forEach(e,function(e){if(e){var n=e.type;n.isSelectOptGroup?Qe.getOptionsFromChildren(e.props.children,t):t.push(e)}}),t},Qe.getInputValueForCombobox=function(e,t,n){var r=[];if("value"in e&&!n&&(r=J(e.value)),"defaultValue"in e&&n&&(r=J(e.defaultValue)),!r.length)return"";r=r[0];var i=r;return e.labelInValue?i=r.label:t[ee(r)]&&(i=t[ee(r)].label),void 0===i&&(i=""),i},Qe.getLabelFromOption=function(e,t){return K(t,e.optionLabelProp)},Qe.getOptionsInfoFromProps=function(e,t){var n=Qe.getOptionsFromChildren(e.children),r={};if(n.forEach(function(t){var n=q(t);r[ee(n)]={option:t,value:n,label:Qe.getLabelFromOption(e,t),title:t.props.title,disabled:t.props.disabled}}),t){var i=t.optionsInfo,o=t.value;o&&o.forEach(function(e){var t=ee(e);r[t]||void 0===i[t]||(r[t]=i[t])})}return r},Qe.getValueFromProps=function(e,t){var n=[];return"value"in e&&!t&&(n=J(e.value)),"defaultValue"in e&&t&&(n=J(e.defaultValue)),e.labelInValue&&(n=n.map(function(e){return e.key})),n},Qe.displayName="Select",Object(I["polyfill"])(Qe);var Ze=Qe;n.d(t,"b",function(){return b}),n.d(t,"a",function(){return h}),Ze.Option=b,Ze.OptGroup=h;t["c"]=Ze},Lnex:function(e,t,n){var r=n("OeOC"),i=n("OsVd"),o=n("Spc3");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},LpSC:function(e,t,n){n("bZMm"),e.exports=self.fetch.bind(self)},LsAW:function(e,t){t.f={}.propertyIsEnumerable},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},MFj2:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("YEIV"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("V7oC"),u=n.n(c),h=n("FYw3"),f=n.n(h),d=n("mRg0"),p=n.n(d),m=n("q1tI"),g=n.n(m),v=n("17x9"),y=n.n(v),b=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");return"function"!==typeof t.componentWillReceiveProps?e:g.a.Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e},w=b;function x(e){var t=[];return g.a.Children.forEach(e,function(e){t.push(e)}),t}function _(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function E(e,t,n){var r=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for children");r=e}}),r}function S(e,t,n){var r=e.length===t.length;return r&&e.forEach(function(e,i){var o=t[i];e&&o&&(e&&!o||!e&&o?r=!1:e.key!==o.key?r=!1:n&&e.props[n]!==o.props[n]&&(r=!1))}),r}function C(e,t){var n=[],r={},i=[];return e.forEach(function(e){e&&_(t,e.key)?i.length&&(r[e.key]=i,i=[]):i.push(e)}),t.forEach(function(e){e&&Object.prototype.hasOwnProperty.call(r,e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(i),n}var k=n("i8i4"),O=n.n(k),T=n("EJiy"),A=n.n(T),P=n("/dDc"),M=n("PFWz"),R=n.n(M),j=0!==P["a"].endEvents.length,L=["Webkit","Moz","O","ms"],D=["-webkit-","-moz-","-o-","ms-",""];function N(e,t){for(var n=window.getComputedStyle(e,null),r="",i=0;i children");return g.a.createElement(z,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var o=t.component;if(o){var a=t;return"string"===typeof o&&(a=i()({className:t.className,style:t.style},t.componentProps)),g.a.createElement(o,a,r)}return r[0]||null}}]),t}(g.a.Component);Y.isAnimate=!0,Y.propTypes={className:y.a.string,style:y.a.object,component:y.a.any,componentProps:y.a.object,animation:y.a.object,transitionName:y.a.oneOfType([y.a.string,y.a.object]),transitionEnter:y.a.bool,transitionAppear:y.a.bool,exclusive:y.a.bool,transitionLeave:y.a.bool,onEnd:y.a.func,onEnter:y.a.func,onLeave:y.a.func,onAppear:y.a.func,showProp:y.a.string,children:y.a.node},Y.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:G,onEnter:G,onLeave:G,onAppear:G};var X=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var i=x(K(r));e.isValidChildByKey(i,t)?"appear"===n?W.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):W.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r=x(K(n));if(e.isValidChildByKey(r,t))e.performEnter(t);else{var i=function(){W.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};S(e.state.children,r,n.showProp)?i():e.setState({children:r},i)}}}};t["a"]=w(Y)},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),i=n("Y7ZC"),o=n("kTiW"),a=n("NegM"),s=n("SBuE"),l=n("j2DC"),c=n("RfKB"),u=n("U+KD"),h=n("UWiX")("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,w){l(n,t,v);var x,_,E,S=function(e){if(!f&&e in T)return T[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",k=y==m,O=!1,T=e.prototype,A=T[h]||T[d]||y&&T[y],P=A||S(y),M=y?k?S("entries"):P:void 0,R="Array"==t&&T.entries||A;if(R&&(E=u(R.call(new e)),E!==Object.prototype&&E.next&&(c(E,C,!0),r||"function"==typeof E[h]||a(E,h,g))),k&&A&&A.name!==m&&(O=!0,P=function(){return A.call(this)}),r&&!w||!f&&!O&&T[h]||a(T,h,P),s[t]=P,s[C]=g,y)if(x={values:k?P:S(m),keys:b?P:S(p),entries:M},w)for(_ in x)_ in T||o(T,_,x[_]);else i(i.P+i.F*(f||O),t,x);return x}},MWgS:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"a",function(){return r})},MgzW:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function s(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}e.exports=s()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}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 a(e){for(var t=1;t1&&0===n&&i&&"auto"!==i?parseInt(i.toString(),10):i},m);return u.createElement(h,Object.assign({},p,{style:g}),t.map(function(e,t){var n,i=e.column,o=e.isLast,l=r(e,["column","isLast"]),h=i.onHeaderCell?i.onHeaderCell(i):{};return i.align&&(h.style=a({},h.style,{textAlign:i.align})),h.className=f.default(h.className,i.className,(n={},s(n,"".concat(c,"-align-").concat(i.align),!!i.align),s(n,"".concat(c,"-row-cell-ellipsis"),!!i.ellipsis),s(n,"".concat(c,"-row-cell-break-word"),!!i.width),s(n,"".concat(c,"-row-cell-last"),o),n)),u.createElement(d,Object.assign({},l,h,{key:i.key||i.dataIndex||t}))}))}function p(e,t){var n=e.fixedColumnsHeadRowsHeight,r=t.columns,i=t.rows,o=t.fixed,a=n[0];return o&&a&&r?"auto"===a?"auto":a/i.length:null}t.default=h.connect(function(e,t){return{height:p(e,t)}})(d)},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},N2Kk:function(e,t,n){"use strict";t["a"]={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"}},N4uP:function(e,t,n){var r=n("c0Oy"),i=n("WGNW"),o=n("08Qx"),a=[].slice,s=/MSIE .\./.test(o),l=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},N9RS:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=(n("tI4l"),{payments:[],fetchLoading:!1});t["default"]={name:"payment",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/payment/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{payments:r.data}});case 12:case"end":return e.stop()}},e)})()},getPaymentMethods(e){return i.a.mark(function t(){var n,r;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,t.next=3,Object(s["a"])("/admin/payment/getPaymentMethods");case 3:if(r=t.sent,200===r.code){t.next=6;break}return t.abrupt("return");case 6:n(r.data);case 7:case"end":return t.stop()}},t)})()},getPaymentForm(e){return i.a.mark(function t(){var n,r,o,a;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,r=e.payment,o=e.id,t.next=3,Object(s["b"])("/admin/payment/getPaymentForm",{payment:r,id:o});case 3:if(a=t.sent,200===a.code){t.next=6;break}return t.abrupt("return");case 6:n(a.data);case 7:case"end":return t.stop()}},t)})()},save(e,t){return i.a.mark(function n(){var r,o,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.complete,l=t.put,n.next=4,Object(s["b"])("/admin/payment/save",a()({},r));case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return"function"===typeof o&&o(c.data),n.next=10,l({type:"fetch"});case 10:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/payment/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/payment/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},sort(e,t){return i.a.mark(function n(){var r,o,a,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.fromIndex,o=e.toIndex,a=t.select,l=t.put,n.next=4,l({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,a(e=>e.payment);case 6:return c=n.sent,u=c.payments,re.id)});case 13:if(h=n.sent,200===h.code){n.next=16;break}return n.abrupt("return");case 16:return n.next=18,l({type:"fetch"});case 18:case"end":return n.stop()}},n)})()}}}},NC18:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("IMiH"),a=n("QBsz"),s=o["a"].CMD,l=[[],[],[]],c=Math.sqrt,u=Math.atan2;function h(e,t){if(t){var n,r,i,o,h,f,d=e.data,p=e.len(),m=s.M,g=s.C,v=s.L,y=s.R,b=s.A,w=s.Q;for(i=0,o=0;i1&&(a*=d(w),s*=d(w));var x=(i===o?-1:1)*d((a*a*(s*s)-a*a*(v*v)-s*s*(f*f))/(a*a*(v*v)+s*s*(f*f)))||0,_=x*a*v/s,E=x*-s*f/a,S=(e+n)/2+m(h)*_-p(h)*E,C=(t+r)/2+p(h)*_+m(h)*E,k=b([1,0],[(f-_)/a,(v-E)/s]),O=[(f-_)/a,(v-E)/s],T=[(-1*f-_)/a,(-1*v-E)/s],A=b(O,T);if(y(O,T)<=-1&&(A=g),y(O,T)>=1&&(A=0),A<0){var P=Math.round(A/g*1e6)/1e6;A=2*g+P%2*g}u.addData(c,S,C,a,s,k,A,h,o)}var x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function E(e){var t=new o["a"];if(!e)return t;var n,r=0,i=0,a=r,s=i,l=o["a"].CMD,c=e.match(x);if(!c)return t;for(var u=0;u=0&&r(c)?c:.5;var u=e.createRadialGradient(s,l,0,s,l,c);return u}function a(e,t,n){for(var r="radial"===t.type?o(e,t,n):i(e,t,n),a=t.colorStops,s=0;s0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},O8oq:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=(n("tI4l"),{themes:[],active:void 0});t["default"]={name:"theme",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{getThemes(e,t){return i.a.mark(function e(){var n,r,o,a;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return o=t.put,e.next=3,o({type:"setState",payload:{getThemesLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/theme/getThemes");case 5:return a=e.sent,e.next=8,o({type:"setState",payload:{getThemesLoading:!1}});case 8:if(200===a.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,o({type:"setState",payload:{themes:null===a||void 0===a?void 0:null===(n=a.data)||void 0===n?void 0:n.themes,active:null===a||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.active}});case 12:case"end":return e.stop()}},e)})()},getThemeConfig(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.name,o=e.complete,a=t.put,n.next=4,a({type:"setState",payload:{getThemeConfigLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/theme/getThemeConfig",{name:r});case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{getThemeConfigLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:"function"===typeof o&&o(l.data);case 12:case"end":return n.stop()}},n)})()},saveThemeConfig(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.config,o=e.name,a=e.complete,l=t.put,n.next=4,l({type:"setState",payload:{saveThemeConfigLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/theme/saveThemeConfig",{config:r,name:o});case 6:return c=n.sent,n.next=9,l({type:"setState",payload:{saveThemeConfigLoading:!1}});case 9:if(200===c.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,l({type:"getThemes"});case 13:"function"===typeof a&&a(c.data);case 14:case"end":return n.stop()}},n)})()}}}},OERk:function(e,t,n){"use strict";var r=n("DIcO"),i=n("48Dx"),o=n("yw4e"),a=n("OeOC");e.exports=n("XdPT")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},OHgp:function(e,t,n){"use strict";var r=n("2a/h"),i={};i[n("gL7N")("toStringTag")]="z",i+""!="[object z]"&&n("rKIl")(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},OJuA:function(e,t,n){"use strict";e.exports=n("FqPH")||!n("wUWy")(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n("c0Oy")[e]})},OLES:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("jo6Y"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("FYw3"),u=n.n(c),h=n("mRg0"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("17x9"),g=n.n(m),v=n("uciX"),y=n("7ixt"),b=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.trigger;e&&e.forcePopupAlign()},t.prototype.render=function(){var e=this.props,t=e.overlay,n=e.prefixCls,r=e.id;return p.a.createElement("div",{className:n+"-inner",id:r,role:"tooltip"},"function"===typeof t?t():t)},t}(p.a.Component);b.propTypes={prefixCls:g.a.string,overlay:g.a.oneOfType([g.a.node,g.a.func]).isRequired,id:g.a.string,trigger:g.a.any};var w=b,x=function(e){function t(){var n,r,i;l()(this,t);for(var o=arguments.length,a=Array(o),s=0;s{if(!this.props.disableRightClick)return{onClick:e=>{this.props.onContextMenu&&(this.props.onContextMenu(void 0),document.getElementById("v2board-table-dropdown").style="display:none;")},onDoubleClick:e=>{},onContextMenu:t=>{this.props.onContextMenu&&(t.preventDefault(),this.forceUpdate(),this.props.onContextMenu&&this.props.onContextMenu(e),document.getElementById("v2board-table-dropdown").style="top: ".concat(t.clientY,"px; left: ").concat(t.clientX,"px;display:unset;"))},onMouseEnter:e=>{},onMouseLeave:e=>{}}}})),s.a.createElement("div",{id:"v2board-table-dropdown",className:"ant-dropdown ant-dropdown-placement-bottomLeft",style:{display:"none",position:"fixed",top:0,left:0},onClick:()=>{this.props.onContextMenu&&(document.getElementById("v2board-table-dropdown").style="display:none;")}},this.props.children))}}},OeOC:function(e,t,n){var r=n("9WFV"),i=n("ZDr/");e.exports=function(e){return r(i(e))}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},Onz0:function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function l(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function u(e){return void 0===e}function h(e){return"[object RegExp]"===v(e)}function f(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function m(e){return"function"===typeof e}function g(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function v(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=a,t.isNumber=s,t.isString=l,t.isSymbol=c,t.isUndefined=u,t.isRegExp=h,t.isObject=f,t.isDate=d,t.isError=p,t.isFunction=m,t.isPrimitive=g,t.isBuffer=n("tjlA").Buffer.isBuffer},OsVd:function(e,t,n){var r=n("AUWw"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},P7XM:function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},PFWz:function(e,t,n){try{var r=n("zs13")}catch(e){r=n("zs13")}var i=/\s+/,o=Object.prototype.toString;function a(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}e.exports=function(e){return new a(e)},a.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=r(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},a.prototype.remove=function(e){if("[object RegExp]"==o.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},a.prototype.removeMatching=function(e){for(var t=this.array(),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]&&arguments[4];n&&n.stopPropagation();var a=r.props,l=a.onExpandedRowsChange,c=a.onExpand,u=r.store.getState(),h=u.expandedRowKeys;if(e)h=[].concat(s(h),[i]);else{var f=h.indexOf(i);-1!==f&&(h=P.remove(h,i))}r.props.expandedRowKeys||r.store.setState({expandedRowKeys:h}),r.latestExpandedRows&&T.default(r.latestExpandedRows,h)||(r.latestExpandedRows=h,l(h)),o||c(e,t)},r.renderExpandIndentCell=function(e,t){var n=r.props,i=n.prefixCls,a=n.expandIconAsCell;if(a&&"right"!==t&&e.length){var s={key:"rc-table-expand-icon-cell",className:"".concat(i,"-expand-icon-th"),title:"",rowSpan:e.length};e[0].unshift(o({},s,{column:s}))}},r.renderRows=function(e,t,n,i,o,a,l,c){var u=r.props,h=u.expandedRowClassName,f=u.expandedRowRender,d=u.childrenColumnName,p=n[d],m=[].concat(s(c),[l]),g=o+1;f&&t.push(r.renderExpandedRow(n,i,f,h(n,i,o),m,g,a)),p&&t.push.apply(t,s(e(p,g,m)))};var i=e.data,a=e.childrenColumnName,l=e.defaultExpandAllRows,c=e.expandedRowKeys,u=e.defaultExpandedRowKeys,h=e.getRowKey,f=[],p=s(i);if(l)for(var m=0;m{this.state.visible||this.setState({submit:this.defaultValue})})}generate(){var e=v()({},this.state.submit);this.props.dispatch({type:"coupon/generate",params:e,callback:()=>{this.modalVisible()}})}drop(e){this.props.dispatch({type:"coupon/drop",id:e.id})}tableOnChange(e,t){this.props.dispatch({type:"coupon/changeTable",pagination:e,sort:{sort_type:"ascend"===t.order?"ASC":"DESC",sort:t.columnKey}})}render(){var e=this.props.coupon,t=e.coupons,n=e.fetchLoading,r=e.saveLoading,g=e.pagination,y=this.props.plan.plans,x=[{title:"#",dataIndex:"id",key:"id"},{title:"\u542f\u7528",dataIndex:"show",key:"show",render:(e,t)=>{return b.a.createElement(m["a"],{size:"small",onChange:()=>this.props.dispatch({type:"coupon/show",id:t.id}),checked:e})}},{title:"\u5238\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u7c7b\u578b",dataIndex:"type",key:"type",render:e=>{return 1===e?"\u91d1\u989d":"\u6bd4\u4f8b"}},{title:"\u5238\u7801",dataIndex:"code",key:"code",render:e=>{return b.a.createElement(d["a"],{style:{cursor:"pointer"},onClick:()=>{S()(e),p["a"].success("\u590d\u5236\u6210\u529f")}},e)}},{title:"\u5269\u4f59\u6b21\u6570",dataIndex:"limit_use",key:"limit_use",render:e=>{return b.a.createElement(d["a"],null,null!==e?e:"\u65e0\u9650")}},{title:"\u6709\u6548\u671f",dataIndex:"started_at",key:"started_at",align:"left",render:(e,t)=>{return"".concat(_()(1e3*t.started_at).format("YYYY/MM/DD HH:mm")," ~ ").concat(_()(1e3*t.ended_at).format("YYYY/MM/DD HH:mm"))}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,n,r)=>{return b.a.createElement("div",null,b.a.createElement("a",{onClick:()=>{this.setState({submit:t[r]},()=>{this.modalVisible()})},href:"javascript:void(0);"},"\u7f16\u8f91"),b.a.createElement(f["a"],{type:"vertical"}),b.a.createElement("a",{onClick:()=>{h["a"].confirm({title:"\u8b66\u544a",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u9879\u76ee\u5417\uff1f",onOk:()=>this.drop(n),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})},href:"javascript:void(0);"},"\u5220\u9664"))}}];return b.a.createElement(w["a"],i()({},this.props,{title:"\u4f18\u60e0\u5238\u7ba1\u7406"}),b.a.createElement(O["a"],{loading:n},b.a.createElement("div",{className:"block border-bottom"},b.a.createElement("div",{className:"bg-white"},b.a.createElement("div",{style:{padding:15}},b.a.createElement(c["a"],{onClick:()=>this.modalVisible()},b.a.createElement(u["a"],{type:"plus"})," \u6dfb\u52a0\u4f18\u60e0\u5238")),b.a.createElement(l["a"],{tableLayout:"auto",dataSource:t,columns:x,scroll:{x:1050},pagination:v()({},g,{size:"small",showSizeChanger:!0,pageSizeOptions:[10,50,100,150]}),onChange:(e,t,n)=>this.tableOnChange(e,n)})))),b.a.createElement(h["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u4f18\u60e0\u5238":"\u65b0\u5efa\u4f18\u60e0\u5238"),visible:this.state.visible,onCancel:()=>this.modalVisible(),onOk:()=>this.generate(),okText:"\u63d0\u4ea4",cancelText:"\u53d6\u6d88",okButtonProps:{loading:r},key:this.key},b.a.createElement("div",null,b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u540d\u79f0"),b.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u5238\u540d\u79f0",value:this.state.submit.name,onChange:e=>{this.setState({submit:v()({},this.state.submit,{name:e.target.value})})}})),!this.state.submit.generate_count&&b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u81ea\u5b9a\u4e49\u4f18\u60e0\u5238\u7801"),b.a.createElement(s["a"],{placeholder:"\u81ea\u5b9a\u4e49\u4f18\u60e0\u5238\u7801(\u7559\u7a7a\u968f\u673a\u751f\u6210)",value:this.state.submit.code,onChange:e=>{this.setState({submit:v()({},this.state.submit,{code:e.target.value,generate_count:void 0})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u4f18\u60e0\u4fe1\u606f"),b.a.createElement(s["a"],{type:"number",addonBefore:b.a.createElement(a["a"],{style:{width:120},value:this.state.submit.type,onChange:e=>{this.setState({submit:v()({},this.state.submit,{type:e})})}},b.a.createElement(a["a"].Option,{value:1},"\u6309\u91d1\u989d\u4f18\u60e0"),b.a.createElement(a["a"].Option,{value:2},"\u6309\u6bd4\u4f8b\u4f18\u60e0")),addonAfter:1===this.state.submit.type?"\xa5":"%",placeholder:"\u8bf7\u8f93\u5165\u503c",value:this.state.submit.value,onChange:e=>{this.setState({submit:v()({},this.state.submit,{value:e.target.value})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u4f18\u60e0\u5238\u6709\u6548\u671f"),b.a.createElement(o["a"].RangePicker,{style:{width:"100%"},showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",placeholder:["Start Time","End Time"],value:[this.state.submit.started_at?_()(1e3*this.state.submit.started_at):null,this.state.submit.ended_at?_()(1e3*this.state.submit.ended_at):null],onChange:e=>this.setState({submit:v()({},this.state.submit,{started_at:e[0]?e[0].format("X"):null,ended_at:e[1]?e[1].format("X"):null})}),onOk:e=>this.setState({submit:v()({},this.state.submit,{started_at:e[0]?e[0].format("X"):null,ended_at:e[1]?e[1].format("X"):null})})})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u6700\u5927\u4f7f\u7528\u6b21\u6570"),b.a.createElement(s["a"],{placeholder:"\u9650\u5236\u6700\u5927\u4f7f\u7528\u6b21\u6570\uff0c\u7528\u5b8c\u5219\u65e0\u6cd5\u4f7f\u7528(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",value:this.state.submit.limit_use,onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_use:e.target.value})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6bcf\u4e2a\u7528\u6237\u53ef\u4f7f\u7528\u6b21\u6570"),b.a.createElement(s["a"],{placeholder:"\u9650\u5236\u6bcf\u4e2a\u7528\u6237\u53ef\u4f7f\u7528\u6b21\u6570(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",value:this.state.submit.limit_use_with_user,onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_use_with_user:e.target.value})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u6307\u5b9a\u8ba2\u9605"),b.a.createElement("div",null,b.a.createElement(a["a"],{value:this.state.submit.limit_plan_ids||[],onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_plan_ids:e.length?e:null})})},mode:"multiple",placeholder:"\u9650\u5236\u6307\u5b9a\u8ba2\u9605\u53ef\u4ee5\u4f7f\u7528\u4f18\u60e0(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",style:{width:"100%"}},y.map(e=>{return b.a.createElement(a["a"].Option,{key:Math.random(),value:"".concat(e.id)},e.name)})))),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6307\u5b9a\u5468\u671f"),b.a.createElement("div",null,b.a.createElement(a["a"],{value:this.state.submit.limit_period||[],onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_period:e.length?e:null})})},mode:"multiple",placeholder:"\u9650\u5236\u6307\u5b9a\u5468\u671f\u53ef\u4ee5\u4f7f\u7528\u4f18\u60e0(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",style:{width:"100%"}},Object.keys(k["a"].periodText).map(e=>{return b.a.createElement(a["a"].Option,{key:Math.random(),value:e},k["a"].periodText[e])})))),!this.state.submit.code&&!this.state.submit.id&&b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u751f\u6210\u6570\u91cf"),b.a.createElement(s["a"],{placeholder:"\u8f93\u5165\u6570\u91cf\u6279\u91cf\u751f\u6210",value:this.state.submit.generate_count,onChange:e=>{this.setState({submit:v()({},this.state.submit,{generate_count:e.target.value,code:void 0})})}})))))}}t["default"]=Object(C["c"])(e=>{var t=e.coupon,n=e.plan;return{coupon:t,plan:n}})(T)},Q6cQ:function(e,t,n){"use strict";var r=n("u8+u"),i=n("BFt8"),o=n("gL7N")("hasInstance"),a=Function.prototype;o in a||n("V5/1").f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=i(e))if(this.prototype===e)return!0;return!1}})},QBsz:function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e){return[e[0],e[1]]}function o(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function a(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function s(e){return Math.sqrt(l(e))}n.d(t,"d",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"m",function(){return a}),n.d(t,"l",function(){return c}),n.d(t,"k",function(){return u}),n.d(t,"g",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"f",function(){return p}),n.d(t,"h",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"j",function(){return v}),n.d(t,"i",function(){return y});function l(e){return e[0]*e[0]+e[1]*e[1]}function c(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function u(e,t){var n=s(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function h(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var f=h;function d(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var p=d;function m(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function g(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function v(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function y(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},"QC+M":function(e,t,n){"use strict";n.d(t,"a",function(){return w});var r=n("q1tI"),i=n.n(r),o=n("i8i4"),a=n.n(o),s=n("17x9"),l=n.n(s);function c(e){"@babel/helpers - typeof";return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n255?255:e}function a(e){return e<0?0:e>1?1:e}function s(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100):a(parseFloat(t))}function c(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function u(e,t,n){return e+(t-e)*n}function h(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var d=new r["a"](20),p=null;function m(e,t){p&&f(p,t),p=d.put(e,p||t.slice())}function g(e,t){if(e){t=t||[];var n=d.get(e);if(n)return f(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in i)return f(t,i[r]),m(e,t),t;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),c=r.indexOf(")");if(-1!==a&&c+1===o){var u=r.substr(0,a),p=r.substr(a+1,c-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==p.length)return 3===p.length?h(t,+p[0],+p[1],+p[2],1):h(t,0,0,0,1);g=l(p.pop());case"rgb":return p.length>=3?(h(t,s(p[0]),s(p[1]),s(p[2]),3===p.length?g:l(p[3])),m(e,t),t):void h(t,0,0,0,1);case"hsla":return 4!==p.length?void h(t,0,0,0,1):(p[3]=l(p[3]),v(p,t),m(e,t),t);case"hsl":return 3!==p.length?void h(t,0,0,0,1):(v(p,t),m(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(h(t,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),m(e,t),t):void h(t,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(h(t,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),m(e,t),t):void h(t,0,0,0,1)}}}}function v(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=l(e[1]),i=l(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return t=t||[],h(t,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e,t){var n=g(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return w(n,4===n.length?"rgba":"rgb")}}function b(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=g(t[i]),c=g(t[s]),h=r-i,f=w([o(u(l[0],c[0],h)),o(u(l[1],c[1],h)),o(u(l[2],c[2],h)),a(u(l[3],c[3],h))],"rgba");return n?{color:f,leftIndex:i,rightIndex:s,value:r}:f}}function w(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function x(e,t){var n=g(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}},QeHl:function(e,t,n){n("Jaki")("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},Qg4q:function(e,t,n){"use strict";n("2qtc");var r=n("kLXV"),i=(n("OaEy"),n("2fM7")),o=(n("iQDF"),n("+eQT")),a=(n("5NDa"),n("5rEg")),s=n("p0pE"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("/MKj"),f=n("wd/R"),d=n.n(f);class p extends u.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{}}}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1,submit:{}})}formChange(e,t){var n=this.state.submit;n[e]=t,this.setState({submit:n})}submit(){var e=l()({},this.state.submit);this.props.dispatch({type:"user/generate",params:e,callback:()=>{this.hide()}})}render(){var e=this.props.user,t=e.user,n=e.generateLoading,s=this.props.plan.plans,l=this.state,c=l.visible,h=l.submit;return u.a.createElement(u.a.Fragment,null,u.a.cloneElement(this.props.children,{onClick:()=>this.show()}),u.a.createElement(r["a"],{title:"\u521b\u5efa\u7528\u6237",visible:c,onCancel:()=>this.hide(),cancelText:"\u53d6\u6d88",onOk:()=>this.submit(),okButtonProps:{loading:n},okText:"\u751f\u6210"},u.a.createElement("div",null,u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u90ae\u7bb1"),u.a.createElement(a["a"].Group,{compact:!0},!h.generate_count&&u.a.createElement(a["a"],{placeholder:"\u8d26\u53f7\uff08\u6279\u91cf\u751f\u6210\u8bf7\u7559\u7a7a\uff09",style:{width:"45%"},value:h.email_prefix,onChange:e=>this.formChange("email_prefix",e.target.value)}),u.a.createElement(a["a"],{placeholder:"@",style:{width:"10%",textAlign:"center"},disabled:!0}),u.a.createElement(a["a"],{placeholder:"\u57df",style:{width:"45%"},value:h.email_suffix,onChange:e=>this.formChange("email_suffix",e.target.value)}))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5bc6\u7801"),u.a.createElement(a["a"],{value:h.password,placeholder:"\u7559\u7a7a\u5219\u5bc6\u7801\u4e0e\u90ae\u7bb1\u76f8\u540c",onChange:e=>this.formChange("password",e.target.value)})),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5230\u671f\u65f6\u95f4"),u.a.createElement("div",null,u.a.createElement(o["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u5230\u671f\u65e5\u671f\uff0c\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236\u5230\u671f\u65f6\u95f4",defaultValue:h.expired_at&&d()(1e3*t.expired_at),style:{width:"100%"},onChange:e=>this.formChange("expired_at",e?e.format("X"):null)}))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u8ba2\u9605\u8ba1\u5212"),u.a.createElement(i["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u8ba2\u9605\u8ba1\u5212",style:{width:"100%"},value:h.plan_id||null,onChange:e=>this.formChange("plan_id",e)},u.a.createElement(i["a"].Option,{value:null},"\u65e0"),s.map(e=>{return u.a.createElement(i["a"].Option,{key:Math.random(),value:e.id},e.name)}))),!h.email_prefix&&u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u751f\u6210\u6570\u91cf"),u.a.createElement(a["a"],{value:h.generate_count,placeholder:"\u5982\u679c\u4e3a\u6279\u91cf\u751f\u6210\u8bf7\u8f93\u5165\u751f\u6210\u6570\u91cf",onChange:e=>this.formChange("generate_count",e.target.value)})))))}}t["a"]=Object(h["c"])(e=>{var t=e.user,n=e.plan;return{user:t,plan:n}})(p)},QpuX:function(e,t,n){e.exports=n("+qE3").EventEmitter},QsMh:function(e,t,n){"use strict";var r=n("WGNW"),i=n("wYm8"),o=n("il4q"),a=n("wUWy"),s=[].sort,l=[1,2,3];r(r.P+r.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!n("l0kz")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},QuXc:function(e,t,n){"use strict";var r=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();t["a"]=r},"R+7+":function(e,t,n){var r=n("w6GO"),i=n("mqlF"),o=n("NV0k");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},R1X6:function(e,t,n){"use strict";var r=Math.round(9*Math.random()),i="function"===typeof Object.defineProperty,o=function(){function e(){this._id="__ec_inner_"+r++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return i?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();t["a"]=o},R5jr:function(e,t,n){"use strict";t["default"]={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"}}},"R64+":function(e,t,n){"use strict";t.__esModule=!0;var r=n("GB+t"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){var e=null,t=function(t){return(0,i.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,o){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,o):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},r=[],o=function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},a=function(){for(var e=arguments.length,t=Array(e),n=0;n{this.props.dispatch({type:"ticket/filter",filter:{[e]:t},pagination:{pageSize:10,current:1}})},300)}render(){var e=this.props.ticket,t=e.tickets,n=e.fetchLoading,r=e.pagination,a=e.filter,f=["\u4f4e","\u4e2d","\u9ad8"],m=[{title:"#",dataIndex:"id",key:"id"},{title:"\u4e3b\u9898",dataIndex:"subject",key:"subject"},{title:"\u5de5\u5355\u7ea7\u522b",dataIndex:"level",key:"level",render:e=>{return f[e]}},{title:"\u5de5\u5355\u72b6\u6001",dataIndex:"reply_status",key:"reply_status",filters:1!==a.status&&[{text:"\u5df2\u56de\u590d",value:0},{text:"\u5f85\u56de\u590d",value:1}],render:(e,t)=>{return 1===t.status?d.a.createElement("span",null,d.a.createElement(h["a"],{status:"success"}),"\u5df2\u5173\u95ed"):d.a.createElement("span",null,d.a.createElement(h["a"],{status:e?"error":"processing"}),e?"\u5f85\u56de\u590d":"\u5df2\u56de\u590d")}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"created_at",key:"created_at",render:e=>{return v()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u6700\u540e\u56de\u590d",dataIndex:"updated_at",key:"updated_at",render:e=>{return v()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t)=>{return d.a.createElement("div",null,d.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.toChat(t.id)},"\u67e5\u770b"),d.a.createElement(u["a"],{type:"vertical"}),d.a.createElement("a",{disabled:t.status,href:"javascript:void(0);",onClick:()=>this.close(t.id)},"\u5173\u95ed"))}}];return d.a.createElement(p["a"],i()({},this.props,{title:"\u5de5\u5355\u7ba1\u7406"}),d.a.createElement(y["a"],{loading:n},d.a.createElement("div",{className:"block border-bottom"},d.a.createElement("div",{className:"bg-white"},d.a.createElement("div",{className:"p-3"},d.a.createElement(c["a"].Group,{value:a.status,onChange:e=>this.filter("status",e.target.value)},d.a.createElement(c["a"].Button,{value:0},"\u5df2\u5f00\u542f"),d.a.createElement(c["a"].Button,{value:1},"\u5df2\u5173\u95ed")),d.a.createElement("div",{style:{float:"right"}},d.a.createElement(l["a"],{placeholder:"\u8f93\u5165\u90ae\u7bb1\u641c\u7d22",onChange:e=>this.onSearch("email",e.target.value)}))),d.a.createElement(o["a"],{tableLayout:"auto",dataSource:t,pagination:s()({},r,{size:"small"}),columns:m,scroll:{x:900},onChange:(e,t,n)=>this.tableOnChange(e,n,t)})))))}}t["default"]=Object(m["c"])(e=>{var t=e.ticket;return{ticket:t}})(b)},"RU/L":function(e,t,n){n("Rqdy");var r=n("WEpk").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},RXBc:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return s});var r=n("q1tI"),i=n.n(r),o=n("3a4m"),a=n.n(o);class s extends i.a.Component{componentDidMount(){a.a.push("/login")}render(){return i.a.createElement("div",null)}}},RXMa:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(i["b"]);a.prototype.type="ring",t["a"]=a},RfKB:function(e,t,n){var r=n("2faE").f,i=n("B+OT"),o=n("UWiX")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},RoFp:function(e,t,n){"use strict";var r=n("lm0R");function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:o}},Rqdy:function(e,t,n){var r=n("Y7ZC");r(r.S+r.F*!n("jmDH"),"Object",{defineProperty:n("2faE").f})},S8SX:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return o});var r=1,i=2,o=4},SBuE:function(e,t){e.exports={}},SEkw:function(e,t,n){e.exports={default:n("RU/L"),__esModule:!0}},SGa5:function(e,t,n){"use strict";n.r(t);n("2qtc");var r=n("kLXV"),i=(n("Pwec"),n("CtXQ")),o=n("q1tI"),a=n.n(o),s=n("/MKj");class l extends a.a.Component{constructor(e){super(e),this.state={},this.keyDown=this.keyDown.bind(this)}keyDown(e){13===e.keyCode&&this.login()}componentDidMount(){var e=this.props.location.query.verify,t=this.props.location.query.redirect;e&&this.props.dispatch({type:"passport/token2Login",verify:e,redirect:t}),this.props.dispatch({type:"user/checkLogin",redirect:t}),window.addEventListener("keydown",this.keyDown,!1)}componentWillUnmount(){window.removeEventListener("keydown",this.keyDown,!1)}login(){this.props.dispatch({type:"passport/login",email:this.refs.email.value,password:this.refs.password.value})}render(){var e=this.props.passport.loginLoading;return a.a.createElement("div",{id:"page-container"},a.a.createElement("main",{id:"main-container"},a.a.createElement("div",{className:"v2board-background",style:{backgroundImage:window.settings.background_url&&"url(".concat(window.settings.background_url,")")}}),a.a.createElement("div",{className:"no-gutters v2board-auth-box"},a.a.createElement("div",{className:"",style:{maxWidth:450,width:"100%",margin:"auto"}},a.a.createElement("div",{className:"mx-2 mx-sm-0"},a.a.createElement("div",{className:"block block-rounded block-transparent block-fx-pop w-100 mb-0 overflow-hidden bg-image",style:{boxShadow:"0 0.5rem 2rem #0000000d"}},a.a.createElement("div",{className:"row no-gutters"},a.a.createElement("div",{className:"col-md-12 order-md-1 bg-white"},a.a.createElement("div",{className:"block-content block-content-full px-lg-4 py-md-4 py-lg-4"},a.a.createElement("div",{className:"mb-3 text-center"},a.a.createElement("a",{className:"font-size-h1",href:"javascript:void(0);"},window.settings.logo?a.a.createElement("img",{className:"v2board-logo mb-3",src:window.settings.logo}):a.a.createElement("span",{className:"text-dark"},window.settings.title||"V2Board")),a.a.createElement("p",{className:"font-size-sm text-muted mb-3"},"\u767b\u5f55\u5230\u7ba1\u7406\u4e2d\u5fc3")),a.a.createElement("div",{className:"form-group"},a.a.createElement("input",{type:"text",className:"form-control form-control-alt",placeholder:"\u90ae\u7bb1",ref:"email"})),a.a.createElement("div",{className:"form-group"},a.a.createElement("input",{type:"password",className:"form-control form-control-alt",placeholder:"\u5bc6\u7801",ref:"password"})),a.a.createElement("div",{className:"form-group mb-0"},a.a.createElement("button",{disabled:e,type:"submit",className:"btn btn-block btn-primary font-w400",onClick:()=>this.login()},e?a.a.createElement(i["a"],{type:"loading"}):a.a.createElement("span",null,a.a.createElement("i",{className:"si si-login mr-1"}),"\u767b\u5165")))))),a.a.createElement("div",{className:"text-center bg-gray-lighter p-3 px-4"},a.a.createElement("a",{onClick:()=>{r["a"].info({title:"\u5fd8\u8bb0\u5bc6\u7801",content:a.a.createElement("div",null,a.a.createElement("div",null,"\u5728\u7ad9\u70b9\u76ee\u5f55\u4e0b\u6267\u884c\u547d\u4ee4\u627e\u56de\u5bc6\u7801"),a.a.createElement("code",null,"php artisan reset:password \u7ba1\u7406\u5458\u90ae\u7bb1")),centered:!0,okText:"\u6211\u77e5\u9053\u4e86",onOk(){}})}},"\u5fd8\u8bb0\u5bc6\u7801"))))))))}}t["default"]=Object(s["c"])(e=>{var t=e.passport;return{passport:t}})(l)},SKnc:function(e,t,n){"use strict";var r=n("mrSG"),i=n("QuXc"),o=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},SPFY:function(e,t,n){n("Jaki")("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},SfDG:function(e,t,n){var r=n("u8+u"),i=n("c0Oy").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},Sj9i:function(e,t,n){"use strict";n.d(t,"a",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"f",function(){return v}),n.d(t,"c",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"e",function(){return w}),n.d(t,"d",function(){return x}),n.d(t,"h",function(){return _}),n.d(t,"i",function(){return E}),n.d(t,"m",function(){return S}),n.d(t,"j",function(){return C}),n.d(t,"n",function(){return k}),n.d(t,"l",function(){return O}),n.d(t,"k",function(){return T});var r=n("QBsz"),i=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),c=1/3,u=Object(r["d"])(),h=Object(r["d"])(),f=Object(r["d"])();function d(e){return e>-a&&ea||e<-a}function m(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function g(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function v(e,t,n,r,a,s){var u=r+3*(t-n)-e,h=3*(n-2*t+e),f=3*(t-e),p=e-a,m=h*h-3*u*f,g=h*f-9*u*p,v=f*f-3*h*p,y=0;if(d(m)&&d(g))if(d(h))s[0]=0;else{var b=-f/h;b>=0&&b<=1&&(s[y++]=b)}else{var w=g*g-4*m*v;if(d(w)){var x=g/m,_=(b=-h/u+x,-x/2);b>=0&&b<=1&&(s[y++]=b),_>=0&&_<=1&&(s[y++]=_)}else if(w>0){var E=o(w),S=m*h+1.5*u*(-g+E),C=m*h+1.5*u*(-g-E);S=S<0?-i(-S,c):i(S,c),C=C<0?-i(-C,c):i(C,c);b=(-h-(S+C))/(3*u);b>=0&&b<=1&&(s[y++]=b)}else{var k=(2*m*h-3*u*g)/(2*o(m*m*m)),O=Math.acos(k)/3,T=o(m),A=Math.cos(O),P=(b=(-h-2*T*A)/(3*u),_=(-h+T*(A+l*Math.sin(O)))/(3*u),(-h+T*(A-l*Math.sin(O)))/(3*u));b>=0&&b<=1&&(s[y++]=b),_>=0&&_<=1&&(s[y++]=_),P>=0&&P<=1&&(s[y++]=P)}}return y}function y(e,t,n,r,i){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(d(s)){if(p(a)){var u=-l/a;u>=0&&u<=1&&(i[c++]=u)}}else{var h=a*a-4*s*l;if(d(h))i[0]=-a/(2*s);else if(h>0){var f=o(h),m=(u=(-a+f)/(2*s),(-a-f)/(2*s));u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function b(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,h=(u-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=r}function w(e,t,n,i,a,l,c,d,p,g,v){var y,b,w,x,_,E=.005,S=1/0;u[0]=p,u[1]=g;for(var C=0;C<1;C+=.05)h[0]=m(e,n,a,c,C),h[1]=m(t,i,l,d,C),x=Object(r["f"])(u,h),x=0&&x=0&&u<=1&&(i[c++]=u)}}else{var h=s*s-4*a*l;if(d(h)){u=-s/(2*a);u>=0&&u<=1&&(i[c++]=u)}else if(h>0){var f=o(h),m=(u=(-s+f)/(2*a),(-s-f)/(2*a));u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function C(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function k(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function O(e,t,n,i,a,l,c,d,p){var m,g=.005,v=1/0;u[0]=c,u[1]=d;for(var y=0;y<1;y+=.05){h[0]=_(e,n,a,y),h[1]=_(t,i,l,y);var b=Object(r["f"])(u,h);b=0&&bR*R+j*j&&(k=T,O=A),{cx:k,cy:O,x0:-u,y0:-h,x1:k*(i/E-1),y1:O*(i/E-1)}}function b(e){var t;if(Object(o["r"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function w(e,t){var n,r=p(t.r,0),i=p(t.r0||0,0),o=r>0,w=i>0;if(o||w){if(o||(r=i,i=0),i>r){var x=r;r=i,i=x}var _=t.startAngle,E=t.endAngle;if(!isNaN(_)&&!isNaN(E)){var S=t.cx,C=t.cy,k=!!t.clockwise,O=f(E-_),T=O>s&&O%s;if(T>g&&(O=T),r>g)if(O>s-g)e.moveTo(S+r*c(_),C+r*l(_)),e.arc(S,C,r,_,E,!k),i>g&&(e.moveTo(S+i*c(E),C+i*l(E)),e.arc(S,C,i,E,_,k));else{var A=void 0,P=void 0,M=void 0,R=void 0,j=void 0,L=void 0,D=void 0,N=void 0,I=void 0,$=void 0,F=void 0,B=void 0,V=void 0,W=void 0,H=void 0,U=void 0,z=r*c(_),q=r*l(_),K=i*c(E),G=i*l(E),Y=O>g;if(Y){var X=t.cornerRadius;X&&(n=b(X),A=n[0],P=n[1],M=n[2],R=n[3]);var Q=f(r-i)/2;if(j=m(Q,M),L=m(Q,R),D=m(Q,A),N=m(Q,P),F=I=p(j,L),B=$=p(D,N),(I>g||$>g)&&(V=r*c(E),W=r*l(E),H=i*c(_),U=i*l(_),Og){var oe=m(M,F),ae=m(R,F),se=y(H,U,z,q,r,oe,k),le=y(V,W,K,G,r,ae,k);e.moveTo(S+se.cx+se.x0,C+se.cy+se.y0),F0&&e.arc(S+se.cx,C+se.cy,oe,h(se.y0,se.x0),h(se.y1,se.x1),!k),e.arc(S,C,r,h(se.cy+se.y1,se.cx+se.x1),h(le.cy+le.y1,le.cx+le.x1),!k),ae>0&&e.arc(S+le.cx,C+le.cy,ae,h(le.y1,le.x1),h(le.y0,le.x0),!k))}else e.moveTo(S+z,C+q),e.arc(S,C,r,_,E,!k);else e.moveTo(S+z,C+q);if(i>g&&Y)if(B>g){oe=m(A,B),ae=m(P,B),se=y(K,G,V,W,i,-ae,k),le=y(z,q,H,U,i,-oe,k);e.lineTo(S+se.cx+se.x0,C+se.cy+se.y0),B<$&&oe===ae?e.arc(S+se.cx,C+se.cy,B,h(se.y0,se.x0),h(le.y0,le.x0),!k):(ae>0&&e.arc(S+se.cx,C+se.cy,ae,h(se.y0,se.x0),h(se.y1,se.x1),!k),e.arc(S,C,i,h(se.cy+se.y1,se.cx+se.x1),h(le.cy+le.y1,le.cx+le.x1),k),oe>0&&e.arc(S+le.cx,C+le.cy,oe,h(le.y1,le.x1),h(le.y0,le.x0),!k))}else e.lineTo(S+K,C+G),e.arc(S,C,i,E,_,k);else e.lineTo(S+K,C+G)}else e.moveTo(S,C);e.closePath()}}}var x=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),_=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new x},t.prototype.buildPath=function(e,t){w(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i["b"]);_.prototype.type="sector";t["a"]=_},T1nr:function(e,t,n){var r=n("Igga"),i=n("e6w7"),o=n("LsAW");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},T4gb:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={};t["default"]={name:"stat",state:a()({},l),reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{getOverride(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(s["a"])("/admin/stat/getOverride");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"save",payload:a()({},r.data)});case 8:case"end":return e.stop()}},e)})()},getOrder(e){return i.a.mark(function t(){var n,r;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,t.next=3,Object(s["a"])("/admin/stat/getOrder");case 3:if(r=t.sent,200===r.code){t.next=6;break}return t.abrupt("return");case 6:n(r.data);case 7:case"end":return t.stop()}},t)})()},getServerLastRank(e){return i.a.mark(function t(){var n,r;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,t.next=3,Object(s["a"])("/admin/stat/getServerLastRank");case 3:if(r=t.sent,200===r.code){t.next=6;break}return t.abrupt("return");case 6:n(r.data);case 7:case"end":return t.stop()}},t)})()}}}},T6xi:function(e,t,n){"use strict";var r=n("QBsz");function i(e,t,n,i){var o,a,s,l,c=[],u=[],h=[],f=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var d=0,p=e.length;d=2){if(r){var a=i(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var c=a[2*l],u=a[2*l+1],h=o[(l+1)%s];e.bezierCurveTo(c[0],c[1],u[0],u[1],h[0],h[1])}}else{e.moveTo(o[0][0],o[0][1]);l=1;for(var f=o.length;l2&&void 0!==arguments[2]?arguments[2]:[],i=e.context.table,o=i.columnManager,a=i.components,s=i.props,l=s.prefixCls,c=s.childrenColumnName,u=s.rowClassName,h=s.rowRef,f=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowContextMenu,m=s.onRowMouseEnter,g=s.onRowMouseLeave,v=s.onRow,y=e.props,w=y.getRowKey,x=y.fixed,_=y.expander,E=y.isAnyColumnsFixed,S=[],O=function(i){var s=t[i],y=w(s,i),O="string"===typeof u?u:u(s,i,n),T={};o.isAnyColumnsFixed()&&(T.onHover=e.handleRowHover);var A=void 0;A="left"===x?o.leftLeafColumns():"right"===x?o.rightLeafColumns():e.getColumns(o.leafColumns());var P="".concat(l,"-row"),M=b.createElement(k.default,Object.assign({},_.props,{fixed:x,index:i,prefixCls:P,record:s,key:y,rowKey:y,onRowClick:f,needIndentSpaced:_.needIndentSpaced,onExpandedChange:_.handleExpandChange}),function(e){return b.createElement(C.default,Object.assign({fixed:x,indent:n,className:O,record:s,index:i,prefixCls:P,childrenColumnName:c,columns:A,onRow:v,onRowDoubleClick:d,onRowContextMenu:p,onRowMouseEnter:m,onRowMouseLeave:g},T,{rowKey:y,ancestorKeys:r,ref:h(s,i,n),components:a,isAnyColumnsFixed:E},e))});S.push(M),_.renderRows(e.renderRows,S,s,i,n,x,y,r)},T=0;T0))}function g(e){return"string"===typeof e&&"none"!==e}function v(e){var t=e.fill;return null!=t&&"none"!==t}function y(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function b(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function w(e,t,n){var r=Object(o["a"])(t.image,t.__image,n);if(Object(o["c"])(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*u["a"]),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function x(e,t,n,r){var i,o=m(n),s=v(n),l=n.strokePercent,c=l<1,u=!t.path;t.silent&&!c||!u||t.createPathProxy();var d=t.path||p,g=t.__dirty;if(!r){var x=n.fill,_=n.stroke,E=s&&!!x.colorStops,S=o&&!!_.colorStops,C=s&&!!x.image,k=o&&!!_.image,O=void 0,T=void 0,A=void 0,P=void 0,M=void 0;(E||S)&&(M=t.getBoundingRect()),E&&(O=g?Object(a["a"])(e,x,M):t.__canvasFillGradient,t.__canvasFillGradient=O),S&&(T=g?Object(a["a"])(e,_,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=T),C&&(A=g||!t.__canvasFillPattern?w(e,x,t):t.__canvasFillPattern,t.__canvasFillPattern=A),k&&(P=g||!t.__canvasStrokePattern?w(e,_,t):t.__canvasStrokePattern,t.__canvasStrokePattern=A),E?e.fillStyle=O:C&&(A?e.fillStyle=A:s=!1),S?e.strokeStyle=T:k&&(P?e.strokeStyle=P:o=!1)}var R,j,L=t.getGlobalScale();d.setScale(L[0],L[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=Object(h["a"])(t),R=i[0],j=i[1]);var D=!0;(u||g&f["b"])&&(d.setDPR(e.dpr),c?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,c?l:1),R&&(e.setLineDash(R),e.lineDashOffset=j),r||(n.strokeFirst?(o&&b(e,n),s&&y(e,n)):(s&&y(e,n),o&&b(e,n))),R&&e.setLineDash([])}function _(e,t,n){var r=t.__image=Object(o["a"])(n.image,t.__image,t,t.onload);if(r&&Object(o["c"])(r)){var i=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),c=r.width/r.height;if(null==s&&null!=l?s=l*c:null==l&&null!=s?l=s/c:null==s&&null==l&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;e.drawImage(r,u,h,n.sWidth,n.sHeight,i,a,s,l)}else if(n.sx&&n.sy){u=n.sx,h=n.sy;var f=s-u,d=l-h;e.drawImage(r,u,h,f,d,i,a,s,l)}else e.drawImage(r,i,a,s,l)}}function E(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||d["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=Object(h["a"])(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(m(n)&&e.strokeText(i,n.x,n.y),v(n)&&e.fillText(i,n.x,n.y)):(v(n)&&e.fillText(i,n.x,n.y),m(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],C=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k(e,t,n,i,o){var a=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){I(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?r["b"].opacity:s}(i||t.blend!==n.blend)&&(a||(I(e,o),a=!0),e.globalCompositeOperation=t.blend||r["b"].blend);for(var l=0;l0})}var c=function(e,t){var n=t.table,r=n.components,i=n.props,a=i.prefixCls,c=i.showHeader,u=i.onHeaderRow,h=e.expander,f=e.columns,d=e.fixed;if(!c)return null;var p=l({columns:f});h.renderExpandIndentCell(p,d);var m=r.header.wrapper;return o.createElement(m,{className:"".concat(a,"-thead")},p.map(function(e,t){return o.createElement(s.default,{prefixCls:a,key:t,index:t,fixed:d,columns:f,rows:p,row:e,components:r,onHeaderRow:u})}))};c.contextTypes={table:a.any},t.default=c},VPOE:function(e,t,n){var r=n("V5/1"),i=n("pQGJ");e.exports=n("8Z/V")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},VVlx:function(e,t,n){var r=n("29s/")("keys"),i=n("YqAc");e.exports=function(e){return r[e]||(r[e]=i(e))}},VbXa:function(e,t,n){var r=n("SksO");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},VeWa:function(e,t,n){(function(e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(o,i),t.JsonHighlightRules=o}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,a=e.findMatchingBracket({row:t,column:o});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){o=i.match(this.foldingStopMarker);if(o){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length;t+=1;var s=t,l=e.getLength();while(++tc)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==c)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++na)return new i(a,r,u,t.length)}}.call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=new s,this.foldingRules=new l};r.inherits(u,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if("start"==e){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u}),function(){ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})}()}).call(this,n("YuTi")(e))},Vegh:function(e,t,n){"use strict";var r=n("iCc5"),i=n.n(r),o=n("FYw3"),a=n.n(o),s=n("mRg0"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("i8i4"),f=n.n(h),d=n("17x9"),p=n.n(d),m=n("4IlW"),g=n("VCL8"),v=n("wd/R"),y=n.n(v),b=n("GrtH"),w=void 0,x=void 0,_=void 0,E=function(e){function t(n){i()(this,t);var r=a()(this,e.call(this,n));S.call(r);var o=n.selectedValue;return r.state={str:Object(b["a"])(o,r.props.format),invalid:!1,hasFocus:!1},r}return l()(t,e),t.prototype.componentDidUpdate=function(){!_||!this.state.hasFocus||this.state.invalid||0===w&&0===x||_.setSelectionRange(w,x)},t.getDerivedStateFromProps=function(e,t){var n={};_&&(w=_.selectionStart,x=_.selectionEnd);var r=e.selectedValue;return t.hasFocus||(n={str:Object(b["a"])(r,e.format),invalid:!1}),n},t.getInstance=function(){return _},t.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,r=t.str,i=e.locale,o=e.prefixCls,a=e.placeholder,s=e.clearIcon,l=e.inputMode,c=n?o+"-input-invalid":"";return u.a.createElement("div",{className:o+"-input-wrap"},u.a.createElement("div",{className:o+"-date-input-wrap"},u.a.createElement("input",{ref:this.saveDateInput,className:o+"-input "+c,value:r,disabled:e.disabled,placeholder:a,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:l})),e.showClear?u.a.createElement("a",{role:"button",title:i.clear,onClick:this.onClear},s||u.a.createElement("span",{className:o+"-clear-btn"})):null)},t}(u.a.Component);E.propTypes={prefixCls:p.a.string,timePicker:p.a.object,value:p.a.object,disabledTime:p.a.any,format:p.a.oneOfType([p.a.string,p.a.arrayOf(p.a.string)]),locale:p.a.object,disabledDate:p.a.func,onChange:p.a.func,onClear:p.a.func,placeholder:p.a.string,onSelect:p.a.func,selectedValue:p.a.object,clearIcon:p.a.node,inputMode:p.a.string};var S=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,r=e.props,i=r.disabledDate,o=r.format,a=r.onChange,s=r.selectedValue;if(!n)return a(null),void e.setState({invalid:!1,str:n});var l=y()(n,o,!0);if(l.isValid()){var c=e.props.value.clone();c.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!c||i&&i(c)?e.setState({invalid:!0,str:n}):(s!==c||s&&c&&!s.isSame(c))&&(e.setState({invalid:!1,str:n}),a(c))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState(function(e,t){return{hasFocus:!1,str:Object(b["a"])(t.value,t.format)}})},this.onKeyDown=function(t){var n=t.keyCode,r=e.props,i=r.onSelect,o=r.value,a=r.disabledDate;if(n===m["a"].ENTER&&i){var s=!a||!a(o);s&&i(o.clone()),t.preventDefault()}},this.getRootDOMNode=function(){return f.a.findDOMNode(e)},this.focus=function(){_&&_.focus()},this.saveDateInput=function(e){_=e}};Object(g["polyfill"])(E),t["a"]=E},VeyY:function(e,t,n){var r=n("7vYJ"),i=n("wYm8"),o=n("gL7N")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},VxKu:function(e,t,n){"use strict";var r=n("WGNW"),i=n("Lnex")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("DIcO")("includes")},VyuQ:function(e,t,n){var r=n("bV5f"),i=n("c0Oy"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("FqPH")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},W070:function(e,t,n){var r=n("NsO/"),i=n("tEej"),o=n("D8kY");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},W3Xk:function(e,t,n){var r=n("WGNW"),i=n("ZDr/"),o=n("wUWy"),a=n("GsrZ"),s="["+a+"]",l="\u200b\x85",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),h=function(e,t,n){var i={},s=o(function(){return!!a[e]()||l[e]()!=l}),c=i[e]=s?t(f):a[e];n&&(i[n]=c),r(r.P+r.F*s,"String",i)},f=h.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=h},W5Cv:function(e,t,n){"use strict";function r(e,t){var n=window.Element.prototype,r=n.matches||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;if(!e||1!==e.nodeType)return!1;var i=e.parentNode;if(r)return r.call(e,t);for(var o=i.querySelectorAll(t),a=o.length,s=0;sm()(1e3*e).format("YYYY-MM-DD")},{title:"\u4e0a\u884c",dataIndex:"u",key:"d",align:"right",render:e=>Object(g["b"])(e)},{title:"\u4e0b\u884c",dataIndex:"d",key:"d",align:"right",render:e=>Object(g["b"])(e)},{title:"\u500d\u7387",dataIndex:"server_rate",key:"server_rate",align:"right"}];return f.a.createElement(f.a.Fragment,null,f.a.cloneElement(this.props.children,{onClick:()=>this.show()}),f.a.createElement(r["a"],{width:"100%",style:{maxWidth:1e3,padding:"0 10px",top:20},onCancel:()=>this.setState({visible:!1}),bodyStyle:{padding:0},footer:!1,visible:t,title:"\u6d41\u91cf\u8bb0\u5f55"},f.a.createElement(v["a"],{loading:a},f.a.createElement(i["a"],{pagination:l()({},o,{size:"small"}),columns:s,dataSource:n,onChange:e=>{this.setState({pagination:e},()=>{this.getStatUser()})}}))))}}},XI6d:function(e,t,n){var r=n("c0Oy").document;e.exports=r&&r.documentElement},XIdC:function(e,t,n){e.exports=n("Ctgt")},"XP1/":function(e,t,n){n("Jaki")("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},XUei:function(e,t,n){"use strict";function r(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function i(e){this.id=e}function o(e,t,n,r,i){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=i}function a(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function s(e,t){this.id=e,this.options=t}t["default"]=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,i=e.elements,o=[];for(t=0,n=i.length;t-1}function Xe(e,t){var n=this.__data__,r=dt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Qe(e){var t=-1,n=null==e?0:e.length;this.clear();while(++tc))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var f=-1,d=!0,p=n&a?new rt:void 0;s.set(e,t),s.set(t,e);while(++f-1&&e%1==0&&e-1&&e%1==0&&e<=s}function zt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qt(e){return null!=e&&"object"==typeof e}var Kt=Q?ne(Q):wt;function Gt(e){return Bt(e)?ft(e):xt(e)}function Yt(){return[]}function Xt(){return!1}n.exports=Wt}).call(this,n("yLpj"),n("YuTi")(e))},XaS2:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0&&this.setRowHeight())}},{key:"render",value:function(){if(!this.state.shouldRender)return null;var e=this.props,t=e.prefixCls,n=e.columns,r=e.record,o=e.rowKey,a=e.index,l=e.onRow,c=e.indent,u=e.indentSize,h=e.hovered,f=e.height,d=e.visible,p=e.components,m=e.hasExpandIcon,g=e.renderExpandIcon,v=e.renderExpandIconCell,y=e.onRowClick,b=e.onRowDoubleClick,w=e.onRowMouseEnter,_=e.onRowMouseLeave,S=e.onRowContextMenu,C=p.body.row,T=p.body.cell,A=this.props.className;h&&(A+=" ".concat(t,"-hover"));var P=[];v(P);for(var M=0;M0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var t=i.allocUnsafe(e>>>0),n=this.head,r=0;while(n)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},Xnb7:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return c});var r=n("1RvN"),i=n("cm6r"),o=new r["a"](50);function a(e){if("string"===typeof e){var t=o.get(e);return t&&t.image}return e}function s(e,t,n,r,a){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var s=o.get(e),u={hostEl:n,cb:r,cbPayload:a};return s?(t=s.image,!c(t)&&s.pending.push(u)):(t=i["d"].loadImage(e,l,l),t.__zrImageSrc=e,o.put(e,t.__cachedImgObj={image:t,pending:[u]})),t}return e}return t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}e.exports=i},"Y/ne":function(e,t,n){var r=n("OsVd"),i=n("03ni"),o=n("ZDr/");e.exports=function(e,t,n,a){var s=String(o(e)),l=s.length,c=void 0===n?" ":String(n),u=r(t);if(u<=l||""==c)return s;var h=u-l,f=i.call(c,Math.ceil(h/c.length));return f.length>h&&(f=f.slice(0,h)),a?f+s:s+f}},Y2fQ:function(e,t,n){e.exports=n("LLXN").default||n("LLXN")},Y7ZC:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),o=n("2GTP"),a=n("NegM"),s=n("B+OT"),l="prototype",c=function(e,t,n){var u,h,f,d=e&c.F,p=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,b=p?i:i[t]||(i[t]={}),w=b[l],x=p?r:m?r[t]:(r[t]||{})[l];for(u in p&&(n=t),n)h=!d&&x&&void 0!==x[u],h&&s(b,u)||(f=h?x[u]:n[u],b[u]=p&&"function"!=typeof x[u]?n[u]:v&&h?o(f,r):y&&x[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((b.virtual||(b.virtual={}))[u]=f,e&c.R&&w&&!w[u]&&a(w,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},YEIV:function(e,t,n){"use strict";t.__esModule=!0;var r=n("SEkw"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},YEVI:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},YH21:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return h}),n.d(t,"a",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return m});var r=n("ItGF"),i=n("Ze12"),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=r["a"].browser.firefox&&+r["a"].browser.version.split(".")[0]<39;function l(e,t,n,r){return n=n||{},r?c(e,t,n):s&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):c(e,t,n),n}function c(e,t,n){if(r["a"].domSupported&&e.getBoundingClientRect){var o=t.clientX,s=t.clientY;if(Object(i["b"])(e)){var l=e.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if(Object(i["c"])(a,e,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function u(e){return e||window.event}function h(e,t,n){if(t=u(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&l(e,a,t,n)}else{l(e,t,t,n);var s=f(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var c=t.button;return null==t.which&&void 0!==c&&o.test(t.type)&&(t.which=1&c?1:2&c?3:4&c?2:0),t}function f(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function d(e,t,n,r){e.addEventListener(t,n,r)}function p(e,t,n,r){e.removeEventListener(t,n,r)}var m=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}},YVYq:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("q1tI"),i=n.n(r);function o(e){var t=e.prefixCls,n=e.locale,r=e.okDisabled,o=e.onOk,a=t+"-ok-btn";return r&&(a+=" "+t+"-ok-btn-disabled"),i.a.createElement("a",{className:a,role:"button",onClick:r?null:o},n.ok)}},Yf6U:function(e,t,n){var r=n("W5Cv");e.exports=function(e,t,n){n=n||document,e={parentNode:e};while((e=e.parentNode)&&e!==n)if(r(e,t))return e}},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},YqDF:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&c&&(w.marginBottom="-".concat(_,"px"),w.paddingBottom="0px")}var E,S=l.createElement(h.default,{tableClassName:f,hasHead:!b,hasBody:!0,fixed:c,columns:s,expander:g,getRowKey:d,isAnyColumnsFixed:v});if(c&&s.length)return"left"===s[0].fixed||!0===s[0].fixed?E="fixedColumnsBodyLeft":"right"===s[0].fixed&&(E="fixedColumnsBodyRight"),delete w.overflowX,delete w.overflowY,l.createElement("div",{key:"bodyTable",className:"".concat(o,"-body-outer"),style:i({},w)},l.createElement("div",{className:"".concat(o,"-body-inner"),style:x,ref:y(E),onWheel:m,onScroll:p},S));var C=a&&(a.x||a.y);return l.createElement("div",{tabIndex:C?-1:void 0,key:"bodyTable",className:"".concat(o,"-body"),style:w,ref:y("bodyTable"),onWheel:m,onScroll:p},S)}t.default=f,f.contextTypes={table:c.any}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z4ex:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nt.length?e:t,u=e.length>t.length?t:e,h=c.indexOf(u);if(-1!=h)return l=[new n.Diff(i,c.substring(0,h)),new n.Diff(o,u),new n.Diff(i,c.substring(h+u.length))],e.length>t.length&&(l[0][0]=l[2][0]=r),l;if(1==u.length)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var d=f[0],p=f[1],m=f[2],g=f[3],v=f[4],y=this.diff_main(d,m,a,s),b=this.diff_main(p,g,a,s);return y.concat([new n.Diff(o,v)],b)}return a&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,a){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var l=s.lineArray,c=this.diff_main(e,t,!1,a);this.diff_charsToLines_(c,l),this.diff_cleanupSemantic(c),c.push(new n.Diff(o,""));var u=0,h=0,f=0,d="",p="";while(u=1&&f>=1){c.splice(u-h-f,h+f),u=u-h-f;for(var m=this.diff_main(d,p,!1,a),g=m.length-1;g>=0;g--)c.splice(u,0,m[g]);u+=m.length}f=0,h=0,d="",p="";break}u++}return c.pop(),c},n.prototype.diff_bisect_=function(e,t,o){for(var a=e.length,s=t.length,l=Math.ceil((a+s)/2),c=l,u=2*l,h=new Array(u),f=new Array(u),d=0;do)break;for(var x=-w+g;x<=w-v;x+=2){var _=c+x;T=x==-w||x!=w&&h[_-1]a)v+=2;else if(E>s)g+=2;else if(m){var S=c+p-x;if(S>=0&&S=C)return this.diff_bisectSplit_(e,t,T,E,o)}}}for(var k=-w+y;k<=w-b;k+=2){S=c+k;C=k==-w||k!=w&&f[S-1]a)b+=2;else if(O>s)y+=2;else if(!m){_=c+p-k;if(_>=0&&_=C)return this.diff_bisectSplit_(e,t,T,E,o)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=this.diff_main(o,a,!1,i),u=this.diff_main(s,l,!1,i);return c.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){var t="",i=0,a=-1,s=n.length;while(ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,a,s,u]:null}var a,s,l,c,u,h=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));if(!h&&!f)return null;a=f?h&&h[4].length>f[4].length?h:f:h,e.length>t.length?(s=a[0],l=a[1],c=a[2],u=a[3]):(c=a[0],u=a[1],s=a[2],l=a[3]);var d=a[4];return[s,l,c,u,d]},n.prototype.diff_cleanupSemantic=function(e){var t=!1,a=[],s=0,l=null,c=0,u=0,h=0,f=0,d=0;while(c0?a[s-1]:-1,u=0,h=0,f=0,d=0,l=null,t=!0)),c++;t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),c=1;while(c=v?(g>=p.length/2||g>=m.length/2)&&(e.splice(c,0,new n.Diff(o,m.substring(0,g))),e[c-1][1]=p.substring(0,p.length-g),e[c+1][1]=m.substring(g),c++):(v>=p.length/2||v>=m.length/2)&&(e.splice(c,0,new n.Diff(o,p.substring(0,v))),e[c-1][0]=i,e[c-1][1]=m.substring(0,m.length-v),e[c+1][0]=r,e[c+1][1]=p.substring(v),c++),c++}c++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),o=r.match(n.nonAlphaNumericRegex_),a=i.match(n.nonAlphaNumericRegex_),s=o&&r.match(n.whitespaceRegex_),l=a&&i.match(n.whitespaceRegex_),c=s&&r.match(n.linebreakRegex_),u=l&&i.match(n.linebreakRegex_),h=c&&e.match(n.blanklineEndRegex_),f=u&&t.match(n.blanklineStartRegex_);return h||f?5:c||u?4:o&&!s&&l?3:s||l?2:o||a?1:0}var r=1;while(r=d&&(d=p,u=i,h=a,f=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=h,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){var t=!1,a=[],s=0,l=null,c=0,u=!1,h=!1,f=!1,d=!1;while(c0?a[s-1]:-1,f=d=!1),t=!0)),c++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(o,""));var t,a=0,s=0,l=0,c="",u="";while(a1?(0!==s&&0!==l&&(t=this.diff_commonPrefix(u,c),0!==t&&(a-s-l>0&&e[a-s-l-1][0]==o?e[a-s-l-1][1]+=u.substring(0,t):(e.splice(0,0,new n.Diff(o,u.substring(0,t))),a++),u=u.substring(t),c=c.substring(t)),t=this.diff_commonSuffix(u,c),0!==t&&(e[a][1]=u.substring(u.length-t)+e[a][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),a-=s+l,e.splice(a,s+l),c.length&&(e.splice(a,0,new n.Diff(r,c)),a++),u.length&&(e.splice(a,0,new n.Diff(i,u)),a++),a++):0!==a&&e[a-1][0]==o?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,l=0,s=0,c="",u="";break}""===e[e.length-1][1]&&e.pop();var h=!1;a=1;while(at)break;s=o,l=a}return e.length!=n&&e[n][0]===r?l:l+(t-s)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,a=//g,l=/\n/g,c=0;c");switch(u){case i:t[c]=''+f+"";break;case r:t[c]=''+f+"";break;case o:t[c]=""+f+"";break}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,a=Math.abs(n-r);return i.Match_Distance?o+a/i.Match_Distance:a?1:o}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(o(0,s),a),s=e.lastIndexOf(t,n+t.length),-1!=s&&(a=Math.min(o(0,s),a)));var l,c,u=1<=p;v--){var y=r[e.charAt(v-1)];if(g[v]=0===d?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(h[v+1]|h[v])<<1|1|h[v+1],g[v]&u){var b=o(d,v-1);if(b<=a){if(a=b,s=v-1,!(s>n))break;p=Math.max(1,2*n-s)}}}if(o(d+1,n)>a)break;h=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&"object"==typeof e&&"undefined"==typeof t&&"undefined"==typeof a)l=e,s=this.diff_text1(l);else if("string"==typeof e&&t&&"object"==typeof t&&"undefined"==typeof a)s=e,l=t;else{if("string"!=typeof e||"string"!=typeof t||!a||"object"!=typeof a)throw new Error("Unknown call format to patch_make.");s=e,l=a}if(0===l.length)return[];for(var c=[],u=new n.patch_obj,h=0,f=0,d=0,p=s,m=s,g=0;g=2*this.Patch_Margin&&h&&(this.patch_addContext_(u,p),c.push(u),u=new n.patch_obj,h=0,p=m,f=d);break}v!==i&&(f+=y.length),v!==r&&(d+=y.length)}return h&&(this.patch_addContext_(u,p),c.push(u)),c},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?(c=this.match_main(t,f.substring(0,this.Match_MaxBits),h),-1!=c&&(d=this.match_main(t,f.substring(f.length-this.Match_MaxBits),h+f.length-this.Match_MaxBits),(-1==d||c>=d)&&(c=-1))):c=this.match_main(t,f,h),-1==c)s[l]=!1,a-=e[l].length2-e[l].length1;else if(s[l]=!0,a=c-h,u=-1==d?t.substring(c,c+f.length):t.substring(c,d+this.Match_MaxBits),f==u)t=t.substring(0,c)+this.diff_text2(e[l].diffs)+t.substring(c+f.length);else{var p=this.diff_main(f,u,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(p)/f.length>this.Patch_DeleteThreshold)s[l]=!1;else{this.diff_cleanupSemanticLossless(p);for(var m,g=0,v=0;vs[0][1].length){var l=t-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],a.start1-=l,a.start2-=l,a.length1+=l,a.length2+=l}if(a=e[e.length-1],s=a.diffs,0==s.length||s[s.length-1][0]!=o)s.push(new n.Diff(o,r)),a.length1+=t,a.length2+=t;else if(t>s[s.length-1][1].length){l=t-s[s.length-1][1].length;s[s.length-1][1]+=r.substring(0,l),a.length1+=l,a.length2+=l}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,a=0;a2*t?(h.length1+=p.length,l+=p.length,f=!1,h.diffs.push(new n.Diff(d,p)),s.diffs.shift()):(p=p.substring(0,t-h.length1-this.Patch_Margin),h.length1+=p.length,l+=p.length,d===o?(h.length2+=p.length,c+=p.length):f=!1,h.diffs.push(new n.Diff(d,p)),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}u=this.diff_text2(h.diffs),u=u.substring(u.length-this.Patch_Margin);var m=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==m&&(h.length1+=m.length,h.length2+=m.length,0!==h.diffs.length&&h.diffs[h.diffs.length-1][0]===o?h.diffs[h.diffs.length-1][1]+=m:h.diffs.push(new n.Diff(o,m))),f||e.splice(++a,0,h)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function f(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,s=[],l=[],c=!0,u=0;u<4;u++){var h=e[u].getBoundingClientRect(),f=2*u,d=h.left,p=h.top;s.push(d,p),c=c&&o&&d===o[f]&&p===o[f+1],l.push(e[u].offsetLeft,e[u].offsetTop)}return c&&i?i:(t.srcCoords=s,t[r]=n?a(l,s):a(s,l))}function d(e){return"CANVAS"===e.nodeName.toUpperCase()}var p=/([&<>"'])/g,m={"&":"&","<":"<",">":">",'"':""","'":"'"};function g(e){return null==e?"":(e+"").replace(p,function(e,t){return m[t]})}},Zgoe:function(e,t,n){var r=n("9HFh"),i=n("e6w7"),o=n("7vYJ"),a=n("c0Oy").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},ZlA7:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={groups:[],switchLoading:{},saveLoading:!1,fetchLoading:!1};t["default"]={name:"serverGroup",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/server/group/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{groups:r.data}});case 12:case"end":return e.stop()}},e)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/group/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,Object(s["b"])("/admin/server/group/save",r);case 4:if(l=n.sent,200===l.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,a({type:"fetch"});case 9:"function"===typeof o&&o();case 10:case"end":return n.stop()}},n)})()}}}},Zss7:function(e,t,n){var r;(function(i){var o=/^\s+/,a=/\s+$/,s=0,l=i.round,c=i.min,u=i.max,h=i.random;function f(e,t){if(e=e||"",t=t||{},e instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=d(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function d(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=X(e)),"object"==typeof e&&(Y(e.r)&&Y(e.g)&&Y(e.b)?(t=p(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Y(e.h)&&Y(e.s)&&Y(e.v)?(r=z(e.s),i=z(e.v),t=y(e.h,r,i),a=!0,s="hsv"):Y(e.h)&&Y(e.s)&&Y(e.l)&&(r=z(e.s),o=z(e.l),t=g(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=$(n),{ok:a,format:e.format||s,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}function p(e,t,n){return{r:255*F(e,255),g:255*F(t,255),b:255*F(n,255)}}function m(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,i,o=u(e,t,n),a=c(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=F(e,360),t=F(t,100),n=F(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}function v(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,i,o=u(e,t,n),a=c(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(f(r));return o}function L(e,t){t=t||6;var n=f(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;while(t--)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,a,s=this.toRgb();return e=s.r/255,t=s.g/255,n=s.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*a},setAlpha:function(e){return this._a=$(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return w(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*F(this._r,255))+"%",g:l(100*F(this._g,255))+"%",b:l(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*F(this._r,255))+"%, "+l(100*F(this._g,255))+"%, "+l(100*F(this._b,255))+"%)":"rgba("+l(100*F(this._r,255))+"%, "+l(100*F(this._g,255))+"%, "+l(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+x(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+x(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return i?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:h(),g:h(),b:h()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return f(a)},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,o=f.readability(e,t);switch(i=!1,r=Q(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7;break}return i},f.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;n=n||{},i=n.includeFallbackColors,o=n.level,a=n.size;for(var c=0;cl&&(l=r,s=f(t[c]));return f.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=f.hexNames=I(D);function I(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function F(e,t){W(e)&&(e="100%");var n=H(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function B(e){return c(1,u(0,e))}function V(e){return parseInt(e,16)}function W(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function H(e){return"string"===typeof e&&-1!=e.indexOf("%")}function U(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function q(e){return i.round(255*parseFloat(e)).toString(16)}function K(e){return V(e)/255}var G=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Y(e){return!!G.CSS_UNIT.exec(e)}function X(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{r:V(t[1]),g:V(t[2]),b:V(t[3]),a:K(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:V(t[1]),g:V(t[2]),b:V(t[3]),format:n?"name":"hex"}:(t=G.hex4.exec(e))?{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),a:K(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=G.hex3.exec(e))&&{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),format:n?"name":"hex"}}function Q(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}e.exports?e.exports=f:(r=function(){return f}.call(t,n,t,e),void 0===r||(e.exports=r))})(Math)},Zxgi:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),o=n("uOPS"),a=n("zLkG"),s=n("2faE").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},Zy53:function(e,t,n){"use strict";t=e.exports=n("oOsv")["default"],t["default"]=t},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},a3WO:function(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);n1&&r&&r.length>1){var o=d(r)/d(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=p(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},g=n("mFDi"),v="silent";function y(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:b}}function b(){h["f"](this.event)}var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Object(o["a"])(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(u["a"]),x=function(){function e(e,t){this.x=e,this.y=t}return e}(),_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],E=new g["a"](0,0,0,0),S=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new x(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new w,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new c(a),a}return Object(o["a"])(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(i["j"](_,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=O(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new x(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new x(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,o=y(t,e,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new x(e,t);if(k(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new g["a"](e-s,t-s,a,a),c=r.length-1;c>=0;c--){var u=r[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(E.copy(u.getBoundingRect()),u.transform&&E.applyTransform(u.transform),E.intersect(l)&&o.push(u))}if(o.length)for(var h=4,f=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=C(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==v)){t.target=a;break}}}function O(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}i["j"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){S.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,s=O(this,i,o);if("mouseup"===e&&s||(n=this.findHover(i,o),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a["e"](this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var T=S,A=n("BPZU"),P=n("S8SX"),M=!1;function R(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function j(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var L,D=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=j}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(R(),c.z=0),isNaN(c.z2)&&(R(),c.z2=0),isNaN(c.zlevel)&&(R(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),N=D;L=r["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var I=L,$=n("Bq2U");function F(){return(new Date).getTime()}var B=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return Object(o["a"])(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=F()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,o=r.step(t,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(I(t),!e._paused&&e.update())}this._running=!0,I(t)},t.prototype.start=function(){this._running||(this._time=F(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=F(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=F()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new $["b"](e,t.loop);return this.addAnimator(n),n},t}(u["a"]),V=B,W=300,H=r["a"].domSupported,U=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=i["D"](e,function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e});return{mouse:e,touch:t,pointer:r}}(),z={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},q=!1;function K(e){var t=e.pointerType;return"pen"===t||"touch"===t}function G(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Y(e){e&&(e.zrByTouch=!0)}function X(e,t){return Object(h["d"])(e.dom,new Z(e,t),!0)}function Q(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Z=function(){function e(e,t){this.stopPropagation=i["G"],this.stopImmediatePropagation=i["G"],this.preventDefault=i["G"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),J={mousedown:function(e){e=Object(h["d"])(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Object(h["d"])(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Object(h["d"])(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Object(h["d"])(this.dom,e);var t=e.toElement||e.relatedTarget;Q(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){q=!0,e=Object(h["d"])(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){q||(e=Object(h["d"])(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Object(h["d"])(this.dom,e),Y(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),J.mousemove.call(this,e),J.mousedown.call(this,e)},touchmove:function(e){e=Object(h["d"])(this.dom,e),Y(e),this.handler.processGesture(e,"change"),J.mousemove.call(this,e)},touchend:function(e){e=Object(h["d"])(this.dom,e),Y(e),this.handler.processGesture(e,"end"),J.mouseup.call(this,e),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},r=e.props;"value"in r||e.setState({value:t}),("keyboard"===n.source||"dateInputSelect"===n.source||!r.calendar.props.timePicker&&"dateInput"!==n.source||"todayButton"===n.source)&&e.close(e.focus),r.onChange(t)},this.onKeyDown=function(t){e.state.open||t.keyCode!==v["a"].DOWN&&t.keyCode!==v["a"].ENTER||(e.open(),t.preventDefault())},this.onCalendarOk=function(){e.close(e.focus)},this.onCalendarClear=function(){e.close(e.focus)},this.onCalendarBlur=function(){e.setOpen(!1)},this.onVisibleChange=function(t){e.setOpen(t)},this.getCalendarElement=function(){var t=e.props,n=e.state,r=t.calendar.props,i=n.value,o=i,a={ref:e.saveCalendarRef,defaultValue:o||r.defaultValue,selectedValue:i,onKeyDown:e.onCalendarKeyDown,onOk:Object(g["a"])(r.onOk,e.onCalendarOk),onSelect:Object(g["a"])(r.onSelect,e.onCalendarSelect),onClear:Object(g["a"])(r.onClear,e.onCalendarClear),onBlur:Object(g["a"])(r.onBlur,e.onCalendarBlur)};return u.a.cloneElement(t.calendar,a)},this.setOpen=function(t,n){var r=e.props.onOpenChange;e.state.open!==t&&("open"in e.props||e.setState({open:t},n),r(t))},this.open=function(t){e.setOpen(!0,t)},this.close=function(t){e.setOpen(!1,t)},this.focus=function(){e.state.open||f.a.findDOMNode(e).focus()},this.focusCalendar=function(){e.state.open&&e.calendarInstance&&e.calendarInstance.focus()}};Object(m["polyfill"])(C);t["a"]=C},"ar/p":function(e,t,n){var r=n("5vMV"),i=n("FpHa").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},b5re:function(e,t,n){e.exports=n("VyuQ")("native-function-to-string",Function.toString)},b9EY:function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},b9Ot:function(e,t,n){"use strict";var r=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isAndroid=o.indexOf("Android")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,t,n){"use strict";var r,i=e("./useragent"),o="http://www.w3.org/1999/xhtml";t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],a=0;a=1.5,i.isChromeOS&&(t.HI_DPI=!1),"undefined"!==typeof document){var c=document.createElement("div");t.HI_DPI&&void 0!==c.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),i.isEdge||"undefined"===typeof c.style.animationName||(t.HAS_CSS_ANIMATION=!0),c=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,t,n){"use strict";var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter(function(e){return t&n.KEY_MODS[e]}).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var r,i=e("./keys"),o=e("./useragent"),a=null,s=0;function l(){r=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){r={passive:!1}}})}catch(e){}}function c(){return void 0==r&&l(),r}function u(e,t,n){this.elem=e,this.type=t,this.callback=n}u.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var h=t.addListener=function(e,t,n,r){e.addEventListener(t,n,c()),r&&r.$toDestroy.push(new u(e,t,n))},f=t.removeListener=function(e,t,n){e.removeEventListener(t,n,c())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var r=e&&e.ownerDocument||document;function i(e){t&&t(e),n&&n(e),f(r,"mousemove",t),f(r,"mouseup",i),f(r,"dragstart",i)}return h(r,"mousemove",t),h(r,"mouseup",i),h(r,"dragstart",i),i},t.addMouseWheelListener=function(e,t,n){"onmousewheel"in e?h(e,"mousewheel",function(e){var n=8;void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/n,e.wheelY=-e.wheelDeltaY/n):(e.wheelX=0,e.wheelY=-e.wheelDelta/n),t(e)},n):"onwheel"in e?h(e,"wheel",function(e){var n=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*n||0,e.wheelY=e.deltaY*n||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0);break}t(e)},n):h(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)},n)},t.addMultiMouseDownListener=function(e,n,r,i,a){var s,l,c,u=0,f={2:"dblclick",3:"tripleclick",4:"quadclick"};function d(e){if(0!==t.getButton(e)?u=0:e.detail>1?(u++,u>4&&(u=1)):u=1,o.isIE){var a=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-l)>5;c&&!a||(u=1),c&&clearTimeout(c),c=setTimeout(function(){c=null},n[u-1]||600),1==u&&(s=e.clientX,l=e.clientY)}if(e._clicks=u,r[i]("mousedown",e),u>4)u=0;else if(u>1)return r[i](f[u],e)}Array.isArray(e)||(e=[e]),e.forEach(function(e){h(e,"mousedown",d,a)})};var d=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function p(e,t,n){var r=d(t);if(!o.isMac&&a){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==a[n]&&(s=t.timeStamp);else if(18===n&&3===r&&2===l){var c=t.timeStamp-s;c<50&&(a.altGr=!0)}}}if(n in i.MODIFIER_KEYS&&(n=-1),!r&&13===n){l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,r,-n),t.defaultPrevented))return}if(o.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,r,n)}function m(){a=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[d(e)]},t.addCommandKeyListener=function(e,n,r){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var i=null;h(e,"keydown",function(e){i=e.keyCode},r),h(e,"keypress",function(e){return p(n,e,i)},r)}else{var s=null;h(e,"keydown",function(e){a[e.keyCode]=(a[e.keyCode]||0)+1;var t=p(n,e,e.keyCode);return s=e.defaultPrevented,t},r),h(e,"keypress",function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)},r),h(e,"keyup",function(e){a[e.keyCode]=null},r),a||(m(),h(window,"focus",m))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var g=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+g++,i=function(o){o.data==r&&(t.stopPropagation(o),f(n,"message",i),e())};h(n,"message",i),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout(function n(){t.$idleBlocked?setTimeout(n,100):e()},n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout(function(){t.$idleBlocked=!1},e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/range",["require","exports","module"],function(e,t,n){"use strict";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(r.row,r.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(r.row,r.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var r={row:t+1,column:0};else if(this.start.row0)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;nDate.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=e("../clipboard"),l=i.isChrome<18,c=i.isIE,u=i.isChrome>63,h=400,f=e("../lib/keys"),d=f.KEY_MODS,p=i.isIOS,m=p?/\s/:/\n/,g=i.isMobile,v=function(e,t){var n=o.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var v=!1,y=!1,b=!1,w=!1,x="";g||(n.style.fontSize="1px");var _=!1,E=!1,S="",C=0,k=0,O=0;try{var T=document.activeElement===n}catch(e){}r.addListener(n,"blur",function(e){E||(t.onBlur(e),T=!1)},t),r.addListener(n,"focus",function(e){if(!E){if(T=!0,i.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),i.isEdge?setTimeout(A):A()}},t),this.$focusScroll=!1,this.focus=function(){if(x||u||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(e){return}var r=[];if(t){var i=n.parentElement;while(i&&1==i.nodeType)r.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement}n.focus({preventScroll:!0}),t&&r.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)},0)},this.blur=function(){n.blur()},this.isFocused=function(){return T},t.on("beforeEndOperation",function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var i=r&&(e.docChanged||e.selectionChanged);b&&i&&(S=n.value="",H()),A()}});var A=p?function(e){if(T&&(!v||e)&&!w){e||(e="");var r="\n ab"+e+"cde fg\n";r!=n.value&&(n.value=S=r);var i=4,o=4+(e.length||(t.selection.isEmpty()?0:1));C==i&&k==o||n.setSelectionRange(i,o),C=i,k=o}}:function(){if(!b&&!w&&(T||j)){b=!0;var e=0,r=0,i="";if(t.session){var o=t.selection,a=o.getRange(),s=o.cursor.row;if(e=a.start.column,r=a.end.column,i=t.session.getLine(s),a.start.row!=s){var l=t.session.getLine(s-1);e=a.start.rows+1?c.length:r,r+=i.length+1,i=i+"\n"+c}else g&&s>0&&(i="\n"+i,r+=1,e+=1);i.length>h&&(e=S.length&&e.value===S&&S&&e.selectionEnd!==k},M=function(e){b||(v?v=!1:P(n)?(t.selectAll(),A()):g&&n.selectionStart!=C&&A())},R=null;this.setInputHandler=function(e){R=e},this.getInputHandler=function(){return R};var j=!1,L=function(e,r){if(j&&(j=!1),y)return A(),e&&t.onPaste(e),y=!1,"";var o=n.selectionStart,a=n.selectionEnd,s=C,l=S.length-k,c=e,u=e.length-o,h=e.length-a,f=0;while(s>0&&S[f]==e[f])f++,s--;c=c.slice(f),f=1;while(l>0&&S.length-f>C-1&&S[S.length-f]==e[e.length-f])f++,l--;u-=f-1,h-=f-1;var d=c.length-f+1;if(d<0&&(s=-d,d=0),c=c.slice(0,d),!r&&!c&&!u&&!s&&!l&&!h)return"";w=!0;var p=!1;return i.isAndroid&&". "==c&&(c=" ",p=!0),c&&!s&&!l&&!u&&!h||_?t.onTextInput(c):t.onTextInput(c,{extendLeft:s,extendRight:l,restoreStart:u,restoreEnd:h}),w=!1,S=e,C=o,k=a,O=h,p?"\n":c},D=function(e){if(b)return W();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,i=L(r,!0);(r.length>h+100||m.test(i)||g&&C<1&&C==k)&&A()},N=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!l){var i=c||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return N(e,t,!0)}}},I=function(e,i){var o=t.getCopyText();if(!o)return r.preventDefault(e);N(e,o)?(p&&(A(o),v=o,setTimeout(function(){v=!1},10)),i?t.onCut():t.onCopy(),r.preventDefault(e)):(v=!0,n.value=o,n.select(),setTimeout(function(){v=!1,A(),i?t.onCut():t.onCopy()}))},$=function(e){I(e,!0)},F=function(e){I(e,!1)},B=function(e){var o=N(e);s.pasteCancelled()||("string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(A),r.preventDefault(e)):(n.value="",y=!0))};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,"select",M,t),r.addListener(n,"input",D,t),r.addListener(n,"cut",$,t),r.addListener(n,"copy",F,t),r.addListener(n,"paste",B,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:F(e);break;case 86:B(e);break;case 88:$(e);break}},t);var V=function(e){if(!b&&t.onCompositionStart&&!t.$readOnly&&(b={},!_)){e.data&&(b.useTextareaForIME=!1),setTimeout(W,0),t._signal("compositionStart"),t.on("mousedown",U);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,b.markerRange=r,b.selectionStart=C,t.onCompositionStart(b),b.useTextareaForIME?(S=n.value="",C=0,k=0):(n.msGetInputContext&&(b.context=n.msGetInputContext()),n.getInputContext&&(b.context=n.getInputContext()))}},W=function(){if(b&&t.onCompositionUpdate&&!t.$readOnly){if(_)return U();if(b.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;L(e),b.markerRange&&(b.context&&(b.markerRange.start.column=b.selectionStart=b.context.compositionStartOffset),b.markerRange.end.column=b.markerRange.start.column+k-b.selectionStart+O)}}},H=function(e){t.onCompositionEnd&&!t.$readOnly&&(b=!1,t.onCompositionEnd(),t.off("mousedown",U),e&&D())};function U(){E=!0,n.blur(),n.focus(),E=!1}var z,q=a.delayedCall(W,50).schedule.bind(null,null);function K(e){27==e.keyCode&&n.value.lengthk&&"\n"==S[o]?a=f.end:rk&&S.slice(0,o).split("\n").length>2?a=f.down:o>k&&" "==S[o-1]?(a=f.right,s=d.option):(o>k||o==k&&k!=C&&r==o)&&(a=f.right),r!==o&&(s|=d.shift),a){var l=t.onCommandKey({},s,a);if(!l&&t.commands){a=f.keyCodeToString(a);var c=t.commands.findKeyCommand(s,a);c&&t.execCommand(c)}C=r,k=o,A("")}}};document.addEventListener("selectionchange",o),t.on("destroy",function(){document.removeEventListener("selectionchange",o)})}r.addListener(n,"mouseup",Y,t),r.addListener(n,"mousedown",function(e){e.preventDefault(),G()},t),r.addListener(t.renderer.scroller,"contextmenu",Y,t),r.addListener(n,"contextmenu",Y,t),p&&X(e,t,n)};t.TextInput=v,t.$setUserAgentForTests=function(e,t){g=e,p=t}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/useragent"),i=0,o=550;function a(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();if(0!==o){var a=i.getSelectionRange(),s=a.isEmpty();return(s||1==o)&&i.selection.moveToPosition(n),void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=l(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==o&&a<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==a&&o>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==o&&1==a)r=i.end,t=i.start;else{var s=l(this.$clickSelection,r);r=s.cursor,t=s.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>i||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session,i=r.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,a=i?e.wheelX/i:n.vx,s=i?e.wheelY/i:n.vy;i=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),l<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=r;else if(r-n.alloweda.session.documentToScreenRow(u.row,u.column))return h()}if(i!=r)if(i=r.text.join("
"),c.setHtml(i),c.show(),a._signal("showGutterTooltip",c),a.on("mousewheel",h),e.$tooltipFollowsMouse)f(n);else{var d=n.domEvent.target,p=d.getBoundingClientRect(),m=c.getElement().style;m.left=p.right+"px",m.top=p.bottom+"px"}}function h(){t&&(t=clearTimeout(t)),i&&(c.hide(),i=null,a._signal("hideGutterTooltip",c),a.off("mousewheel",h))}function f(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",function(t){if(a.isFocused()&&0==t.getButton()){var n=s.getRegion(t);if("foldWidgets"!=n){var r=t.getDocumentPosition().row,i=a.session.selection;if(t.getShiftKey())i.selectTo(r,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(r)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}}),e.editor.setDefaultHandler("guttermousemove",function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return h();i&&e.$tooltipFollowsMouse&&f(o),n=o,t||(t=setTimeout(function(){t=null,n&&!e.isMousePressed?u():h()},50))}),o.addListener(a.renderer.$gutter,"mouseout",function(e){n=null,i&&!t&&(t=setTimeout(function(){t=null,h()},50))},a),a.on("changeSession",h)}function l(e){a.call(this,e)}i.inherits(l,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();e+=15,t+=15,e+i>n&&(e-=e+i-n),t+o>r&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(l.prototype),t.GutterHandler=s}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent"),a=200,s=200,l=5;function c(e){var t=e.editor,n=r.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent="\xa0";var c=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];c.forEach(function(t){e[t]=this[t]},this),t.on("mousedown",this.onMouseDown.bind(e));var h,f,d,p,m,g,v,y,b,w,x,_=t.container,E=0;function S(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;if(!w||i||o)t.moveCursorToPosition(e),w=r,x={x:f,y:d};else{var a=u(x.x,x.y,f,d);a>l?w=null:r-w>=s&&(t.renderer.scrollCursorIntoView(),w=null)}}function C(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),l={x:{left:f-s.left,right:s.right-f},y:{top:d-s.top,bottom:s.bottom-d}},c=Math.min(l.x.left,l.x.right),u=Math.min(l.y.top,l.y.bottom),h={row:e.row,column:e.column};c/o<=2&&(h.column+=l.x.left=a&&t.renderer.scrollCursorIntoView(h):b=r:b=null}function k(){var e=g;g=t.renderer.screenToTextCoordinates(f,d),S(g,e),C(g,e)}function O(){m=t.selection.toOrientedRange(),h=t.session.addMarker(m,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),k(),p=setInterval(k,20),E=0,i.addListener(document,"mousemove",P)}function T(){clearInterval(p),t.session.removeMarker(h),h=null,t.selection.fromOrientedRange(m),t.isFocused()&&!y&&t.$resetCursorStyle(),m=null,g=null,E=0,b=null,w=null,i.removeListener(document,"mousemove",P)}this.onDragStart=function(e){if(this.cancelDrag||!_.draggable){var r=this;return setTimeout(function(){r.startSelect(),r.captureMouse(e)},0),e.preventDefault()}m=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),i.setDragImage&&i.setDragImage(n,0,0),setTimeout(function(){t.container.removeChild(n)}),i.clearData(),i.setData("Text",t.session.getTextRange()),y=!0,this.setState("drag")},this.onDragEnd=function(e){if(_.draggable=!1,y=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;v||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&M(e.dataTransfer))return f=e.clientX,d=e.clientY,h||O(),E++,e.dataTransfer.dropEffect=v=R(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&M(e.dataTransfer))return f=e.clientX,d=e.clientY,h||(O(),E++),null!==A&&(A=null),e.dataTransfer.dropEffect=v=R(e),i.preventDefault(e)},this.onDragLeave=function(e){if(E--,E<=0&&h)return T(),v=null,i.preventDefault(e)},this.onDrop=function(e){if(g){var n=e.dataTransfer;if(y)switch(v){case"move":m=m.contains(g.row,g.column)?{start:g,end:g}:t.moveText(m,g);break;case"copy":m=t.moveText(m,g,!0);break}else{var r=n.getData("Text");m={start:g,end:t.session.insert(g,r)},t.focus(),v=null}return T(),i.preventDefault(e)}},i.addListener(_,"dragstart",this.onDragStart.bind(e),t),i.addListener(_,"dragend",this.onDragEnd.bind(e),t),i.addListener(_,"dragenter",this.onDragEnter.bind(e),t),i.addListener(_,"dragover",this.onDragOver.bind(e),t),i.addListener(_,"dragleave",this.onDragLeave.bind(e),t),i.addListener(_,"drop",this.onDrop.bind(e),t);var A=null;function P(){null==A&&(A=setTimeout(function(){null!=A&&h&&T()},20))}function M(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function R(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],r=o.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var a="none";return r&&t.indexOf(i)>=0?a="copy":n.indexOf(i)>=0?a="move":t.indexOf(i)>=0&&(a="copy"),a}}function u(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=o.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(o.isIE&&"dragReady"==this.state){var n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton(),i=e.domEvent.detail||1;if(1===i&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var a=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in a&&(a.unselectable="on"),t.getDragDelay()){if(o.isWebKit){this.cancelDrag=!0;var s=t.container;s.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(c.prototype),t.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,i=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,t){var n,a,s,l,c,u,h,f,d,p="scroll",m=0,g=0,v=0,y=0;function b(){var e=window.navigator&&window.navigator.clipboard,n=!1,r=function(){var r=t.getCopyText(),i=t.session.getUndoManager().hasUndo();d.replaceChild(o.buildDom(n?["span",!r&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],r&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],r&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],i&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),d.firstChild)},i=function(i){var o=i.target.getAttribute("action");if("more"==o||!n)return n=!n,r();"paste"==o?e.readText().then(function(e){t.execCommand(o,e)}):o&&("cut"!=o&&"copy"!=o||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(o)),d.firstChild.style.display="none",n=!1,"openCommandPallete"!=o&&t.focus()};d=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),i(e)},onclick:i},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function w(){d||b();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.renderer.textToScreenCoordinates(0,0).pageX,i=t.renderer.scrollLeft,o=t.container.getBoundingClientRect();d.style.top=n.pageY-o.top-3+"px",n.pageX-o.left=2?t.selection.getLineRange(h.row):t.session.getBracketRange(h);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}function S(){m+=60,u=setInterval(function(){m--<=0&&(clearInterval(u),u=null),Math.abs(v)<.01&&(v=0),Math.abs(y)<.01&&(y=0),m<20&&(v*=.9),m<20&&(y*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*y),e==t.session.getScrollTop()&&(m=0)},10)}i.addListener(e,"contextmenu",function(e){if(f){var n=t.textInput.getElement();n.focus()}},t),i.addListener(e,"touchstart",function(e){var i=e.touches;if(c||i.length>1)return clearTimeout(c),c=null,s=-1,void(p="zoom");f=t.$mouseHandler.isMousePressed=!0;var o=t.renderer.layerConfig.lineHeight,u=t.renderer.layerConfig.lineHeight,d=e.timeStamp;l=d;var b=i[0],w=b.clientX,x=b.clientY;Math.abs(n-w)+Math.abs(a-x)>o&&(s=-1),n=e.clientX=w,a=e.clientY=x,v=y=0;var S=new r(e,t);if(h=S.getDocumentPosition(),d-s<500&&1==i.length&&!m)g++,e.preventDefault(),e.button=0,E();else{g=0;var C=t.selection.cursor,k=t.selection.isEmpty()?C:t.selection.anchor,O=t.renderer.$cursorLayer.getPixelPosition(C,!0),T=t.renderer.$cursorLayer.getPixelPosition(k,!0),A=t.renderer.scroller.getBoundingClientRect(),P=t.renderer.layerConfig.offset,M=t.renderer.scrollLeft,R=function(e,t){return e/=u,t=t/o-.75,e*e+t*t};if(e.clientXL?"cursor":"anchor"),p=L<3.5?"anchor":j<3.5?"cursor":"scroll",c=setTimeout(_,450)}s=d},t),i.addListener(e,"touchend",function(e){f=t.$mouseHandler.isMousePressed=!1,u&&clearInterval(u),"zoom"==p?(p="",m=0):c?(t.selection.moveToPosition(h),m=0,w()):"scroll"==p?(S(),x()):w(),clearTimeout(c),c=null},t),i.addListener(e,"touchmove",function(e){c&&(clearTimeout(c),c=null);var i=e.touches;if(!(i.length>1||"zoom"==p)){var o=i[0],s=n-o.clientX,u=a-o.clientY;if("wait"==p){if(!(s*s+u*u>4))return e.preventDefault();p="cursor"}n=o.clientX,a=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var h=e.timeStamp,f=h-l;if(l=h,"scroll"==p){var d=new r(e,t);d.speed=1,d.wheelX=s,d.wheelY=u,10*Math.abs(s)1&&(i=n[n.length-2]);var a=c[t+"Path"];return null==a?a=c.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{i=e(n)}catch(e){}if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach(function(t){t&&t(e)})})};if(!t.get("packaged"))return s();o.loadScript(t.moduleUrl(n,a),s),u()}};var u=function(){c.basePath||c.workerPath||c.modePath||c.themePath||Object.keys(c.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};function h(i){if(l&&l.document){c.packaged=i||e.packaged||r.packaged||l.define&&n("B9Yq").packaged;for(var o={},a="",s=document.currentScript||document._currentScript,u=s&&s.ownerDocument||document,h=u.getElementsByTagName("script"),d=0;d0)if(16==g){for(_=x;_-1){for(_=x;_=0;C--){if(u[C]!=w)break;t[C]=r}}}function L(e,t,n){if(!(i=e){o=f+1;while(o=e)o++;for(s=f,l=o-1;s=t.length||(l=n[i-1])!=p&&l!=m||(c=t[i+1])!=p&&c!=m?g:(o&&(c=m),c==l?c:g);case _:return l=i>0?n[i-1]:v,l==p&&i+10&&n[i-1]==p)return p;if(o)return g;h=i+1,u=t.length;while(h=1425&&R<=2303||64286==R;if(l=t[h],j&&(l==d||l==b))return d}return i<1||(l=t[i-1])==v?g:n[i-1];case v:return o=!1,a=!0,r;case y:return s=!0,g;case C:case k:case T:case A:case O:o=!1;case P:return g}}function N(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?f:M[t]:5==n?/[\u0591-\u05f4]/.test(e)?d:f:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?S:/[\u0660-\u0669\u066b-\u066c]/.test(e)?m:1642==t?E:/[\u06f0-\u06f9]/.test(e)?p:b:32==n&&t<=8287?R[255&t]:254==n&&t>=65136?b:g}t.L=f,t.R=d,t.EN=p,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="\xb7",t.doBidiReorder=function(e,n,i){if(e.length<2)return{};var o=e.split(""),a=new Array(o.length),s=new Array(o.length),l=[];r=i?h:u,j(o,l,o.length,n);for(var c=0;cb&&n[c]0&&"\u0644"===o[c-1]&&/\u0622|\u0623|\u0625|\u0627/.test(o[c])&&(l[c-1]=l[c]=t.R_H,c++);o[o.length-1]===t.DOT&&(l[o.length-1]=t.B),"\u202b"===o[0]&&(l[0]=t.RLE);for(c=0;c=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,r=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==r)break;r=n,e++}}else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,o=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var a=this.session.$wrapData[e];a&&(void 0===t&&(t=this.getSplitIndex()),t>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,i=r.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!==0&&i++;for(var s=0;st&&o[i]%2===0&&(a+=this.charWidths[o[i]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,i=r.bidiLevels,o=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,h=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,d=0;d=s&&fn+o/2){if(n+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!==0&&i[r]%2===0?(e0&&i[r-1]%2===0&&i[r]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2===0||!this.isRtlDir&&0===r&&i[r]%2!==0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!==0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){if(!this.$silent){var i=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&r.test(t))n++;if(n<1){i.lastIndex=0;while((t=e[n])&&!i.test(t))if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}while((t=e[n])&&r.test(t))n++;if(n>2)break}}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];e<0?e-=i.rowsAbove||0:e>0&&(e+=i.rowCount-(i.rowsAbove||0))}var o=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else{e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l1?this.$applyToken:c.token),h>1&&(/\\\d/.test(c.regex)?u=c.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(h=1,u=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||s.push(c)),o[i]=l,i+=h,r.push(u),c.onMatch||(c.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;iu){var v=e.substring(u,g-m.length);f.type==d?f.value+=v:(f.type&&c.push(f),f={type:d,value:v})}for(var y=0;yi){h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(u1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:c,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],u={},h={'"':'"',"'":"'"},f=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},p=function(e){this.add("braces","insertion",function(t,n,i,o,a){var l=i.getCursorPosition(),c=o.doc.getLine(l.row);if("{"==a){f(i);var u=i.getSelectionRange(),h=o.doc.getTextRange(u);if(""!==h&&"{"!==h&&i.getWrapBehavioursEnabled())return d(u,h,"{","}");if(p.isSaneInsertion(i,o))return/[\]\}\)]/.test(c[l.column])||i.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){f(i);var m=c.substring(l.column,l.column+1);if("}"==m){var g=o.$findOpeningBracket("}",{column:l.column+1,row:l.row});if(null!==g&&p.isAutoInsertedClosing(l,c,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==a||"\r\n"==a){f(i);var v="";p.isMaybeInsertedClosing(l,c)&&(v=s.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing());m=c.substring(l.column,l.column+1);if("}"===m){var y=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!y)return null;var b=this.$getIndent(o.getLine(y.row))}else{if(!v)return void p.clearMaybeInsertedClosing();b=this.$getIndent(c)}var w=b+o.getTabString();return{text:"\n"+w+"\n"+b+v,selection:[1,w.length,1,w.length]}}p.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,n,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){f(n);var s=i.doc.getLine(o.start.row),l=s.substring(o.end.column,o.end.column+1);if("}"==l)return o.end.column++,o;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,n,r,i){if("("==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return d(o,a,"(",")");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row),c=l.substring(s.column,s.column+1);if(")"==c){var u=r.$findOpeningBracket(")",{column:s.column+1,row:s.row});if(null!==u&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o){f(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if(")"==s)return i.end.column++,i}}),this.add("brackets","insertion",function(e,t,n,r,i){if("["==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return d(o,a,"[","]");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row),c=l.substring(s.column,s.column+1);if("]"==c){var u=r.$findOpeningBracket("]",{column:s.column+1,row:s.row});if(null!==u&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o){f(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if("]"==s)return i.end.column++,i}}),this.add("string_dquotes","insertion",function(e,t,n,r,i){var o=r.$mode.$quotes||h;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;f(n);var a=i,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&o[l])&&n.getWrapBehavioursEnabled())return d(s,l,a,a);if(!l){var c=n.getCursorPosition(),u=r.doc.getLine(c.row),p=u.substring(c.column-1,c.column),m=u.substring(c.column,c.column+1),g=r.getTokenAt(c.row,c.column),v=r.getTokenAt(c.row,c.column+1);if("\\"==p&&g&&/escape/.test(g.type))return null;var y,b=g&&/string|escape/.test(g.type),w=!v||/string|escape/.test(v.type);if(m==a)y=b!==w,y&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!w)return null;if(b&&w)return null;var x=r.$mode.tokenRe;x.lastIndex=0;var _=x.test(p);x.lastIndex=0;var E=x.test(p);if(_||E)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;var S=u[c.column-2];if(p==a&&(S==a||x.test(S)))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,r,i){var o=r.$mode.$quotes||h,a=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(a)){f(n);var s=r.doc.getLine(i.start.row),l=s.substring(i.start.column+1,i.start.column+2);if(l==a)return i.end.column++,i}})};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",c)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(p,o),t.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],a=0;a2?r%c!=c-1:r%c==0})}else{if(!this.blockComment)return!1;var d=this.blockComment.start,p=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+l.escapeRegExp(d)+")"),g=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(e,t){b(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},p),i.insertInLine({row:t,column:s},d))},y=function(e,t){var n;(n=e.match(g))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&i.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(m.test(e))return!0;for(var r=t.getTokens(n),i=0;ie.length&&(x=e.length)}),s==1/0&&(s=x,o=!1,a=!1),u&&s%c!=0&&(s=Math.floor(s/c)*c),w(a?y:v)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,s=new c(t,r.row,r.column),l=s.getCurrentToken(),h=(t.selection,t.selection.toOrientedRange());if(l&&/comment/.test(l.type)){var f,d;while(l&&/comment/.test(l.type)){var p=l.value.indexOf(i.start);if(-1!=p){var m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+p;f=new u(m,g,m,g+i.start.length);break}l=s.stepBackward()}s=new c(t,r.row,r.column),l=s.getCurrentToken();while(l&&/comment/.test(l.type)){p=l.value.indexOf(i.end);if(-1!=p){m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+p;d=new u(m,g,m,g+i.end.length);break}l=s.stepForward()}d&&t.remove(d),f&&(t.remove(f),o=f.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);h.start.row==o&&(h.start.column+=a),h.end.row==o&&(h.end.column+=a),t.selection.fromOrientedRange(h)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],i=n.prototype.$id,o=r.$modes[i];o||(r.$modes[i]=o=new n),r.$modes[t]||(r.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return void 0==t&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(o.prototype),t.BackgroundTokenizer=o}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,l=a;l<=s;l++){var c=this.cache[l];null==c&&(c=r.getMatchOffsets(n.getLine(l),this.regExp),c.length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map(function(e){return new i(l,e.offset,l,e.offset+e.length)}),this.cache[l]=c.length?c:"");for(var u=c.length;u--;)t.drawSingleLineMarker(e,c[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o,a=0,s=this.folds,l=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c0)){var l=i(e,a.start);return 0===s?t&&0!==l?-o-2:o:l>0||0===l&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort(function(e,t){return i(e.start,t.start)});for(var n,r=t[0],o=1;o=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row=r)break}if("insert"==e.action)for(var c=i-r,u=-t.column+n.column;ar)break;if(l.start.row==r&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=u,l.start.row+=c)),l.end.row==r&&l.end.column>=t.column){if(l.end.column==t.column&&this.$bias<0)continue;l.end.column==t.column&&u>0&&al.start.column&&l.end.column==o[a+1].start.column&&(l.end.column-=u),l.end.column+=u,l.end.row+=c}}else for(c=r-i,u=t.column-n.column;ai)break;l.end.rowt.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=u,l.end.row+=c):l.end.row>i&&(l.end.row+=c),l.start.rowt.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=u,l.start.row+=c):l.start.row>i&&(l.start.row+=c)}if(0!=c&&a=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0),r;r=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i=t){s=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,c=n.end.row,u=n.end.column,h=this.getFoldAt(s,l,1),f=this.getFoldAt(c,u,-1);if(h&&f==h)return h.addSubFold(n);h&&!h.range.isStart(s,l)&&this.removeFold(h),f&&!f.range.isEnd(c,u)&&this.removeFold(f);var d=this.getFoldsInRange(n.range);d.length>0&&(this.removeFolds(d),n.collapseChildren||d.forEach(function(e){n.addSubFold(e)}));for(var p=0;p0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n,i;if(null==e)n=new r(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new r(e,0,e,this.getLine(e).length);else if("row"in e)n=r.fromPoints(e,e);else{if(Array.isArray(e))return i=[],e.forEach(function(e){i=i.concat(this.unfold(e))},this),i;n=e}i=this.getFoldsInRangeList(n);var o=i;while(1==i.length&&r.comparePoints(i[0].start,n.start)<0&&r.comparePoints(i[0].end,n.end)>0)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(i):this.expandFolds(i),o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk(function(e,t,n,s){if(!(tu)break}while(o&&l.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return c.end.row=i.getCurrentTokenRow(),c.end.column=i.getCurrentTokenColumn()+o.value.length-2,c}},this.foldAll=function(e,t,n,r){void 0==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength(),e=e||0;for(var o=e;o=e&&(o=a.end.row,a.collapseChildren=n,this.addFold("...",a))}}},this.foldToLevel=function(e){this.foldAll();while(e-- >0)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,function(t){for(var n=e.getTokens(t),r=0;r=0){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},r=this.$toggleFoldWidget(e,n);if(!r){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1),o&&a.isEqual(o.range)))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,c=s.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=a?a.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange,n){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;function o(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){var s=this.$findClosingBracket(a[1],e);if(!s)return null;t=i.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{s=this.$findOpeningBracket(a[2],e);if(!s)return null;t=i.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),r=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(r||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!r)return null;var o=new i(e.row,e.column-1,e.row,e.column),a=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);if(!a)return[o];var s=new i(a.row,a.column,a.row,a.column+1);return[o,s]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var l=t.column-a.getCurrentTokenColumn()-2,c=s.value;while(1){while(l>=0){var u=c.charAt(l);if(u==i){if(o-=1,0==o)return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else u==e&&(o+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;c=s.value,l=c.length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var l=t.column-a.getCurrentTokenColumn();while(1){var c=s.value,u=c.length;while(ln&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,r=e.length-1;while(n<=r){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t=t)break;return n=r[o],n?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))i=/\s/;else i=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}var a=t;while(ae&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,l=0;la){if(l=o.end.row+1,l>=s)break;o=this.$foldData[i++],a=o?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;ne.end.column&&(o.start.column+=s),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=s)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var l=e.start,c=o.start;a=c.row-l.row,s=c.column-l.column;this.addFolds(i.map(function(e){return e=e.clone(),e.start.row==l.row&&(e.start.column+=s),e.end.row==l.row&&(e.end.column+=s),e.start.row+=a,e.end.row+=a,e}))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a0){r=this.getRowFoldEnd(t+n);if(r>this.doc.getLength()-1)return 0;i=r-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);i=t-e+1}var o=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map(function(e){return e=e.clone(),e.start.row+=i,e.end.row+=i,e}),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,s),a.length&&this.addFolds(a),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var u=this.getFoldLine(i.row),h=0;if(u){u.addRemoveChars(i.row,i.column,r.column-i.column),u.shiftRow(-s);var f=this.getFoldLine(o);f&&f!==u&&(f.merge(u),u=f),h=c.indexOf(u)+1}for(h;h=i.row&&u.shiftRow(-s)}a=o}else{var d=Array(s);d.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,d);c=this.$foldData,u=this.getFoldLine(o),h=0;if(u){var m=u.range.compareInside(r.row,r.column);0==m?(u=u.split(r.row,r.column),u&&(u.shiftRow(s),u.addRemoveChars(a,0,i.column-r.column))):-1==m&&(u.addRemoveChars(o,0,i.column-r.column),u.shiftRow(s)),h=c.indexOf(u)+1}for(h;h=o&&u.shiftRow(s)}}else{s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s);u=this.getFoldLine(o);u&&u.addRemoveChars(o,r.column,s)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r,i,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,u=e;t=Math.min(t,a.length-1);while(u<=t)i=this.getFoldLine(u,i),i?(r=[],i.walk(function(e,t,i,s){var l;if(null!=e){l=this.$getDisplayTokens(e,r.length),l[0]=n;for(var c=1;c=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,r,i){if(0==e.length)return[];var a=[],s=e.length,c=0,u=0,f=this.$wrapAsCode,d=this.$indentedSoftWrap,g=r<=Math.max(2*i,8)||!1===d?0:Math.floor(r/2);function v(){var t=0;if(0===g)return t;if(d)for(var n=0;nr-b){var w=c+r-b;if(e[w-1]>=h&&e[w]>=h)y(w);else if(e[w]!=n&&e[w]!=o){var x=Math.max(w-(r-(r>>2)),c-1);while(w>x&&e[w]x&&e[w]x&&e[w]==l)w--}else while(w>x&&e[w]x?y(++w):(w=c+r,e[w]==t&&w--,y(w-b))}else{for(w;w!=c-1;w--)if(e[w]==n)break;if(w>c){y(w);continue}for(w=c+r,w;w39&&s<48||s>57&&s<64?o.push(l):s>=4352&&g(s)?o.push(e,t):o.push(e)}return o},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var r,i;for(null==t&&(t=1/0),n=n||0,i=0;i=4352&&g(r)?n+=2:n+=1,n>t)break;return[n,i]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]=0){s=c[u],o=this.$docRowCache[u];var f=e>c[h-1]}else f=!h;var d=this.getLength()-1,p=this.getNextFoldLine(o),m=p?p.start.row:1/0;while(s<=e){if(l=this.getRowLength(o),s+l>e||o>=d)break;s+=l,o++,o>m&&(o=p.end.row+1,p=this.getNextFoldLine(o,p),m=p?p.start.row:1/0),f&&(this.$docRowCache.push(o),this.$screenRowCache.push(s))}if(p&&p.start.row<=o)r=this.getFoldDisplayLine(p),o=p.start.row;else{if(s+l<=e||o>d)return{row:d,column:this.getLine(d).length};r=this.getLine(o),p=null}var g=0,v=Math.floor(e-s);if(this.$useWrapMode){var y=this.$wrapData[o];y&&(i=y[v],v>0&&y.length&&(g=y.indent,a=y[v-1]||y[y.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,o,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=i&&(a=i-1),p?p.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r=0,i=null,o=null;o=this.getFoldAt(e,t,1),o&&(e=o.start.row,t=o.start.column);var a,s=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),u=l.length;if(u&&c>=0){s=l[c],r=this.$screenRowCache[c];var h=e>l[u-1]}else h=!u;var f=this.getNextFoldLine(s),d=f?f.start.row:1/0;while(s=d){if(a=f.end.row+1,a>e)break;f=this.getNextFoldLine(a,f),d=f?f.start.row:1/0}else a=s+1;r+=this.getRowLength(s),s=a,h&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var p="";f&&s>=d?(p=this.getFoldDisplayLine(f,e,t),i=f.start.row):(p=this.getLine(e).substring(0,t),i=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[i];if(g){var v=0;while(p.length>=g[v])r++,v++;p=p.substring(g[v-1]||0,p.length),m=v>0?g.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(r+=this.lineWidgets[s].rowsAbove),{row:r,column:m+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,r=0,i=(s=0,t=this.$foldData[s++],t?t.start.row:1/0);while(ri&&(r=t.end.row+1,t=this.$foldData[s++],i=t?t.start.row:1/0)}}else{e=this.getLength();for(var a=this.$foldData,s=0;sn)break;return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=g}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),e>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};function s(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach(function(e,n,i,a){return r=new o(e,n,i,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)}),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,c=s.length,u=i.length-c;e:for(var h=s.offset||0;h<=u;h++){for(var f=0;fm||(a.push(l=new o(h,m,h+c-1,g)),c>2&&(h=h+c-2))}}else for(var v=0;vx&&a[f].end.row==n.end.row)f--;for(a=a.slice(v,f+1),v=0,f=a.length;v=s;n--)if(h(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(h(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=a.row;if(!h(n,a.column,e)){for(n+=1;n<=l;n++)if(h(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(h(n,0,e))return}};if(t.$isMultiLine)var u=n.length,h=function(t,i,o){var a=r?t-u+1:t;if(!(a<0||a+u>e.getLength())){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&li))return!!o(a,l,a+u-1,h)||void 0}}};else if(r)h=function(t,r,i){var o,a=e.getLine(t),s=[],l=0;n.lastIndex=0;while(o=n.exec(a)){var c=o[0].length;if(l=o.index,!c){if(l>=a.length)break;n.lastIndex=l+=1}if(o.index+c>r)break;s.push(o.index,c)}for(var u=s.length-1;u>=0;u-=2){var h=s[u-1];c=s[u];if(i(t,h,t,h+c))return!0}};else h=function(t,r,i){var o,a,s=e.getLine(t);n.lastIndex=r;while(a=n.exec(s)){var l=a[0].length;if(o=a.index,i(t,o,t,o+l))return!0;if(!l&&(n.lastIndex=o+=1,o>=s.length))return!1}};return{forEach:c}}}).call(a.prototype),t.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/useragent"),o=r.KEY_MODS;function a(e,t){this.platform=t||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach(function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach(function(e){var t=this.parseKeys(e),n=o[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")},this),r+=" "}var a=this.parseKeys(e),s=o[a.hashId]+a.key;this._addCommandToBinding(r+s,t,n)},this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=e(n));var a=o[t];for(i=0;ir)break}a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),i=r[n];if(r.FUNCTION_KEYS[i])n=r.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=r.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=o[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=o[t]+n,a=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:a}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};r.inherits(a,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(a.prototype),t.CommandManager=a}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(e){i.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,t){"number"!==typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=t?e.selection.getLineRange():e.selection.getRange();e._emit("cut",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()),l=s.replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),u=n.row+1;u<=i.row+1;u++){var h=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(u)));0!==h.length&&(h=" "+h),c+=h}i.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+l)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach(function(e){t.removeMarker(e)}),t.$bracketHighlight=null);var n=t.getMatchingBracketRanges(e.getCursorPosition());if(!n&&t.$mode.getMatching&&(n=t.$mode.getMatching(e.session)),n){var r="ace_bracket";Array.isArray(n)?1==n.length&&(r="ace_error_bracket"):n=[n],2==n.length&&(0==d.comparePoints(n[0].end,n[1].start)?n=[d.fromPoints(n[0].start,n[1].end)]:0==d.comparePoints(n[0].start,n[1].end)&&(n=[d.fromPoints(n[1].start,n[0].end)])),t.$bracketHighlight={ranges:n,markerIds:n.map(function(e){return t.addMarker(e,r,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout(function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1===i.type.indexOf("tag-open")||(i=r.stepForward(),i)){var o=i.value,a=i.value,s=0,l=r.stepBackward();if("<"===l.value)do{l=i,i=r.stepForward(),i&&(-1!==i.type.indexOf("tag-name")?(a=i.value,o===a&&("<"===l.value?s++:""===i.value&&s--)}while(i&&s>=0);else{do{if(i=l,l=r.stepBackward(),i)if(-1!==i.type.indexOf("tag-name"))o===i.value&&("<"===l.value?s++:""===i.value){var c=0,u=l;while(u){if(-1!==u.type.indexOf("tag-name")&&u.value===o){s--;break}if("<"===u.value)break;u=r.stepBackward(),c++}for(var h=0;h1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new d(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),o=i.substring(n,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),s=i.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),i=0;is.search(/\S|$/)){var l=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var c=i.column,u=n.getState(i.row),h=(s=n.getLine(i.row),r.checkOutdent(u,s,e));if(n.insert(i,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new d(i.row,c+o.selection[0],i.row,c+o.selection[1])):this.selection.setSelectionRange(new d(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var f=r.getNextLineIndent(u,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},f)}h&&r.autoOutdent(u,n,i.row)}},this.autoIndent=function(){var e,t,n=this.session,r=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var i=this.getSelectionRange();e=i.start.row,t=i.end.row}for(var o,a,s,l="",c="",u="",h=n.getTabString(),f=e;f<=t;f++)f>0&&(l=n.getState(f-1),c=n.getLine(f-1),u=r.getNextLineIndent(l,c,h)),o=n.getLine(f),a=r.$getIndent(o),u!==a&&(a.length>0&&(s=new d(f,0,f,a.length),n.remove(s)),u.length>0&&n.insert({row:f,column:0},u)),r.autoOutdent(l,n,f)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var n=this.selection.getRange();n.start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()}if(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd){n=this.selection.getRange();n.start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n)}},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);tt.toLowerCase()?1:0});var i=new d(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var r=this.session.getLine(e);while(n.lastIndex=t){var o={value:i[0],start:i.index,end:i.index+i[0].length};return o}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new d(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&n=s&&a<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,s+r),c.selection.selectTo(e,l+r)),s=l});for(var u,h=this.$toggleWordPairs,f=0;fd+1)break;d=p.last}u--,s=this.session.$moveLines(f,d,t?0:e),t&&-1==e&&(h=u+1);while(h<=u)a[h].moveBy(s,0),h++;t||(s=0),l+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(i,0)}):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var a,s,l=!1,c={},u=n.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(i)||this.$search.$options.needle,e||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",function(){r=!0}),a=this.renderer.on("beforeRender",function(){r&&(t=n.renderer.container.getBoundingClientRect())}),s=this.renderer.on("afterRender",function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;r=o.top>=0&&s+t.top<0||!(o.topwindow.innerHeight)&&null,null!=r&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;v.loadModule("./ext/prompt",function(i){i.prompt(r,e,t,n)})}}.call(w.prototype),v.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?x.attach(this):x.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),i.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),i.addCssClass(this.container,"ace_hasPlaceholder");var t=i.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"\xb7":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};function i(e,t){for(var n=t;n--;){var r=e[n];if(r&&!r[0].ignore){while(n0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){void 0==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?c(e):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(r.prototype);var o=e("./range").Range,a=o.comparePoints;o.comparePoints;function s(e){return{row:e.row,column:e.column}}function l(e){return{start:s(e.start),end:s(e.end),action:e.action,lines:e.lines.slice()}}function c(e){if(e=e||this,Array.isArray(e))return e.map(c).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(u).join("\n"):u(e.value)),e.start&&(t+=u(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function u(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function h(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(a(t.start,e.end)>=0)p(t,e,-1);else{if(!(a(t.start,e.start)<=0))return null;p(e,t,1)}else if(n&&!r)if(a(t.start,e.end)>=0)p(t,e,-1);else{if(!(a(t.end,e.start)<=0))return null;p(e,t,-1)}else if(!n&&r)if(a(t.start,e.start)>=0)p(t,e,1);else{if(!(a(t.start,e.start)<=0))return null;p(e,t,1)}else if(!n&&!r)if(a(t.start,e.start)>=0)p(t,e,1);else{if(!(a(t.end,e.start)<=0))return null;p(e,t,-1)}return[t,e]}function f(e,t){for(var n=e.length;n--;)for(var r=0;r=0?p(e,t,-1):a(e.start,t.start)<=0?p(t,e,1):(p(e,o.fromPoints(t.start,e.start),-1),p(t,e,1));else if(!n&&r)a(t.start,e.end)>=0?p(t,e,-1):a(t.start,e.start)<=0?p(e,t,1):(p(t,o.fromPoints(e.start,t.start),-1),p(e,t,1));else if(!n&&!r)if(a(t.start,e.end)>=0)p(t,e,-1);else{var i,s;if(!(a(t.end,e.start)<=0))return a(e.start,t.start)<0&&(i=e,e=g(e,t.start)),a(e.end,t.end)>0&&(s=g(e,t.end)),m(t.end,e.start,e.end,-1),s&&!i&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,i,s].filter(Boolean);p(e,t,-1)}return[t,e]}function p(e,t,n){m(e.start,t.start,t.end,n),m(e.end,t.start,t.end,n)}function m(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function g(e,t){var n=e.lines,r=e.end;e.end=s(t);var i=e.end.row-e.start.row,o=n.splice(i,n.length),a=i?t.column:t.column-e.start.column;n.push(o[0].substring(0,a)),o[0]=o[0].substr(a);var l={start:s(t),end:r,lines:o,action:e.action};return l}function v(e,t){t=l(t);for(var n=e.length;n--;){for(var r=e[n],i=0;io&&(l=i.end.row+1,i=t.getNextFoldLine(l,i),o=i?i.start.row:1/0),l>r){while(this.$lines.getLength()>s+1)this.$lines.pop();break}a=this.$lines.get(++s),a?a.row=l:(a=this.$lines.createCell(l,e,this.session,c),this.$lines.push(a)),this.$renderCell(a,e,i,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+r-1);var o=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();o+=a.left+a.right,o===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r0;i--)this.$lines.shift();if(r>n)for(i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRowr&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){var r=[],i=t,o=this.session.getNextFoldLine(i),a=o?o.start.row:1/0;while(1){if(i>a&&(i=o.end.row+1,o=this.session.getNextFoldLine(i,o),a=o?o.start.row:1/0),i>n)break;var s=this.$lines.createCell(i,e,this.session,c);this.$renderCell(s,e,o,i),r.push(s),i++}return r},this.$renderCell=function(e,t,n,i){var o=e.element,a=this.session,s=o.childNodes[0],l=o.childNodes[1],c=a.$firstLineNumber,u=a.$breakpoints,h=a.$decorations,f=a.gutterRenderer||this.$renderer,d=this.$showFoldWidgets&&a.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i=p&&this.$cursorRow<=n.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),u[i]&&(m+=u[i]),h[i]&&(m+=h[i]),this.$annotations[i]&&(m+=this.$annotations[i].className),o.className!=m&&(o.className=m),d){var g=d[i];null==g&&(g=d[i]=a.getFoldWidget(i))}if(g){m="ace_fold-widget ace_"+g;"start"==g&&i==p&&in.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)while(this.id,u==c),o,u==c?0:1,a)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=o+t.start.column*r.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var c=t.clone();c.end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",r,null,i)}else this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){c=t.clone();c.start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",r,null,i)}else{s=this.$getTop(t.end.row,r);var u=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+u+"px;top:"+s+"px;left:"+o+"px;"+(i||""))}if(a=(t.end.row-t.start.row-1)*r.lineHeight,!(a<=0)){s=this.$getTop(t.start.row+1,r);var h=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(h?" ace_br"+h:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+o+"px;"+(i||""))}},this.drawSingleLineMarker=function(e,t,n,r,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,o);var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),c=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+c+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding,c=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);c.forEach(function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(i||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(o||""))},this)},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))}}).call(o.prototype),t.Marker=o}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)};(function(){r.implement(this,s),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode(),n=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;nu&&(s=l.end.row+1,l=this.session.getNextFoldLine(s,l),u=l?l.start.row:1/0),s>i)break;var h=o[a++];if(h){this.dom.removeChildren(h),this.$renderLine(h,s,s==u&&l),c&&(h.style.top=this.$lines.computeLineTop(s,e,this.session)+"px");var f=e.lineHeight*this.session.getRowLength(s)+"px";h.style.height!=f&&(c=!0,h.style.height=f)}s++}if(c)while(a0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){var r=[],o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;while(1){if(o>s&&(o=a.end.row+1,a=this.session.getNextFoldLine(o,a),s=a?a.start.row:1/0),o>n)break;var l=this.$lines.createCell(o,e,this.session),c=l.element;this.dom.removeChildren(c),i.setStyle(c.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),i.setStyle(c.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(c,o,o==s&&a),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",r.push(l),o++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;var t=e.firstRow,n=e.lastRow,r=this.$lines;while(r.getLength())r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){var i,a=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),c=0;while(i=s.exec(r)){var u=i[1],h=i[2],f=i[3],d=i[4],p=i[5];if(a.showSpaces||!h){var m=c!=i.index?r.slice(c,i.index):"";if(c=i.index+i[0].length,m&&l.appendChild(this.dom.createTextNode(m,this.element)),u){var g=a.session.getScreenTabSize(t+i.index);l.appendChild(a.$tabStrings[g].cloneNode(!0)),t+=g-1}else if(h)if(a.showSpaces){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_space",v.textContent=o.stringRepeat(a.SPACE_CHAR,h.length),l.appendChild(v)}else l.appendChild(this.com.createTextNode(h,this.element));else if(f){v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_space ace_invalid",v.textContent=o.stringRepeat(a.SPACE_CHAR,f.length),l.appendChild(v)}else if(d){t+=1;v=this.dom.createElement("span");v.style.width=2*a.config.characterWidth+"px",v.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=a.showSpaces?a.SPACE_CHAR:d,l.appendChild(v)}else if(p){t+=1;v=this.dom.createElement("span");v.style.width=2*a.config.characterWidth+"px",v.className="ace_cjk",v.textContent=p,l.appendChild(v)}}}if(l.appendChild(this.dom.createTextNode(c?r.slice(c):r,this.element)),this.$textToken[n.type])e.appendChild(l);else{var y="ace_"+n.type.replace(/\./g," ace_");v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=y,v.appendChild(l),e.appendChild(v)}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){r-=r%this.tabSize;for(var i=r/this.tabSize,o=0;o=a)s=this.$renderToken(l,s,u,h.substring(0,a-r)),h=h.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat("\xa0",n.indent),this.element)),i++,s=0,a=n[i]||Number.MAX_VALUE;0!=h.length&&(r+=h.length,s=this.$renderToken(l,s,u,h))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,i);n=this.$renderToken(e,n,r,i)}},this.$renderOverflowMessage=function(e,t,n,r,i){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=i?"":"",e.appendChild(o)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var i=e;if(r.length){var o=this.session.getRowSplitData(t);if(o&&o.length){this.$renderWrappedLine(e,r,o);i=e.lastChild}else{i=e;this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r)}}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showEOL&&i){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];function i(e,t,n){var i=0,o=0;while(o+e[i].value.lengthn-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1}while(on?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}}var o=n.getTokens(e);return t.walk(function(e,t,a,s,l){null!=e?r.push({type:"fold",value:e}):(l&&(o=n.getTokens(t)),o.length&&i(o,s,a))},t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,r.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),r=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),i=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:i}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[i++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}while(this.cursors.length>i)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=32768,l=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var c=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(c,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>s?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var u=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(u,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=u,t.VScrollBar=c,t.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(i.prototype),t.RenderLoop=i}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=256,u="function"==typeof ResizeObserver,h=200,f=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(t){e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle(function t(){e.checkForSizeChanges(),a.onIdle(t,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){this.$main.textContent=o.stringRepeat(e,c);var t=this.$main.getBoundingClientRect();return t.width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(h,0),e(0,h),e(h,h)],this.el)},this.transformCoordinates=function(e,t){if(e){var n=this.$getZoom(this.el);e=a(1/n,e)}function r(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function a(e,t){return[e*t[0],e*t[1]]}function s(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var l=s(this.els[0]),c=s(this.els[1]),u=s(this.els[2]),f=s(this.els[3]),d=r(i(f,c),i(f,u),i(o(c,u),o(f,l))),p=a(1+d[0],i(c,l)),m=a(1+d[1],i(u,l));if(t){var g=t,v=d[0]*g[0]/h+d[1]*g[1]/h+1,y=o(a(g[0],p),a(g[1],m));return o(a(1/v/h,y),l)}var b=i(e,l),w=r(i(p,a(d[0],b)),i(m,a(d[1],b)),b);return a(h,w)}}).call(f.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),a=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,d=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',g=e("./lib/useragent"),v=g.isIE;i.importCssString(m,"ace_editor.css",!1);var y=function(e,t){var n=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==o.get("useStrictCSP")&&o.set("useStrictCSP",!1),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new s(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new d(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!g.isIOS,this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var o=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,o|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){o|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",l),i.setStyle(this.scroller.style,"right",l),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return a.$dirty=!n||!r,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,o=n.top,a=n.left;o-=r.offset;var s=t&&t.useTextareaForIME?this.lineHeight:v?0:1;if(o<0||o>r.height-s)i.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-s;if(t)if(t.useTextareaForIME){var u=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(u)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;a-=this.scrollLeft,a>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",s+"px"),i.setStyle(e,"width",l+"px"),i.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(o,c))}}}else i.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(e,t,n,r){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",a=n.minHeight+"px";i.setStyle(this.content.style,"width",o),i.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=n<=2*this.lineHeight,i=!r&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength(),i=r*this.lineHeight,o=this.$getLongestLine(),a=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),s=this.$horizScroll!==a;s&&(this.$horizScroll=a,this.scrollBarH.setVisible(a));var l=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=u;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,i-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+h.right)));var f=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+u<0||this.scrollTop>h.top),d=l!==f;d&&(this.$vScroll=f,this.scrollBarV.setVisible(f));var p,m,g=this.scrollTop%this.lineHeight,v=Math.ceil(c/this.lineHeight)-1,y=Math.max(0,Math.round((this.scrollTop-g)/this.lineHeight)),b=y+v,w=this.lineHeight;y=e.screenToDocumentRow(y,0);var x=e.getFoldLine(y);x&&(y=x.start.row),p=e.documentToScreenRow(y,0),m=e.getRowLength(y)*w,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(b)*w+m,g=this.scrollTop-p*w;var _=0;return(this.layerConfig.width!=o||s)&&(_=this.CHANGE_H_SCROLL),(s||d)&&(_|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),d&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:y,firstRowScreen:p,lastRow:b,lineHeight:w,characterWidth:this.characterWidth,minHeight:c,maxHeight:i,offset:g,gutterOffset:w?Math.max(0,Math.ceil((g+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),_},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>o?(t&&l+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-si?(i=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(o):Math.round(o);return{row:a,column:s,side:o-s>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=this.$blockCursor?Math.floor(o):Math.round(o),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),void 0==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var o={type:t,value:e},a=i.getTokens(n);if(null==r)a.push(o);else for(var s=0,l=0;l50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);var u=function(e,t,n){var r=null,i=!1,s=Object.create(o),l=[],u=new c({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),r&&(i?setTimeout(h):h())}});u.setEmitSync=function(e){i=e};var h=function(){var e=l.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};return s.postMessage=function(e){u.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],function(e){r=new e[n](s);while(l.length)h()}),u};t.UIWorkerClient=u,t.WorkerClient=c,t.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){a.onCursorChange()})},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)}),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s=this.others[a],l={row:s.row,column:s.column+o};this.doc.insertMergedLines(l,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){s=this.others[a],l={row:s.row,column:s.column+o};this.doc.remove(new r(l.row,l.column,l.row,l.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var u=e("./search").Search,h=new u;function f(e,t,n){return h.$options.wrap=!0,h.$options.needle=t,h.$options.backwards=-1==n,h.find(e)}var d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor),a=this.rectangularRangeBlock(r,o);a.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column0)v--;if(v>0){var y=0;while(r[y].isEmpty())y++}for(var b=v;b>=y;b--)r[b].isEmpty()&&r.splice(b,1)}return r}}.call(o.prototype);var p=e("./editor").Editor;function m(e,t){return e.row==t.row&&e.column==t.column}function g(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(c.defaultCommands),v(e))}function v(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;s.addListener(t,"keydown",function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()},e),s.addListener(t,"keyup",r,e),s.addListener(t,"blur",r,e)}function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,c=l.rangeList,u=(i?l:c).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=l._eventRegistry;l._eventRegistry={};var f=new o(s);this.inVirtualSelectionMode=!0;for(var d=u.length;d--;){if(a)while(d>0&&u[d].start.row==u[d-1].end.row)d--;f.fromOrientedRange(u[d]),f.index=d,this.selection=s.selection=f;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),f.toOrientedRange(u[d])}f.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=h,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;ra&&(a=n.column),iu?e.insert(r,l.stringRepeat(" ",o-u)):e.remove(new i(r.row,r.column,r.row,r.column-o+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end}),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),h=u.start.row,f=u.end.row,d=h==f;if(d){var p,m=this.session.getLength();do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&++f0);h<0&&(h=0),f>=m&&(f=m-1)}var g=this.session.removeFullLines(h,f);g=this.$reAlignText(g,d),this.session.insert({row:h,column:0},g.join("\n")+"\n"),d||(u.start.column=0,u.end.column=g[g.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,a=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),rt[3].length&&(i=t[3].length),t):[e]}).map(t?c:o?a?u:c:h);function s(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?s(n)+e[2]+s(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?s(n+r-e[2].length)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function h(e){return e[2]?s(n)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=g,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){g(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),a=o.search(i);if(-1!=a){var s=n||o.length,l=e.getLength(),c=t,u=t;while(++tc){var d=e.getLine(u).length;return new r(c,s,u,d)}}},this.openingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i+1},s=e.$findClosingBracket(t,a,o);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(i.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("./lib/dom");function i(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;st[n].column&&n++,o.unshift(n,0),t.splice.apply(t,o),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach(function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}}),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var i=this.session.lineWidgets;e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],r=[];while(n)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o0&&!r[i])i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var c=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(c-=t.scrollLeft),s.el.style.left=c+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(i.prototype),t.LineWidgets=i}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,i=e("../lib/dom"),o=e("../range").Range;function a(e,t,n){var r=0,i=e.length-1;while(r<=i){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}function s(e,t,n){var r=e.getAnnotations().sort(o.comparePoints);if(r.length){var i=a(r,{row:t,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var s=r[i];if(s&&n){if(s.row===t){do{s=r[i+=n]}while(s&&s.row===t);if(!s)return r.slice()}var l=[];t=s.row;do{l[n<0?"unshift":"push"](s),s=r[i+=n]}while(s&&s.row==t);return l.length&&l}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var o=e.getCursorPosition(),a=o.row,l=n.widgetManager.getWidgetsAtRow(a).filter(function(e){return"errorMarker"==e.type})[0];l?l.destroy():a-=t;var c,u=s(n,a,t);if(u){var h=u[0];o.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,o.row=h.row,c=e.renderer.$gutterLayer.$annotations[o.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(o.row),e.selection.moveToPosition(o);var f={row:o.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},d=f.el.appendChild(i.createElement("div")),p=f.el.appendChild(i.createElement("div"));p.className="error_widget_arrow "+c.className;var m=e.renderer.$cursorLayer.getPixelPosition(o).left;p.style.left=m+e.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",d.className="error_widget "+c.className,d.innerHTML=c.text.join("
"),d.appendChild(i.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return f.destroy(),{command:"null"}};f.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(f),e.off("changeSelection",f.destroy),e.off("changeSession",f.destroy),e.off("mouseup",f.destroy),e.off("change",f.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",f.destroy),e.on("changeSession",f.destroy),e.on("mouseup",f.destroy),e.on("change",f.destroy),e.session.widgetManager.addLineWidget(f),f.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},i.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/dom"),o=e("./lib/event"),a=e("./range").Range,s=e("./editor").Editor,l=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n("B9Yq"),t.edit=function(e,n){if("string"==typeof e){var r=e;if(e=document.getElementById(r),!e)throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=i.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var c=t.createEditSession(a),h=new s(new u(e),c,n),f={document:c,editor:h,onResize:h.resize.bind(h,null)};return l&&(f.textarea=l),o.addListener(window,"resize",f.onResize),h.on("destroy",function(){o.removeListener(window,"resize",f.onResize),f.editor.container.env=null}),h.container.env=h.env=f,h},t.createEditSession=function(e,t){var n=new l(e,t);return n.setUndoManager(new c),n},t.Range=a,t.Editor=s,t.EditSession=l,t.UndoManager=c,t.VirtualRenderer=u,t.version=t.config.version}),function(){ace.require(["ace/ace"],function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace["default"]=window.ace,e&&(e.exports=window.ace)})}()}).call(this,n("YuTi")(e))},bV5f:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},bYtY:function(e,t,n){"use strict";n.d(t,"n",function(){return g}),n.d(t,"C",function(){return v}),n.d(t,"d",function(){return y}),n.d(t,"E",function(){return b}),n.d(t,"l",function(){return w}),n.d(t,"i",function(){return x}),n.d(t,"p",function(){return _}),n.d(t,"q",function(){return E}),n.d(t,"F",function(){return S}),n.d(t,"s",function(){return C}),n.d(t,"j",function(){return k}),n.d(t,"D",function(){return O}),n.d(t,"I",function(){return T}),n.d(t,"m",function(){return A}),n.d(t,"B",function(){return P}),n.d(t,"c",function(){return R}),n.d(t,"h",function(){return j}),n.d(t,"r",function(){return L}),n.d(t,"u",function(){return D}),n.d(t,"y",function(){return N}),n.d(t,"z",function(){return I}),n.d(t,"w",function(){return $}),n.d(t,"x",function(){return F}),n.d(t,"A",function(){return V}),n.d(t,"t",function(){return W}),n.d(t,"v",function(){return H}),n.d(t,"k",function(){return U}),n.d(t,"J",function(){return z}),n.d(t,"K",function(){return q}),n.d(t,"L",function(){return K}),n.d(t,"N",function(){return G}),n.d(t,"H",function(){return Y}),n.d(t,"b",function(){return X}),n.d(t,"O",function(){return Q}),n.d(t,"M",function(){return J}),n.d(t,"f",function(){return ne}),n.d(t,"e",function(){return re}),n.d(t,"g",function(){return ie}),n.d(t,"o",function(){return oe}),n.d(t,"G",function(){return ae}),n.d(t,"a",function(){return se});var r=n("cm6r"),i=T(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),o=T(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p="__proto__",m=2311;function g(){return m++}function v(){for(var e=[],t=0;t-1};function l(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!==typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=d(t);return t.readAsText(e),n}function g(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof x){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=w(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function E(e){var t=new h,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];S.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})};var k=r.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}function O(e,t){return new Promise(function(n,o){var a=new x(e,t);if(a.signal&&a.signal.aborted)return o(new k("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}function u(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:E(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;setTimeout(function(){n(new S(t,e))},0)},s.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){o(new k("Aborted","AbortError"))},0)},s.open(a.method,u(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i.blob?s.responseType="blob":i.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!==typeof t.headers||t.headers instanceof h?a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(t.headers).forEach(function(e){s.setRequestHeader(e,c(t.headers[e]))}),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)})}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=h,r.Request=x,r.Response=S)},bdgK:function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!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)},e.prototype.disconnect_=function(){r&&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,r=c.some(function(e){return!!~n.indexOf(e)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),T="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(){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=h.getInstance(),r=new O(t,n,this);T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){A.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}});var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();t["default"]=P}.call(this,n("yLpj"))},bmIi:function(e,t,n){"use strict";var r=n("/Mfd"),i=n("pQGJ"),o=n("lvAo"),a={};n("VPOE")(a,n("gL7N")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},brdU:function(e,t,n){"use strict";n.r(t);var 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};function i(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return i(e,t[n])});var n="undefined"===typeof e?"undefined":r(e),o="undefined"===typeof t?"undefined":r(t);if(n!==o)return!1;if("object"===n){var a=e.valueOf(),s=t.valueOf();if(a!==e||s!==t)return i(a,s);var l=Object.keys(e),c=Object.keys(t);return l.length===c.length&&l.every(function(n){return i(e[n],t[n])})}return!1}t["default"]=i},bsDr:function(e,t,n){"use strict";var r=n("2a/h"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},c0Oy:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},cDf5:function(e,t){function n(t){"@babel/helpers - typeof";return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},cOkC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warning=i,t.note=o,t.resetWarned=a,t.call=s,t.warningOnce=l,t.noteOnce=c,t.default=void 0;var r={};function i(e,t){0}function o(e,t){0}function a(){r={}}function s(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function l(e,t){s(i,e,t)}function c(e,t){s(o,e,t)}var u=l;t.default=u},cQyX:function(e,t,n){var r=n("gL7N")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},ccE7:function(e,t,n){var r=n("Ojgd"),i=n("Jes0");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},ck9s:function(e,t,n){"use strict";var r=n("ZFOp"),i=n("MgzW"),o=n("8jRI");function a(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[l(t,e),"[",r,"]"].join(""):[l(t,e),"[",l(r,e),"]=",l(n,e)].join("")};case"bracket":return function(t,n){return null===n?l(t,e):[l(t,e),"[]=",l(n,e)].join("")};default:return function(t,n){return null===n?l(t,e):[l(t,e),"=",l(n,e)].join("")}}}function s(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e){return Array.isArray(e)?e.sort():"object"===typeof e?c(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function u(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){t=i({arrayFormat:"none"},t);var n=s(t),r=Object.create(null);return"string"!==typeof e?r:(e=e.trim().replace(/^[?#&]/,""),e?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:o(a),n(o(i),a,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=c(n):e[t]=n,e},Object.create(null))):r)}t.extract=u,t.parse=h,t.stringify=function(e,t){var n={encode:!0,strict:!0,arrayFormat:"none"};t=i(n,t),!1===t.sort&&(t.sort=function(){});var r=a(t);return e?Object.keys(e).sort(t.sort).map(function(n){var i=e[n];if(void 0===i)return"";if(null===i)return l(n,t);if(Array.isArray(i)){var o=[];return i.slice().forEach(function(e){void 0!==e&&o.push(r(n,e,o.length))}),o.join("&")}return l(n,t)+"="+l(i,t)}).filter(function(e){return e.length>0}).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:h(u(e),t)}}},cm6r:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return f});var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n=0)c=l*n.length;else for(var f=0;f{this.props.dispatch({type:"user/ban"})}})}userFilter(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.props.dispatch({type:"user/addFilter",key:e,condition:t,value:n,clear:r})}orderFilter(e,t,n){this.props.dispatch({type:"order/addFilter",key:e,condition:t,value:n}),_.a.push("/order")}resetSecret(e){var t=this;p["a"].confirm({title:"\u91cd\u7f6e\u5b89\u5168\u4fe1\u606f",content:"\u786e\u5b9a\u8981\u91cd\u7f6e".concat(e.email,"\u7684\u5b89\u5168\u4fe1\u606f\u5417\uff1f"),onOk(){t.props.dispatch({type:"user/resetSecret",id:e.id})},okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})}render(){var e,t,n,r,o,p,m=this.props.user,b=m.users,x=m.pagination,_=m.fetchLoading,E=m.filter,j=this.props.serverGroup.groups,L=this.props.plan.plans,D=[{title:"ID",dataIndex:"id",key:"id",sorter:!0},{title:"\u90ae\u7bb1",dataIndex:"email",key:"email",render:(e,t)=>{return g.a.createElement(f["a"],{placement:"top",title:t.t?"\u6700\u540e\u5728\u7ebf".concat(w()(1e3*t.t).format("YYYY-MM-DD HH:mm:ss")):"\u4ece\u672a\u5728\u7ebf"},g.a.createElement(d["a"],{status:(new Date).getTime()/1e3-600>t.t?"default":"success"}),e)}},{title:"\u72b6\u6001",dataIndex:"banned",key:"banned",sorter:!0,render:e=>{return g.a.createElement(h["a"],{color:e?"red":"green"},e?"\u5c01\u7981":"\u6b63\u5e38")}},{title:"\u8ba2\u9605",dataIndex:"plan_name",key:"plan_id",sorter:!0,render:e=>{return e||"-"}},{title:"\u6743\u9650\u7ec4",dataIndex:"group_id",key:"group_id",sorter:!0,render:e=>{var t=j.find(t=>t.id===e);return t?t.name:"-"}},{title:"\u5df2\u7528(G)",dataIndex:"total_used",key:"total_used",sorter:!0,render:(e,t)=>{return g.a.createElement(h["a"],{color:parseFloat(e)>parseFloat(t.transfer_enable)?"red":"green"},e)}},{title:"\u6d41\u91cf(G)",dataIndex:"transfer_enable",key:"transfer_enable",sorter:!0,render:(e,t)=>{return e}},{title:"\u5230\u671f\u65f6\u95f4",dataIndex:"expired_at",key:"expired_at",sorter:!0,render:e=>{return g.a.createElement(h["a"],{color:e<(new Date).getTime()/1e3&&null!==e?"red":"green"},e?w()(1e3*e).format("YYYY/MM/DD HH:mm"):null===e?"\u957f\u671f\u6709\u6548":"-")}},{title:"\u4f59\u989d",dataIndex:"balance",key:"balance",sorter:!0},{title:"\u4f63\u91d1",dataIndex:"commission_balance",key:"commission_balance",sorter:!0},{title:"\u52a0\u5165\u65f6\u95f4",dataIndex:"created_at",key:"created_at",sorter:!0,render:e=>{return w()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t,n)=>{return g.a.createElement(g.a.Fragment,null,g.a.createElement(l["a"],{trigger:"click",overlay:g.a.createElement(c["a"],null,g.a.createElement(c["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},g.a.createElement(C["a"],{userId:t.id,key:t.id},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"edit"})," \u7f16\u8f91"))),g.a.createElement(c["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},g.a.createElement(S["a"],{email:t.email,key:t.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"plus"})," \u5206\u914d\u8ba2\u5355"))),g.a.createElement(c["a"].Item,null,g.a.createElement("a",{onClick:()=>Object(A["a"])(t.subscribe_url)},g.a.createElement(u["a"],{type:"copy"})," \u590d\u5236\u8ba2\u9605URL")),g.a.createElement(c["a"].Item,null,g.a.createElement("a",{onClick:()=>this.resetSecret(t)},g.a.createElement(u["a"],{type:"reload"})," \u91cd\u7f6eUUID\u53ca\u8ba2\u9605URL")),g.a.createElement(c["a"].Item,{onClick:()=>this.orderFilter("user_id","=",t.id)},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"account-book"})," TA\u7684\u8ba2\u5355")),g.a.createElement(c["a"].Item,{onClick:()=>this.userFilter("invite_user_id","=",t.id,!0)},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"usergroup-add"})," TA\u7684\u9080\u8bf7")),g.a.createElement(c["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},g.a.createElement(R["a"],{userId:null===t||void 0===t?void 0:t.id,key:null===t||void 0===t?void 0:t.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"solution"})," TA\u7684\u6d41\u91cf\u8bb0\u5f55"))))},g.a.createElement("a",{href:"javascript:void(0);"},"\u64cd\u4f5c ",g.a.createElement(u["a"],{type:"caret-down"}))))}}];return g.a.createElement(v["a"],i()({},this.props,{title:"\u7528\u6237\u7ba1\u7406"}),g.a.createElement(M["a"],{loading:_},g.a.createElement("div",{className:"block border-bottom"},g.a.createElement("div",{className:"bg-white"},g.a.createElement("div",{className:"v2board-table-action",style:{padding:15}},g.a.createElement(f["a"],{title:"Tips\uff1a\u53ef\u4ee5\u4f7f\u7528\u8fc7\u6ee4\u5668\u8fc7\u6ee4\u540e\u518d\u4f7f\u7528\u64cd\u4f5c\u5bf9\u8fc7\u6ee4\u7684\u7528\u6237\u8fdb\u884c\u64cd\u4f5c\u3002",placement:"right"},g.a.createElement(k["a"],null,g.a.createElement(O["a"],{key:E.length,value:E,onOk:e=>this.props.dispatch({type:"user/filter",filter:e}),keys:[{key:"email",title:"\u90ae\u7bb1",condition:["\u6a21\u7cca"]},{key:"id",title:"\u7528\u6237ID",condition:["=",">=",">","<","<="]},{key:"plan_id",title:"\u8ba2\u9605",condition:["="],type:"select",options:L.map(e=>({key:e.name,value:e.id}))},{key:"transfer_enable",title:"\u6d41\u91cf",condition:[">=",">","<","<="]},{key:"d",title:"\u4e0b\u884c",condition:[">=",">","<","<="]},{key:"expired_at",title:"\u5230\u671f\u65f6\u95f4",condition:[">=",">","<","<="],type:"date"},{key:"uuid",title:"UUID",condition:["="]},{key:"token",title:"TOKEN",condition:["="]},{key:"banned",title:"\u8d26\u53f7\u72b6\u6001",condition:["="],type:"select",options:[{key:"\u6b63\u5e38",value:0},{key:"\u5c01\u7981",value:1}]},{key:"invite_by_email",title:"\u9080\u8bf7\u4eba\u90ae\u7bb1",condition:["\u6a21\u7cca"]},{key:"invite_user_id",title:"\u9080\u8bf7\u4ebaID",condition:["="]},{key:"remarks",title:"\u5907\u6ce8",condition:["\u6a21\u7cca"]}]},g.a.createElement(s["a"],{type:E.length>0?"primary":""},g.a.createElement(u["a"],{type:"filter"})," \u8fc7\u6ee4\u5668")),g.a.createElement(l["a"],{overlay:g.a.createElement(c["a"],null,g.a.createElement(c["a"].Item,null,g.a.createElement("a",{onClick:()=>this.dumpCSV()},g.a.createElement(u["a"],{type:"file-excel"})," \u5bfc\u51faCSV")),g.a.createElement(c["a"].Item,null,g.a.createElement(y["a"],null,g.a.createElement("a",null,g.a.createElement(u["a"],{type:"mail"})," \u53d1\u9001\u90ae\u4ef6"))),g.a.createElement(c["a"].Item,{disabled:!E.length},g.a.createElement("a",{disabled:!E.length,onClick:()=>this.ban()},g.a.createElement(u["a"],{type:"stop"})," \u6279\u91cf\u5c01\u7981")))},g.a.createElement(s["a"],null,g.a.createElement(u["a"],{type:"select"}),"\u64cd\u4f5c")))),g.a.createElement(T["a"],null,g.a.createElement(s["a"],{className:"ml-2"},g.a.createElement(u["a"],{type:"user-add"})))),g.a.createElement(P["a"],{onContextMenu:e=>{this.record=e,this.forceUpdate()},className:"v2board-table",tableLayout:"auto",dataSource:b,pagination:a()({},x,{size:"small",showSizeChanger:!0,pageSizeOptions:[10,50,100,150]}),columns:D,scroll:{x:1500},onChange:(e,t,n)=>this.tableOnChange(e,n)},g.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"},g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement(C["a"],{userId:null===(e=this.record)||void 0===e?void 0:e.id,key:null===(t=this.record)||void 0===t?void 0:t.id},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"edit"})," \u7f16\u8f91"))),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement(S["a"],{email:null===(n=this.record)||void 0===n?void 0:n.email,key:null===(r=this.record)||void 0===r?void 0:r.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"plus"})," \u5206\u914d\u8ba2\u5355"))),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement("a",{onClick:()=>{var e;return Object(A["a"])(null===(e=this.record)||void 0===e?void 0:e.subscribe_url)}},g.a.createElement(u["a"],{type:"copy"})," \u590d\u5236\u8ba2\u9605URL")),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement("a",{style:{color:"#ff4d4f"},onClick:()=>this.resetSecret(this.record)},g.a.createElement(u["a"],{type:"reload"})," \u91cd\u7f6eUUID\u53ca\u8ba2\u9605URL")),g.a.createElement("li",{className:"ant-dropdown-menu-item",onClick:()=>{var e;return this.orderFilter("user_id","=",null===(e=this.record)||void 0===e?void 0:e.id)}},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"account-book"})," TA\u7684\u8ba2\u5355")),g.a.createElement("li",{className:"ant-dropdown-menu-item",onClick:()=>{var e;return this.userFilter("invite_user_id","=",null===(e=this.record)||void 0===e?void 0:e.id,!0)}},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"usergroup-add"})," TA\u7684\u9080\u8bf7")),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement(R["a"],{userId:null===(o=this.record)||void 0===o?void 0:o.id,key:null===(p=this.record)||void 0===p?void 0:p.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"solution"})," TA\u7684\u6d41\u91cf\u8bb0\u5f55")))))))))}}t["default"]=Object(E["c"])(e=>{var t=e.user,n=e.serverGroup,r=e.plan;return{user:t,serverGroup:n,plan:r}})(j)},d6i3:function(e,t,n){e.exports=n("wOl0")},dX6P:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=n("3a4m"),c=n.n(l);t["default"]={name:"auth",state:{},reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{login(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.action,o=t.put,n.next=4,o({type:"save",payload:{loginLoading:!0}});case 4:return n.next=6,Object(s["b"])("/passport/auth/login",r);case 6:return a=n.sent,n.next=9,o({type:"save",payload:{loginLoading:!1}});case 9:if(200===a.code){n.next=11;break}return n.abrupt("return");case 11:if(a.data.is_admin){n.next=13;break}return n.abrupt("return");case 13:c.a.push("/dashboard");case 14:case"end":return n.stop()}},n)})()},register(e){return i.a.mark(function t(){var n,r,o;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.action,r=e.complete,t.next=3,Object(s["a"])("/passport/auth/register",n);case 3:o=t.sent,o&&r(o);case 5:case"end":return t.stop()}},t)})()}}}},dcFJ:function(e,t,n){"use strict";var r=n("wHrr"),i=n("WGNW"),o=n("il4q"),a=n("69SZ"),s=n("ULMT"),l=n("OsVd"),c=n("aSE1"),u=n("BnQZ");i(i.S+i.F*!n("cQyX")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,h,f=o(e),d="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(f);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(t=l(f.length),n=new d(t);t>v;v++)c(n,v,g?m(f[v],v):f[v]);else for(h=y.call(f),n=new d;!(i=h.next()).done;v++)c(n,v,g?a(h,m,[i.value,v],!0):i.value);return n.length=v,n}})},dl0q:function(e,t,n){n("Zxgi")("observable")},dplF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n("i8i4"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return e instanceof HTMLElement?e:r.default.findDOMNode(e)}},dqUG:function(e,t,n){"use strict";n.d(t,"c",function(){return w}),n.d(t,"b",function(){return _});var r=n("mrSG"),i=n("1AkM"),o=n("3U8f"),a=n("bYtY"),s=n("6GrX"),l=n("Dagg"),c=n("x6Kt"),u=n("mFDi"),h=n("Gev7"),f=n("cm6r"),d={fill:"#000"},p=2,m={style:Object(a["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h["a"].style)},g=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=d,n.attr(t),n}return Object(r["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,$=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),F=a.calculatedLineHeight,B=0;B=0&&(R=_[M],"right"===R.align))this._placeToken(R,e,S,v,P,"right",b),C-=R.width,P-=R.width,M--;O+=(r-(O-g)-(y-P)-C)/2;while(k<=M)R=_[k],this._placeToken(R,e,S,v,O+R.width/2,"center",b),O+=R.width,k++;v+=S}},t.prototype._placeToken=function(e,t,n,r,i,l,c){var h=t.rich[e.styleName]||{};h.text=e.text;var d=e.verticalAlign,m=r+n/2;"top"===d?m=r+e.height/2:"bottom"===d&&(m=r+n-e.height/2);var g=!e.isLineHolder&&A(h);g&&this._renderBackground(h,t,"right"===l?i-e.width:"center"===l?i-e.width/2:i,m-e.height/2,e.width,e.height);var v=!!h.backgroundColor,y=e.textPadding;y&&(i=O(i,l,y),m-=e.height/2-y[0]-e.innerHeight/2);var b=this._getOrCreateChild(o["a"]),w=b.createStyle();b.useStyle(w);var _=this._defaultStyle,E=!1,S=0,T=k("fill"in h?h.fill:"fill"in t?t.fill:(E=!0,_.fill)),P=C("stroke"in h?h.stroke:"stroke"in t?t.stroke:v||c||_.autoStroke&&!E?null:(S=p,_.stroke)),M=h.textShadowBlur>0||t.textShadowBlur>0;w.text=e.text,w.x=i,w.y=m,M&&(w.shadowBlur=h.textShadowBlur||t.textShadowBlur||0,w.shadowColor=h.textShadowColor||t.textShadowColor||"transparent",w.shadowOffsetX=h.textShadowOffsetX||t.textShadowOffsetX||0,w.shadowOffsetY=h.textShadowOffsetY||t.textShadowOffsetY||0),w.textAlign=l,w.textBaseline="middle",w.font=e.font||f["a"],w.opacity=Object(a["L"])(h.opacity,t.opacity,1),x(w,h),P&&(w.lineWidth=Object(a["L"])(h.lineWidth,t.lineWidth,S),w.lineDash=Object(a["K"])(h.lineDash,t.lineDash),w.lineDashOffset=t.lineDashOffset||0,w.stroke=P),T&&(w.fill=T);var R=e.contentWidth,j=e.contentHeight;b.setBoundingRect(new u["a"](Object(s["a"])(w.x,R,w.textAlign),Object(s["b"])(w.y,j,w.textBaseline),R,j))},t.prototype._renderBackground=function(e,t,n,r,i,o){var s,u,h=e.backgroundColor,f=e.borderWidth,d=e.borderColor,p=h&&h.image,m=h&&!p,g=e.borderRadius,v=this;if(m||e.lineHeight||f&&d){s=this._getOrCreateChild(c["a"]),s.useStyle(s.createStyle()),s.style.fill=null;var y=s.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=g,s.dirtyShape()}if(m){var b=s.style;b.fill=h||null,b.fillOpacity=Object(a["K"])(e.fillOpacity,1)}else if(p){u=this._getOrCreateChild(l["a"]),u.onload=function(){v.dirtyStyle()};var w=u.style;w.image=h.image,w.x=n,w.y=r,w.width=i,w.height=o}if(f&&d){b=s.style;b.lineWidth=f,b.stroke=d,b.strokeOpacity=Object(a["K"])(e.strokeOpacity,1),b.lineDash=e.borderDash,b.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var x=(s||u).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=Object(a["L"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return _(e)&&(t=[e.fontStyle,e.fontWeight,w(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(a["O"])(t)||e.textFont||e.font},t}(h["c"]),v={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},b=["fontStyle","fontWeight","fontSize","fontFamily"];function w(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?f["c"]+"px":e+"px":e}function x(e,t){for(var n=0;ne.ticket);case 3:return i=e.sent,a=i.pagination,c=i.filter,e.next=8,n({type:"setState",payload:{fetchLoading:!0}});case 8:return e.next=10,Object(l["a"])("/admin/ticket/fetch",s()({},a,c));case 10:return u=e.sent,e.next=13,n({type:"setState",payload:{fetchLoading:!1}});case 13:if(200===u.code){e.next=15;break}return e.abrupt("return");case 15:return e.next=17,n({type:"setState",payload:{tickets:u.data,pagination:s()({},a,{total:u.total})}});case 17:case"end":return e.stop()}},e)})()},fetchById(e,t){return o.a.mark(function n(){var r,i,a,s,c,u;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,i=t.put,a=t.select,n.next=4,Object(l["a"])("/admin/ticket/fetch",{id:r});case 4:if(s=n.sent,200===s.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,i({type:"setState",payload:{ticket:s.data}});case 9:return n.next=11,a(e=>e.user);case 11:if(c=n.sent,u=c.user,!u.id){n.next=15;break}return n.abrupt("return");case 15:return n.next=17,i({type:"user/getUserInfoById",id:s.data.user_id});case 17:case"end":return n.stop()}},n)})()},close(e,t){return o.a.mark(function n(){var r,i,a;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,i=t.put,n.next=4,Object(l["b"])("/admin/ticket/close",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,i({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},reply(e,t){return o.a.mark(function n(){var i,a,s,c,u;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return i=e.id,a=e.msg,s=e.callback,c=t.put,r["a"].loading("\u53d1\u9001\u4e2d"),n.next=5,c({type:"setState",payload:{replyLoading:!0}});case 5:return n.next=7,Object(l["b"])("/admin/ticket/reply",{id:i,message:a});case 7:return u=n.sent,n.next=10,c({type:"setState",payload:{replyLoading:!1}});case 10:if(r["a"].destroy(),200===u.code){n.next=13;break}return n.abrupt("return");case 13:return n.next=15,c({type:"fetchById",id:i});case 15:"function"===typeof s&&s();case 16:case"end":return n.stop()}},n)})()},filter(e,t){return o.a.mark(function n(){var r,i,a,l,c;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,i=e.filter,a=t.put,l=t.select,n.next=4,l(e=>e.ticket);case 4:return c=n.sent,n.next=7,a({type:"setState",payload:{pagination:s()({},c.pagination,r),filter:s()({},c.filter,i)}});case 7:return n.next=9,a({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},e6w7:function(e,t){t.f=Object.getOwnPropertySymbols},"eA/Y":function(e,t,n){"use strict";e.exports=o;var r=n("J78i"),i=Object.create(n("Onz0"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n("P7XM"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},eDIo:function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("i8i4"),l=n.n(s),c=n("uciX"),u=n("TSYQ"),h=n.n(u),f={adjustX:1,adjustY:1},d=[0,0],p={topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:d},topCenter:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:d},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:d},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:d},bottomCenter:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:d},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:d}},m=p,g=n("VCL8"),v=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function x(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=function(e){function t(n){b(this,t);var r=w(this,e.call(this,n));return E.call(r),r.state="visible"in n?{visible:n.visible}:{visible:n.defaultVisible},r}return x(t,e),t.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:null},t.prototype.getOverlayElement=function(){var e=this.props.overlay,t=void 0;return t="function"===typeof e?e():e,t},t.prototype.getMenuElementOrLambda=function(){var e=this.props.overlay;return"function"===typeof e?this.getMenuElement:this.getMenuElement()},t.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},t.prototype.getOpenClassName=function(){var e=this.props,t=e.openClassName,n=e.prefixCls;return void 0!==t?t:n+"-open"},t.prototype.renderChildren=function(){var e=this.props.children,t=this.state.visible,n=e.props?e.props:{},i=h()(n.className,this.getOpenClassName());return t&&e?Object(r["cloneElement"])(e,{className:i}):e},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.transitionName,r=e.animation,o=e.align,a=e.placement,s=e.getPopupContainer,l=e.showAction,u=e.hideAction,h=e.overlayClassName,f=e.overlayStyle,d=e.trigger,p=y(e,["prefixCls","transitionName","animation","align","placement","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","trigger"]),g=u;return g||-1===d.indexOf("contextMenu")||(g=["click"]),i.a.createElement(c["a"],v({},p,{prefixCls:t,ref:this.saveTrigger,popupClassName:h,popupStyle:f,builtinPlacements:m,action:d,showAction:l,hideAction:g||[],popupPlacement:a,popupAlign:o,popupTransitionName:n,popupAnimation:r,popupVisible:this.state.visible,afterPopupVisibleChange:this.afterVisibleChange,popup:this.getMenuElementOrLambda(),onPopupVisibleChange:this.onVisibleChange,getPopupContainer:s}),this.renderChildren())},t}(r["Component"]);_.propTypes={minOverlayWidthMatchTrigger:a.a.bool,onVisibleChange:a.a.func,onOverlayClick:a.a.func,prefixCls:a.a.string,children:a.a.any,transitionName:a.a.string,overlayClassName:a.a.string,openClassName:a.a.string,animation:a.a.any,align:a.a.object,overlayStyle:a.a.object,placement:a.a.string,overlay:a.a.oneOfType([a.a.node,a.a.func]),trigger:a.a.array,alignPoint:a.a.bool,showAction:a.a.array,hideAction:a.a.array,getPopupContainer:a.a.func,visible:a.a.bool,defaultVisible:a.a.bool},_.defaultProps={prefixCls:"rc-dropdown",trigger:["hover"],showAction:[],overlayClassName:"",overlayStyle:{},defaultVisible:!1,onVisibleChange:function(){},placement:"bottomLeft"};var E=function(){var e=this;this.onClick=function(t){var n=e.props,r=e.getOverlayElement().props;"visible"in n||e.setState({visible:!1}),n.onOverlayClick&&n.onOverlayClick(t),r.onClick&&r.onClick(t)},this.onVisibleChange=function(t){var n=e.props;"visible"in n||e.setState({visible:t}),n.onVisibleChange(t)},this.getMinOverlayWidthMatchTrigger=function(){var t=e.props,n=t.minOverlayWidthMatchTrigger,r=t.alignPoint;return"minOverlayWidthMatchTrigger"in e.props?n:!r},this.getMenuElement=function(){var t=e.props.prefixCls,n=e.getOverlayElement(),r={prefixCls:t+"-menu",onClick:e.onClick};return"string"===typeof n.type&&delete r.prefixCls,i.a.cloneElement(n,r)},this.afterVisibleChange=function(t){if(t&&e.getMinOverlayWidthMatchTrigger()){var n=e.getPopupDomNode(),r=l.a.findDOMNode(e);r&&n&&r.offsetWidth>n.offsetWidth&&(n.style.minWidth=r.offsetWidth+"px",e.trigger&&e.trigger._component&&e.trigger._component.alignInstance&&e.trigger._component.alignInstance.forceAlign())}},this.saveTrigger=function(t){e.trigger=t}};Object(g["polyfill"])(_);var S=_;t["a"]=S},eGJ5:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("q1tI"),a=n("iCc5"),s=n.n(a),l=n("FYw3"),c=n.n(l),u=n("mRg0"),h=n.n(u),f=n("i8i4"),d=n("4IlW"),p=n("l4aY"),m=n("MFj2"),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ithis.setState({visible:!1})})}show(){this.props.dispatch({type:"payment/getPaymentMethods",complete:e=>{this.setState({visible:!0,paymentMethods:e,selectPaymentMethod:this.state.submit.payment||e[0]},()=>{this.onSelectPaymentMethod(this.state.submit.payment||e[0])})}})}onSelectPaymentMethod(e){this.props.dispatch({type:"payment/getPaymentForm",payment:e,id:this.state.submit.id,complete:t=>{this.setState({form:t,selectPaymentMethod:e})}})}configOnChange(e,t){var n=this.state.config;n[e]=t,this.setState({config:n})}submitOnChange(e,t){var n=this.state.submit;n[e]=t,this.setState({submit:n})}render(){var e=this.props.payment.fetchLoading,t=this.state,n=t.paymentMethods,r=t.selectPaymentMethod,i=t.form,o=t.config,a=t.submit;return d.a.createElement(d.a.Fragment,null,d.a.cloneElement(this.props.children,{onClick:()=>this.show()}),d.a.createElement(s["a"],{title:this.state.submit.id?"\u7f16\u8f91\u652f\u4ed8\u65b9\u5f0f":"\u6dfb\u52a0\u652f\u4ed8\u65b9\u5f0f",visible:this.state.visible,onCancel:()=>this.setState({visible:!1}),onOk:()=>this.save(),okText:this.state.submit.id?"\u4fdd\u5b58":"\u6dfb\u52a0",okButtonProps:{loading:e},cancelText:"\u53d6\u6d88"},d.a.createElement("div",null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{for:"example-text-input-alt"},"\u663e\u793a\u540d\u79f0"),d.a.createElement(v["a"],{placeholder:"\u7528\u4e8e\u524d\u7aef\u663e\u793a\u4f7f\u7528",defaultValue:a.name,onChange:e=>this.submitOnChange("name",e.target.value)})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u56fe\u6807URL(\u9009\u586b)"),d.a.createElement(v["a"],{placeholder:"\u7528\u4e8e\u524d\u7aef\u663e\u793a\u4f7f\u7528(https://x.com/icon.svg)",defaultValue:a.icon,onChange:e=>this.submitOnChange("icon",e.target.value)})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u81ea\u5b9a\u4e49\u901a\u77e5\u57df\u540d(\u9009\u586b)"),d.a.createElement(v["a"],{placeholder:"\u7f51\u5173\u7684\u901a\u77e5\u5c06\u4f1a\u53d1\u9001\u5230\u8be5\u57df\u540d(https://x.com)",defaultValue:a.notify_domain,onChange:e=>this.submitOnChange("notify_domain",e.target.value)})),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"col-6"},d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u767e\u5206\u6bd4\u624b\u7eed\u8d39(\u9009\u586b)"),d.a.createElement(v["a"],{suffix:"%",type:"number",placeholder:"\u5728\u8ba2\u5355\u91d1\u989d\u57fa\u7840\u4e0a\u9644\u52a0\u624b\u7eed\u8d39",defaultValue:a.handling_fee_percent,onChange:e=>this.submitOnChange("handling_fee_percent",e.target.value)}))),d.a.createElement("div",{className:"col-6"},d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u56fa\u5b9a\u624b\u7eed\u8d39(\u9009\u586b)"),d.a.createElement(v["a"],{type:"number",placeholder:"\u5728\u8ba2\u5355\u91d1\u989d\u57fa\u7840\u4e0a\u9644\u52a0\u624b\u7eed\u8d39",defaultValue:a.handling_fee_fixed/100,onChange:e=>this.submitOnChange("handling_fee_fixed",100*e.target.value)})))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{for:"example-text-input-alt"},"\u63a5\u53e3\u6587\u4ef6"),d.a.createElement("div",null,d.a.createElement(g["a"],{style:{width:"100%"},defaultValue:r,onChange:e=>this.onSelectPaymentMethod(e)},n.map(e=>{return d.a.createElement(g["a"].Option,{value:e},e)})))),Object.keys(i).map(e=>{return d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{for:"example-text-input-alt"},i[e].label),"input"===i[e].type&&d.a.createElement(v["a"],{placeholder:i[e].description,defaultValue:o[e]||i[e].value,onChange:t=>this.configOnChange(e,t.target.value)}))}),"MGate"===r&&d.a.createElement("div",{className:"alert alert-warning mb-0",role:"alert"},d.a.createElement("p",{className:"mb-0"},"MGate TG@nulledsan")))))}}var x=Object(m["c"])(e=>{var t=e.payment;return{payment:t}})(w),_=n("v32e"),E=n("qqou");class S extends d.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{show:0}}}componentDidMount(){this.props.dispatch({type:"payment/fetch"})}save(e,t){this.props.dispatch({type:"payment/save",params:{id:e,enable:t}})}show(e){this.props.dispatch({type:"payment/show",id:e})}render(){var e=this,t=this.props.payment,n=t.payments,r=t.fetchLoading,f=[{title:"ID",dataIndex:"id",key:"id",render:e=>{return d.a.createElement(d.a.Fragment,null,d.a.createElement(h["a"],{type:"menu",style:{cursor:"move"}})," ",e)}},{title:"\u542f\u7528",dataIndex:"enable",key:"enable",render:(e,t)=>d.a.createElement(u["a"],{checked:parseInt(e),size:"small",onChange:e=>this.show(t.id)})},{title:"\u663e\u793a\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u652f\u4ed8\u63a5\u53e3",dataIndex:"payment",key:"payment"},{title:d.a.createElement("span",null,"\u901a\u77e5\u5730\u5740 ",d.a.createElement(c["a"],{placement:"top",title:"\u652f\u4ed8\u7f51\u5173\u5c06\u4f1a\u628a\u6570\u636e\u901a\u77e5\u5230\u672c\u5730\u5740\uff0c\u8bf7\u901a\u8fc7\u9632\u706b\u5899\u653e\u884c\u672c\u5730\u5740\u3002"},d.a.createElement(h["a"],{type:"question-circle"}))),dataIndex:"notify_url",key:"notify_url"},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t)=>d.a.createElement(d.a.Fragment,null,d.a.createElement(x,{key:t.id,record:t},d.a.createElement("a",{href:"javascript:void(0);"},"\u7f16\u8f91")),d.a.createElement(l["a"],{type:"vertical"}),d.a.createElement("a",{href:"javascript:void(0)",onClick:()=>{s["a"].confirm({title:"\u8b66\u544a",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u9879\u76ee\u5417\uff1f",onOk:()=>this.props.dispatch({type:"payment/drop",id:t.id}),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})}},"\u5220\u9664"))}];return d.a.createElement(p["a"],i()({},this.props,{title:"\u652f\u4ed8\u914d\u7f6e"}),d.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),d.a.createElement(_["a"],{loading:r},d.a.createElement("div",{className:"block block-rounded"},d.a.createElement("div",{className:"bg-white"},d.a.createElement("div",{style:{padding:15}},d.a.createElement(x,{key:0},d.a.createElement(a["a"],null,d.a.createElement(h["a"],{type:"plus"})," \u6dfb\u52a0\u652f\u4ed8\u65b9\u5f0f"))),d.a.createElement(E["a"],{onDragEnd:(t,n)=>{e.props.dispatch({type:"payment/sort",fromIndex:t,toIndex:n})},nodeSelector:"tr",handleSelector:"i"},d.a.createElement(o["a"],{tableLayout:"auto",dataSource:n,columns:f,pagination:!1,scroll:{x:1300}}))))))}}t["default"]=Object(m["c"])(e=>{var t=e.payment;return{payment:t}})(S)},eOCx:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=n("wd/R"),c=n.n(l),u={coupons:[],fetchLoading:!1,saveLoading:!1,pagination:{pageSize:10,current:1},sort:{}};t["default"]={name:"coupon",state:a()({},u),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r,o,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,r=t.select,e.next=3,r(e=>e.coupon);case 3:return o=e.sent,e.next=6,n({type:"setState",payload:{fetchLoading:!0}});case 6:return e.next=8,Object(s["a"])("/admin/coupon/fetch",a()({},o.pagination,o.sort));case 8:return l=e.sent,e.next=11,n({type:"setState",payload:{fetchLoading:!1}});case 11:if(200===l.code){e.next=13;break}return e.abrupt("return");case 13:return l.data.forEach(e=>{1===e.type&&(e.value=e.value/100)}),e.next=16,n({type:"setState",payload:{coupons:l.data,pagination:a()({},o.pagination,{total:l.total})}});case 16:case"end":return e.stop()}},e)})()},generate(e,t){return i.a.mark(function n(){var r,o,a,l,u,h,f;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return 1===r.type&&(r.value=100*r.value),n.next=7,Object(s["b"])("/admin/coupon/generate",r);case 7:return l=n.sent,n.next=10,a({type:"setState",payload:{saveLoading:!1}});case 10:if(200===l.code){n.next=12;break}return n.abrupt("return");case 12:return r.generate_count&&(u=new Blob([l.buffer],{type:"text/plain,charset=UTF-8"}),h=window.URL.createObjectURL(u),f=document.createElement("a"),f.href=h,f.style.display="none",f.download="COUPON ".concat(c()().format("YYYY-MM-DD HH:mm:ss"),".csv"),f.click(),window.URL.revokeObjectURL(h)),n.next=15,a({type:"fetch"});case 15:"function"===typeof o&&o();case 16:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/coupon/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/coupon/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},changeTable(e,t){return i.a.mark(function n(){var r,o,s,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,o=e.sort,s=t.select,l=t.put,n.next=4,s(e=>e.coupon);case 4:return c=n.sent,n.next=7,l({type:"setState",payload:{pagination:a()({},c.pagination,r),sort:o}});case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},einR:function(e,t,n){"use strict";(function(e){n.d(t,"p",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"q",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"i",function(){return m}),n.d(t,"h",function(){return g}),n.d(t,"l",function(){return v}),n.d(t,"n",function(){return b}),n.d(t,"m",function(){return w}),n.d(t,"o",function(){return x}),n.d(t,"k",function(){return _}),n.d(t,"d",function(){return E}),n.d(t,"f",function(){return S}),n.d(t,"g",function(){return C}),n.d(t,"c",function(){return k});var r=n("bYtY"),i=n("Qe9p"),o=n("ItGF"),a=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(i["d"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function c(e){return e-l}function u(e){return a(1e3*e)/1e3}function h(e){return a(1e4*e)/1e4}function f(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+h(e[4])+","+h(e[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function m(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(e){return e&&!!e.image}function y(e){return e&&!!e.svgElement}function b(e){return v(e)||y(e)}function w(e){return"linear"===e.type}function x(e){return"radial"===e.type}function _(e){return e&&("linear"===e.type||"radial"===e.type)}function E(e){return"url(#"+e+")"}function S(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function C(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*r["a"],o=Object(r["K"])(e.scaleX,1),s=Object(r["K"])(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||n)&&u.push("translate("+t+"px,"+n+"px)"),i&&u.push("rotate("+i+")"),1===o&&1===s||u.push("scale("+o+","+s+")"),(l||c)&&u.push("skew("+a(l*r["a"])+"deg, "+a(c*r["a"])+"deg)"),u.join(" ")}var k=function(){return o["a"].hasGlobalWindow&&Object(r["u"])(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,n("tjlA").Buffer)},er1Y:function(e,t,n){var r=n("WGNW"),i=n("Zgoe"),o=n("OeOC"),a=n("15BC"),s=n("aSE1");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),l=a.f,c=i(r),u={},h=0;while(c.length>h)n=l(r,t=c[h++]),void 0!==n&&s(u,t,n);return u}})},fDcq:function(e,t,n){"use strict";var r=n("iCc5"),i=n.n(r),o=n("FYw3"),a=n.n(o),s=n("mRg0"),l=n.n(s),c=n("q1tI"),u=n.n(c),h={DATE_ROW_COUNT:6,DATE_COL_COUNT:7},f=n("wd/R"),d=n.n(f),p=function(e){function t(){return i()(this,t),a()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.render=function(){for(var e=this.props,t=e.value,n=t.localeData(),r=e.prefixCls,i=[],o=[],a=n.firstDayOfWeek(),s=void 0,l=d()(),c=0;ct.year()?1:e.year()===t.year()&&e.month()>t.month()}function S(e){return"rc-calendar-"+e.year()+"-"+e.month()+"-"+e.date()}var C=function(e){function t(){return i()(this,t),a()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.render=function(){var e=this.props,t=e.contentRender,n=e.prefixCls,r=e.selectedValue,i=e.value,o=e.showWeekNumber,a=e.dateRender,s=e.disabledDate,l=e.hoverValue,c=void 0,f=void 0,d=void 0,p=[],m=Object(w["e"])(i),g=n+"-cell",v=n+"-week-number-cell",y=n+"-date",C=n+"-today",k=n+"-selected-day",O=n+"-selected-date",T=n+"-selected-start-date",A=n+"-selected-end-date",P=n+"-in-range-cell",M=n+"-last-month-cell",R=n+"-next-month-btn-day",j=n+"-disabled-cell",L=n+"-disabled-cell-first-of-row",D=n+"-disabled-cell-last-of-row",N=n+"-last-day-of-month",I=i.clone();I.date(1);var $=I.day(),F=($+7-i.localeData().firstDayOfWeek())%7,B=I.clone();B.add(0-F,"days");var V=0;for(c=0;c0&&(Y=p[V-1]);var X=g,Q=!1,Z=!1;x(d,m)&&(X+=" "+C,U=!0);var J=_(d,i),ee=E(d,i);if(r&&Array.isArray(r)){var te=l.length?l:r;if(!J&&!ee){var ne=te[0],re=te[1];ne&&x(d,ne)&&(Z=!0,q=!0,X+=" "+T),(ne||re)&&(x(d,re)?(Z=!0,q=!0,X+=" "+A):(null!==ne&&void 0!==ne||!d.isBefore(re,"day"))&&(null!==re&&void 0!==re||!d.isAfter(ne,"day"))?d.isAfter(ne,"day")&&d.isBefore(re,"day")&&(X+=" "+P):X+=" "+P)}}else x(d,i)&&(Z=!0,q=!0);x(d,r)&&(X+=" "+O),J&&(X+=" "+M),ee&&(X+=" "+R),d.clone().endOf("month").date()===d.date()&&(X+=" "+N),s&&s(d,i)&&(Q=!0,Y&&s(Y,i)||(X+=" "+L),G&&s(G,i)||(X+=" "+D)),Z&&(X+=" "+k),Q&&(X+=" "+j);var ie=void 0;if(a)ie=a(d,i);else{var oe=t?t(d,i):d.date();ie=u.a.createElement("div",{key:S(d),className:y,"aria-selected":Z,"aria-disabled":Q},oe)}K.push(u.a.createElement("td",{key:V,onClick:Q?void 0:e.onSelect.bind(null,d),onMouseEnter:Q?void 0:e.onDayHover&&e.onDayHover.bind(null,d)||void 0,role:"gridcell",title:Object(w["d"])(d),className:X},ie)),V++}W.push(u.a.createElement("tr",{key:c,role:"row",className:b()((H={},H[n+"-current-week"]=U,H[n+"-active-week"]=q,H))},z,K))}return u.a.createElement("tbody",{className:n+"-tbody"},W)},t}(u.a.Component);C.propTypes={contentRender:v.a.func,dateRender:v.a.func,disabledDate:v.a.func,prefixCls:v.a.string,selectedValue:v.a.oneOfType([v.a.object,v.a.arrayOf(v.a.object)]),value:v.a.object,hoverValue:v.a.any,showWeekNumber:v.a.bool},C.defaultProps={hoverValue:[]};var k=C,O=function(e){function t(){return i()(this,t),a()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls;return u.a.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},u.a.createElement(m,e),u.a.createElement(k,e))},t}(u.a.Component);t["a"]=O},fHKQ:function(e,t,n){var r=n("8Z/V"),i=n("Igga"),o=n("OeOC"),a=n("LsAW").f;e.exports=function(e){return function(t){var n,s=o(t),l=i(s),c=l.length,u=0,h=[];while(c>u)n=l[u++],r&&!a.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}}},fKCf:function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},"fKm+":function(e,t,n){"use strict";var r=n("2Os2"),i=n("Jc7p"),o="WeakSet";n("nWMQ")(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},fNJh:function(e,t,n){"use strict";var r=n("JbWX"),i=n("aGJD"),o=n("XUei"),a=n("Zy53");function s(e,t,n){var r="string"===typeof e?s.__parse(e):e;if(!r||"messageFormatPattern"!==r.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var o=this._findPluralRuleFunction(this._locale),a=this._compilePattern(r,t,n,o),l=this;this.format=function(t){try{return l._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t["default"]=s,i.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),i.defineProperty(s,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),i.defineProperty(s,"__parse",{value:a["default"].parse}),i.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,n,r){var i=new o["default"](t,n,r);return i.compile(e)},s.prototype._findPluralRuleFunction=function(e){var t=s.__localeData__,n=t[e.toLowerCase()];while(n){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var n,i,o,a,s,l,c="";for(n=0,i=e.length;n>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=s&&i<0||n.scrollTop<=0&&i>0))||a&&(!d||d&&(n.scrollLeft>=l&&l<0||n.scrollLeft<=0&&l>0)))&&e(t,n.parentNode,r,i)};function w(e){return w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(null==e)return{};var n,r,i=E(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function E(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n1||(n.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},n.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var t=e.currentTarget,r=e.changedTouches[0].clientX-n.startPos.x,i=e.changedTouches[0].clientY-n.startPos.y;(t===n.maskDom||t===n.handlerDom||t===n.contentDom&&b(t,e.target,r,i))&&e.preventDefault()}},n.transitionEnd=function(e){var t=e.target;m(t,d,n.transitionEnd),t.style.transition=""},n.onKeyDown=function(e){if(e.keyCode===c["a"].ESC){var t=n.props.onClose;e.stopPropagation(),t&&t(e)}},n.onWrapperTransitionEnd=function(e){var t=n.props,r=t.open,i=t.afterVisibleChange;e.target===n.contentWrapper&&e.propertyName.match(/transform$/)&&(n.dom.style.transition="",!r&&n.getCurrentDrawerSome()&&(document.body.style.overflowX="",n.maskDom&&(n.maskDom.style.left="",n.maskDom.style.width="")),i&&i(!!r))},n.openLevelTransition=function(){var e=n.props,t=e.open,r=e.width,i=e.height,o=n.getHorizontalBoolAndPlacementName(),a=o.isHorizontal,s=o.placementName,l=n.contentDom?n.contentDom.getBoundingClientRect()[a?"width":"height"]:0,c=(a?r:i)||l;n.setLevelAndScrolling(t,s,c)},n.setLevelTransform=function(e,t,r,i){var o=n.props,a=o.placement,s=o.levelMove,l=o.duration,c=o.ease,u=o.showMask;n.levelDom.forEach(function(o){o.style.transition="transform ".concat(l," ").concat(c),p(o,d,n.transitionEnd);var h=e?r:0;if(s){var f=g(s,{target:o,open:e});h=e?f[0]:f[1]||0}var m="number"===typeof h?"".concat(h,"px"):h,v="left"===a||"top"===a?m:"-".concat(m);v=u&&"right"===a&&i?"calc(".concat(v," + ").concat(i,"px)"):v,o.style.transform=h?"".concat(t,"(").concat(v,")"):""})},n.setLevelAndScrolling=function(e,t,r){var i=n.props.onChange;if(!y){var o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(l["a"])(!0):0;n.setLevelTransform(e,t,r,o),n.toggleScrollingToDrawerAndBody(o)}i&&i(e)},n.toggleScrollingToDrawerAndBody=function(e){var t=n.props,r=t.getOpenCount,i=t.getContainer,o=t.showMask,a=t.open,s=i&&i(),l=r&&r();if(s&&s.parentNode===document.body&&o){var c=["touchstart"],u=[document.body,n.maskDom,n.handlerDom,n.contentDom];a&&"hidden"!==document.body.style.overflow?(e&&n.addScrollingEffect(e),1===l&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",u.forEach(function(e,t){e&&p(e,c[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)})):n.getCurrentDrawerSome()&&(l||(document.body.style.overflow=""),document.body.style.touchAction="",e&&n.remScrollingEffect(e),u.forEach(function(e,t){e&&m(e,c[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)}))}},n.addScrollingEffect=function(e){var t=n.props,r=t.placement,i=t.duration,o=t.ease,a=t.getOpenCount,s=t.switchScrollingEffect,l=a&&a();1===l&&s();var c="width ".concat(i," ").concat(o),u="transform ".concat(i," ").concat(o);switch(n.dom.style.transition="none",r){case"right":n.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":n.dom.style.width="calc(100% - ".concat(e,"px)"),n.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(n.timeout),n.timeout=setTimeout(function(){n.dom&&(n.dom.style.transition="".concat(u,",").concat(c),n.dom.style.width="",n.dom.style.transform="")})},n.remScrollingEffect=function(e){var t,r=n.props,i=r.placement,o=r.duration,a=r.ease,s=r.getOpenCount,l=r.switchScrollingEffect,c=s&&s();c||l(!0),f&&(document.body.style.overflowX="hidden"),n.dom.style.transition="none";var u="width ".concat(o," ").concat(a),h="transform ".concat(o," ").concat(a);switch(i){case"left":n.dom.style.width="100%",u="width 0s ".concat(a," ").concat(o);break;case"right":n.dom.style.transform="translateX(".concat(e,"px)"),n.dom.style.width="100%",u="width 0s ".concat(a," ").concat(o),n.maskDom&&(n.maskDom.style.left="-".concat(e,"px"),n.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":n.dom.style.width="calc(100% + ".concat(e,"px)"),n.dom.style.height="100%",n.dom.style.transform="translateZ(0)",t="height 0s ".concat(a," ").concat(o);break;default:break}clearTimeout(n.timeout),n.timeout=setTimeout(function(){n.dom&&(n.dom.style.transition="".concat(h,",").concat(t?"".concat(t,","):"").concat(u),n.dom.style.transform="",n.dom.style.width="",n.dom.style.height="")})},n.getCurrentDrawerSome=function(){return!Object.keys(R).some(function(e){return R[e]})},n.getLevelDom=function(e){var t=e.level,r=e.getContainer;if(!y){var i=r&&r(),o=i?i.parentNode:null;if(n.levelDom=[],"all"===t){var a=o?Array.prototype.slice.call(o.children):[];a.forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==i&&n.levelDom.push(e)})}else t&&u(t).forEach(function(e){document.querySelectorAll(e).forEach(function(e){n.levelDom.push(e)})})}},n.getHorizontalBoolAndPlacementName=function(){var e=n.props.placement,t="left"===e||"right"===e,r="translate".concat(t?"X":"Y");return{isHorizontal:t,placementName:r}},n.state={_self:A(n)},n}return P(t,e),k(t,[{key:"componentDidMount",value:function(){var e=this;if(!y){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(e){}this.passive=!!t&&{passive:!1}}var n=this.props.open;this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),n&&(R[this.drawerId]=n,this.openLevelTransition(),this.forceUpdate(function(){e.domFocus()}))}},{key:"componentDidUpdate",value:function(e){var t=this.props.open;t!==e.open&&(t&&this.domFocus(),R[this.drawerId]=!!t,this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.getOpenCount,n=e.open,r=e.switchScrollingEffect,i="function"===typeof t&&t();delete R[this.drawerId],n&&(this.setLevelTransform(!1),document.body.style.touchAction=""),i||(document.body.style.overflow="",r(!0))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.className,o=n.children,a=n.style,l=n.width,c=n.height,u=(n.defaultOpen,n.open),h=n.prefixCls,f=n.placement,d=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),p=(n.onChange,n.afterVisibleChange,n.showMask),m=n.maskClosable,g=n.maskStyle,y=n.onClose,b=n.onHandleClick,w=n.keyboard,E=(n.getOpenCount,n.switchScrollingEffect,_(n,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"])),S=!!this.dom&&u,C=s()(h,(e={},x(e,"".concat(h,"-").concat(f),!0),x(e,"".concat(h,"-open"),S),x(e,r||"",!!r),x(e,"no-mask",!p),e)),k=this.getHorizontalBoolAndPlacementName(),O=k.placementName,T="left"===f||"top"===f?"-100%":"100%",A=S?"":"".concat(O,"(").concat(T,")"),P=d&&i["cloneElement"](d,{onClick:function(e){d.props.onClick&&d.props.onClick(),b&&b(e)},ref:function(e){t.handlerDom=e}});return i["createElement"]("div",Object.assign({},E,{tabIndex:-1,className:C,style:a,ref:function(e){t.dom=e},onKeyDown:S&&w?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),p&&i["createElement"]("div",{className:"".concat(h,"-mask"),onClick:m?y:void 0,style:g,ref:function(e){t.maskDom=e}}),i["createElement"]("div",{className:"".concat(h,"-content-wrapper"),style:{transform:A,msTransform:A,width:v(l)?"".concat(l,"px"):l,height:v(c)?"".concat(c,"px"):c},ref:function(e){t.contentWrapper=e}},i["createElement"]("div",{className:"".concat(h,"-content"),ref:function(e){t.contentDom=e},onTouchStart:S&&p?this.removeStartHandler:void 0,onTouchMove:S&&p?this.removeMoveHandler:void 0},o),P))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,i={prevProps:e};if(void 0!==n){var o=e.placement,a=e.level;o!==n.placement&&(r.contentDom=null),a!==n.level&&r.getLevelDom(e)}return i}}]),t}(i["Component"]);j.defaultProps={switchScrollingEffect:function(){}};var L=Object(o["polyfill"])(j);function D(e){return D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function N(e,t){if(null==e)return{};var n,r,i=I(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function $(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;nl)r.f(e,n=a[l++],t[n]);return e}},g0MP:function(e,t,n){"use strict";var r=n("GB+t"),i=n.n(r),o=n("QLaP"),a=n.n(o),s=n("/Qhy"),l=n("brdU"),c=function(e){return"/"===e.charAt(0)?e:"/"+e},u=function(e){return"/"===e.charAt(0)?e.substr(1):e},h=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},f=function(e,t){return h(e,t)?e.substr(t.length):e},d=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},p=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},m=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},g=n("ck9s"),v=n.n(g),y=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(E,"Browser history needs a DOM");var t=window.history,n=C(),r=!k(),o=e.forceRefresh,s=void 0!==o&&o,l=e.getUserConfirmation,u=void 0===l?S:l,p=e.keyLength,g=void 0===p?6:p,v=e.basename?d(c(e.basename)):"",y=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname,s=o.search,l=o.hash,c=a+s+l;return i()(!v||h(c,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+v+'".'),v&&(c=f(c,v)),b(c,r,n)},w=function(){return Math.random().toString(36).substr(2,g)},x=_(),O=function(e){P(Z,e),Z.length=t.length,x.notifyListeners(Z.location,Z.action)},L=function(e){T(e)||I(y(e.state))},D=function(){I(y(j()))},N=!1,I=function(e){if(N)N=!1,O();else{var t="POP";x.confirmTransitionTo(e,t,u,function(n){n?O({action:t,location:e}):$(e)})}},$=function(e){var t=Z.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(N=!0,U(i))},F=y(j()),B=[F.key],V=function(e){return v+m(e)},W=function(e,r){i()(!("object"===("undefined"===typeof e?"undefined":A(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",a=b(e,r,w(),Z.location);x.confirmTransitionTo(a,o,u,function(e){if(e){var r=V(a),l=a.key,c=a.state;if(n)if(t.pushState({key:l,state:c},null,r),s)window.location.href=r;else{var u=B.indexOf(Z.location.key),h=B.slice(0,-1===u?0:u+1);h.push(a.key),B=h,O({action:o,location:a})}else i()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},H=function(e,r){i()(!("object"===("undefined"===typeof e?"undefined":A(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",a=b(e,r,w(),Z.location);x.confirmTransitionTo(a,o,u,function(e){if(e){var r=V(a),l=a.key,c=a.state;if(n)if(t.replaceState({key:l,state:c},null,r),s)window.location.replace(r);else{var u=B.indexOf(Z.location.key);-1!==u&&(B[u]=a.key),O({action:o,location:a})}else i()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},U=function(e){t.go(e)},z=function(){return U(-1)},q=function(){return U(1)},K=0,G=function(e){K+=e,1===K?(window.addEventListener(M,L),r&&window.addEventListener(R,D)):0===K&&(window.removeEventListener(M,L),r&&window.removeEventListener(R,D))},Y=!1,X=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return Y||(G(1),Y=!0),function(){return Y&&(Y=!1,G(-1)),t()}},Q=function(e){var t=x.appendListener(e);return G(1),function(){G(-1),t()}},Z={length:t.length,action:"POP",location:F,createHref:V,push:W,replace:H,go:U,goBack:z,goForward:q,block:X,listen:Q};return Z},D=L,N=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(E,"Hash history needs a DOM");var t=window.history,n=O(),r=e.getUserConfirmation,o=void 0===r?S:r,s=e.hashType,l=void 0===s?"slash":s,u=e.basename?d(c(e.basename)):"",p=$[l],g=p.encodePath,v=p.decodePath,y=function(){var e=v(F());return i()(!u||h(e,u),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+u+'".'),u&&(e=f(e,u)),b(e)},x=_(),C=function(e){N(J,e),J.length=t.length,x.notifyListeners(J.location,J.action)},k=!1,T=null,A=function(){var e=F(),t=g(e);if(e!==t)V(t);else{var n=y(),r=J.location;if(!k&&w(r,n))return;if(T===m(n))return;T=null,P(n)}},P=function(e){if(k)k=!1,C();else{var t="POP";x.confirmTransitionTo(e,t,o,function(n){n?C({action:t,location:e}):M(e)})}},M=function(e){var t=J.location,n=D.lastIndexOf(m(t));-1===n&&(n=0);var r=D.lastIndexOf(m(e));-1===r&&(r=0);var i=n-r;i&&(k=!0,z(i))},R=F(),j=g(R);R!==j&&V(j);var L=y(),D=[m(L)],W=function(e){return"#"+g(u+m(e))},H=function(e,t){i()(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=b(e,void 0,void 0,J.location);x.confirmTransitionTo(r,n,o,function(e){if(e){var t=m(r),o=g(u+t),a=F()!==o;if(a){T=t,B(o);var s=D.lastIndexOf(m(J.location)),l=D.slice(0,-1===s?0:s+1);l.push(t),D=l,C({action:n,location:r})}else i()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),C()}})},U=function(e,t){i()(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=b(e,void 0,void 0,J.location);x.confirmTransitionTo(r,n,o,function(e){if(e){var t=m(r),i=g(u+t),o=F()!==i;o&&(T=t,V(i));var a=D.indexOf(m(J.location));-1!==a&&(D[a]=t),C({action:n,location:r})}})},z=function(e){i()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},q=function(){return z(-1)},K=function(){return z(1)},G=0,Y=function(e){G+=e,1===G?window.addEventListener(I,A):0===G&&window.removeEventListener(I,A)},X=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return X||(Y(1),X=!0),function(){return X&&(X=!1,Y(-1)),t()}},Z=function(e){var t=x.appendListener(e);return Y(1),function(){Y(-1),t()}},J={length:t.length,action:"POP",location:L,createHref:W,push:H,replace:U,go:z,goBack:q,goForward:K,block:Q,listen:Z};return J},H=W,U="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,o=e.initialIndex,a=void 0===o?0:o,s=e.keyLength,l=void 0===s?6:s,c=_(),u=function(e){z(k,e),k.length=k.entries.length,c.notifyListeners(k.location,k.action)},h=function(){return Math.random().toString(36).substr(2,l)},f=q(a,0,r.length-1),d=r.map(function(e){return b(e,void 0,"string"===typeof e?h():e.key||h())}),p=m,g=function(e,n){i()(!("object"===("undefined"===typeof e?"undefined":U(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r="PUSH",o=b(e,n,h(),k.location);c.confirmTransitionTo(o,r,t,function(e){if(e){var t=k.index,n=t+1,i=k.entries.slice(0);i.length>n?i.splice(n,i.length-n,o):i.push(o),u({action:r,location:o,index:n,entries:i})}})},v=function(e,n){i()(!("object"===("undefined"===typeof e?"undefined":U(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r="REPLACE",o=b(e,n,h(),k.location);c.confirmTransitionTo(o,r,t,function(e){e&&(k.entries[k.index]=o,u({action:r,location:o}))})},y=function(e){var n=q(k.index+e,0,k.entries.length-1),r="POP",i=k.entries[n];c.confirmTransitionTo(i,r,t,function(e){e?u({action:r,location:i,index:n}):u()})},w=function(){return y(-1)},x=function(){return y(1)},E=function(e){var t=k.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return c.setPrompt(e)},C=function(e){return c.appendListener(e)},k={length:d.length,action:"POP",location:d[f],index:f,entries:d,createHref:p,push:g,replace:v,go:y,goBack:w,goForward:x,canGo:E,block:S,listen:C};return k},G=K;n.d(t,"a",function(){return D}),n.d(t,"b",function(){return H}),n.d(t,"d",function(){return G}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return w}),n.d(t,"e",function(){return m})},gENZ:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={};t["default"]={name:"system",state:a()({},l),reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{getQueueStats(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"save",payload:{getQueueStatsLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/system/getQueueStats");case 5:return r=e.sent,e.next=8,n({type:"save",payload:{getQueueStatsLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"save",payload:{queueStats:r.data}});case 12:case"end":return e.stop()}},e)})()},getQueueWorkload(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"save",payload:{getQueueWorkloadLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/system/getQueueWorkload");case 5:return r=e.sent,e.next=8,n({type:"save",payload:{getQueueWorkloadLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"save",payload:{queueWorkload:r.data}});case 12:case"end":return e.stop()}},e)})()}}}},gL7N:function(e,t,n){var r=n("VyuQ")("wks"),i=n("kCK5"),o=n("c0Oy").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},gRqi:function(e,t,n){"use strict";var r=n("c0Oy"),i=n("V5/1"),o=n("8Z/V"),a=n("gL7N")("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},h7Gi:function(e,t,n){"use strict";n("q97H");var r=n("rKIl"),i=n("VPOE"),o=n("wUWy"),a=n("ZDr/"),s=n("gL7N"),l=n("330p"),c=s("species"),u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),d=!o(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),p=d?!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!t}):void 0;if(!d||!p||"replace"===e&&!u||"split"===e&&!h){var m=/./[f],g=n(a,f,""[e],function(e,t,n,r,i){return t.exec===l?d&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},h7HQ:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("T6xi"),a=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!0)},t}(i["b"]);s.prototype.type="polygon",t["a"]=s},hDam:function(e,t){e.exports=function(){}},hIUm:function(e,t,n){"use strict";var r=n("oF12"),i=n("7vYJ"),o=n("VeyY"),a=n("ETUh"),s=n("OsVd"),l=n("bsDr"),c=n("330p"),u=n("wUWy"),h=Math.min,f=[].push,d="split",p="length",m="lastIndex",g=4294967295,v=!u(function(){RegExp(g,"y")});n("h7Gi")("split",2,function(e,t,n,u){var y;return y="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);var o,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,u+"g");while(o=c.call(v,i)){if(a=v[m],a>h&&(l.push(i.slice(h,o.index)),o[p]>1&&o.index=d))break;v[m]===o.index&&v[m]++}return h===i[p]?!s&&v.test("")||l.push(""):l.push(i.slice(h)),l[p]>d?l.slice(0,d):l}:"0"[d](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=u(y,e,this,t,y!==n);if(r.done)return r.value;var c=i(e),f=String(this),d=o(c,RegExp),p=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),b=new d(v?c:"^(?:"+c.source+")",m),w=void 0===t?g:t>>>0;if(0===w)return[];if(0===f.length)return null===l(b,f)?[f]:[];var x=0,_=0,E=[];while(_{this.setState({select:d()({},this.defaultValue),selectIndex:0})})):h["a"].error("\u503c\u4e0d\u80fd\u4e3a\u7a7a")}onChange(e,t,n,r){var i=this.state.filter;i[n][e]=t,"key"===e&&(i[n]["condition"]=this.props.keys[r].condition[0]),this.setState({filter:i}),"undefined"!==typeof r&&this.setState({keyIndex:r})}onOk(){var e=!0;this.state.filter.forEach(t=>{""===t.value&&(u["a"].error({message:"\u8fc7\u6ee4\u5668",description:"\u6b32\u68c0\u7d22\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a",duration:1.5}),e=!1)}),e&&(this.props.onOk(this.state.filter),this.setState({visible:!1}))}hide(){var e=this.state.select;e["value"]="",this.setState({visible:!1,select:e})}onDelete(e){var t=this.state.filter;t.splice(e,1),this.setState({filter:t})}reset(){this.setState({filter:[]},()=>{this.onOk()})}render(){return m.a.createElement(m.a.Fragment,null,m.a.cloneElement(this.props.children,{onClick:()=>this.show()}),m.a.createElement(r["a"],{onOk:()=>this.onOk(),title:"\u8fc7\u6ee4\u5668",visible:this.state.visible,onClose:()=>this.hide(),className:"v2board-filter-drawer",footer:m.a.createElement(m.a.Fragment,null)},this.state.filter.length>0&&this.state.filter.map((e,t)=>{var n=this.props.keys.find(e=>e.key===this.state.filter[t].key);return m.a.createElement(m.a.Fragment,null,m.a.createElement(l["a"],{type:"horizontal"},"\u6761\u4ef6".concat(t+1)," ",m.a.createElement(c["a"],{type:"delete",style:{color:"#ff4d4f"},onClick:()=>this.onDelete(t)})),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",null,"\u5b57\u6bb5\u540d"),m.a.createElement("div",null,m.a.createElement(s["a"],{value:this.state.filter[t].key,style:{width:"100%"}},this.props.keys.map((e,n)=>{return m.a.createElement(s["a"].Option,{key:n,value:e.key,onClick:()=>this.onChange("key",this.props.keys[n].key,t,n)},e.title)})))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",null,"\u6761\u4ef6"),m.a.createElement("div",null,m.a.createElement(s["a"],{value:this.state.filter[t].condition,style:{width:"100%"},onChange:e=>this.onChange("condition",e,t)},this.props.keys[this.state.keyIndex].condition.map(e=>{return m.a.createElement(s["a"].Option,{key:e,value:e},e)})))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",null,"\u6b32\u68c0\u7d22\u5185\u5bb9"),m.a.createElement("div",null,"select"===n.type&&m.a.createElement(s["a"],{defaultValue:this.state.filter[t].value||void 0,style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u503c",onChange:e=>this.onChange("value",e,t)},n.options.map((e,t)=>{return m.a.createElement(s["a"].Option,{value:e.value},e.key)})),"date"===n.type&&m.a.createElement(a["a"],{style:{width:"100%"},onChange:e=>this.onChange("value",e&&e.format("X"),t),showTime:{defaultValue:v()("00:00:00","HH:mm:ss")}}),void 0===n.type&&m.a.createElement(o["a"],{style:{width:"100%"},defaultValue:this.state.filter[t].value||void 0,placeholder:"\u503c",onChange:e=>this.onChange("value",e.target.value,t)}))))}),m.a.createElement(i["a"],{style:{width:"100%"},type:"primary",onClick:()=>this.add()},m.a.createElement(c["a"],{type:"plus"})," \u6dfb\u52a0\u6761\u4ef6"),m.a.createElement("div",{className:"v2board-drawer-action"},m.a.createElement(i["a"],{disabled:!this.state.filter.length,type:"danger",onClick:()=>this.reset(),style:{float:"left"}},"\u91cd\u7f6e"),m.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.hide()},"\u53d6\u6d88"),m.a.createElement(i["a"],{disabled:!this.state.filter.length,onClick:()=>this.onOk(),type:"primary"},"\u68c0\u7d22"))))}}},hYLj:function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p});var r=n("Fofx"),i=n("QBsz"),o=r["c"],a=5e-5;function s(e){return e>a||e<-a}var l=[],c=[],u=r["b"](),h=Math.abs,f=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||r["b"](),t?this.getLocalTransform(n):o(n),e&&(t?r["e"](n,e,n):r["a"](n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var n=l[0]<0?-1:1,i=l[1]<0?-1:1,o=((l[0]-n)*t+n)/l[0]||0,a=((l[1]-i)*t+i)/l[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||r["b"](),r["d"](this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r["e"](c,e.invTransform,t),t=c);var n=this.originX,i=this.originY;(n||i)&&(u[4]=n,u[5]=i,r["e"](c,t,u),c[4]-=n,c[5]-=i,t=c),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i["b"](n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i["b"](n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){p(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,c=e.rotation||0,u=e.x,h=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,m=i+l;t[4]=-p*o-f*m*a,t[5]=-m*a-d*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=a,t[1]=d*o,t[2]=f*a,c&&r["f"](t,t,c),t[4]+=n+u,t[5]+=i+h,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(e,t){for(var n=0;ne.user);case 3:return i=e.sent,e.next=6,n({type:"setState",payload:{fetchLoading:!0}});case 6:return e.next=8,Object(l["a"])("/admin/user/fetch",s()({filter:i.filter},i.pagination,i.sort));case 8:return a=e.sent,e.next=11,n({type:"setState",payload:{fetchLoading:!1}});case 11:if(200===a.code){e.next=13;break}return e.abrupt("return");case 13:return a.data.forEach(e=>{e.password="",e.transfer_enable=(e.transfer_enable/1073741824).toFixed(2),e.u=(e.u/1073741824).toFixed(2),e.d=(e.d/1073741824).toFixed(2),e.total_used=(e.total_used/1073741824).toFixed(2),e.commission_balance=(e.commission_balance/100).toFixed(2),e.balance=(e.balance/100).toFixed(2)}),e.next=16,n({type:"setState",payload:{users:a.data,pagination:s()({},i.pagination,{total:a.total})}});case 16:case"end":return e.stop()}},e)})()},filter(e,t){return o.a.mark(function n(){var r,i,a,s,l;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.filter,i=t.put,a=t.select,n.next=4,a(e=>e.user);case 4:return s=n.sent,l=s.pagination,l["current"]=1,n.next=9,i({type:"setState",payload:{filter:r}});case 9:return n.next=11,i({type:"fetch"});case 11:case"end":return n.stop()}},n)})()},changeTable(e,t){return o.a.mark(function n(){var r,i,a,l,c;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,i=e.sort,a=t.select,l=t.put,n.next=4,a(e=>e.user);case 4:return c=n.sent,n.next=7,l({type:"setState",payload:{pagination:s()({},c.pagination,r),sort:i}});case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},update(e,t){return o.a.mark(function n(){var r,i,a,s;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,i=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{updateLoading:!0}});case 4:return r.transfer_enable=1073741824*r.transfer_enable,r.u=Math.round(1073741824*r.u),r.d=Math.round(1073741824*r.d),r.balance=Math.round(100*r.balance),r.commission_balance=Math.round(100*r.commission_balance),r.invite_user&&delete r.invite_user,n.next=12,Object(l["b"])("/admin/user/update",r);case 12:return s=n.sent,n.next=15,a({type:"setState",payload:{updateLoading:!1}});case 15:if(200===s.code){n.next=17;break}return n.abrupt("return");case 17:return n.next=19,a({type:"fetch"});case 19:"function"===typeof i&&i();case 20:case"end":return n.stop()}},n)})()},addFilter(e,t){return o.a.mark(function n(){var r,i,a,s,l,c,u,h,f;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.key,i=e.condition,a=e.value,s=e.clear,l=t.put,c=t.select,n.next=4,c(e=>e.user);case 4:return u=n.sent,h=u.filter,f=u.pagination,s&&(h=[]),h.push({key:r,condition:i,value:a}),f["current"]=1,n.next=12,l({type:"setState",payload:{filter:h,pagination:f}});case 12:return n.next=14,l({type:"fetch"});case 14:case"end":return n.stop()}},n)})()},generate(e,t){return o.a.mark(function n(){var r,i,a,s,c,h,f;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,i=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{generateLoading:!0}});case 4:return n.next=6,Object(l["b"])("/admin/user/generate",r);case 6:return s=n.sent,n.next=9,a({type:"setState",payload:{generateLoading:!1}});case 9:if(200===s.code){n.next=11;break}return n.abrupt("return");case 11:return r.generate_count&&(c=new Blob([s.buffer],{type:"text/plain,charset=UTF-8"}),h=window.URL.createObjectURL(c),f=document.createElement("a"),f.href=h,f.style.display="none",f.download="USER ".concat(u()().format("YYYY-MM-DD HH:mm:ss"),".csv"),f.click(),window.URL.revokeObjectURL(h)),n.next=14,a({type:"fetch"});case 14:"function"===typeof i&&i();case 15:case"end":return n.stop()}},n)})()},dumpCSV(e,t){return o.a.mark(function e(){var n,i,a,s,c,h,f;return o.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.select,e.next=3,n(e=>e.user);case 3:return i=e.sent,a=i.filter,r["a"].loading("\u5bfc\u51fa\u4e2d"),e.next=8,Object(l["b"])("/admin/user/dumpCSV",{filter:a});case 8:if(s=e.sent,r["a"].destroy(),200===s.code){e.next=12;break}return e.abrupt("return");case 12:c=new Blob([s.buffer],{type:"text/plain,charset=UTF-8"}),h=window.URL.createObjectURL(c),f=document.createElement("a"),f.href=h,f.style.display="none",f.download=u()().format("YYYY-MM-DD HH:mm:ss")+".csv",f.click(),window.URL.revokeObjectURL(h);case 20:case"end":return e.stop()}},e)})()},sendMail(e,t){return o.a.mark(function n(){var i,a,c,u,h,f,d;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return i=e.params,a=e.callback,c=t.select,u=t.put,n.next=4,c(e=>e.user);case 4:return h=n.sent,f=h.filter,n.next=8,u({type:"setState",payload:{sendMailLoading:!0}});case 8:return n.next=10,Object(l["b"])("/admin/user/sendMail",s()({filter:f},i));case 10:return d=n.sent,n.next=13,u({type:"setState",payload:{sendMailLoading:!1}});case 13:if(200===d.code){n.next=15;break}return n.abrupt("return");case 15:r["a"].success("\u5df2\u52a0\u5165\u961f\u5217\u6267\u884c"),"function"===typeof a&&a();case 17:case"end":return n.stop()}},n)})()},ban(e,t){return o.a.mark(function e(){var n,r,i,a,s;return o.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.select,r=t.put,e.next=3,n(e=>e.user);case 3:return i=e.sent,a=i.filter,e.next=7,Object(l["b"])("/admin/user/ban",{filter:a});case 7:if(s=e.sent,200===s.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,r({type:"fetch"});case 12:case"end":return e.stop()}},e)})()},resetSecret(e,t){return o.a.mark(function n(){var i,a,s;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return i=e.id,a=t.put,n.next=4,Object(l["b"])("/admin/user/resetSecret",{id:i});case 4:if(s=n.sent,200===s.code){n.next=7;break}return n.abrupt("return");case 7:return r["a"].success("\u91cd\u7f6e\u6210\u529f"),n.next=10,a({type:"fetch"});case 10:case"end":return n.stop()}},n)})()}}}},hsuR:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"k",function(){return c}),n.d(t,"i",function(){return u}),n.d(t,"h",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"g",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return w});var r=n("YEIV"),i=n.n(r),o=n("q1tI"),a=n.n(o);function s(e){var t=[];return a.a.Children.forEach(e,function(e){e&&t.push(e)}),t}function l(e,t){for(var n=s(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:"ltr",r=f(t)?"translateY":"translateX";return f(t)||"rtl"!==n?r+"("+100*-e+"%) translateZ(0)":r+"("+100*e+"%) translateZ(0)"}function p(e,t){var n=f(t)?"marginTop":"marginLeft";return i()({},n,100*-e+"%")}function m(e,t){return+window.getComputedStyle(e).getPropertyValue(t).replace("px","")}function g(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})}function v(e,t){return+e.getPropertyValue(t).replace("px","")}function y(e,t,n,r,i){var o=m(i,"padding-"+e);if(!r||!r.parentNode)return o;var a=r.parentNode.childNodes;return Array.prototype.some.call(a,function(i){var a=window.getComputedStyle(i);return i!==r?(o+=v(a,"margin-"+e),o+=i[t],o+=v(a,"margin-"+n),"content-box"===a.boxSizing&&(o+=v(a,"border-"+e+"-width")+v(a,"border-"+n+"-width")),!1):(o+=v(a,"margin-"+e),!0)}),o}function b(e,t){return y("left","offsetWidth","right",e,t)}function w(e,t){return y("top","offsetHeight","bottom",e,t)}},hwdV:function(e,t,n){var r=n("tjlA"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},i4x8:function(e,t,n){"use strict";n.r(t),n.d(t,"routes",function(){return u}),n.d(t,"default",function(){return f});var r=n("q1tI"),i=n.n(r),o=n("Crw4"),a=n.n(o),s=n("RFCh"),l=n("Hg0r"),c=l["c"].ConnectedRouter,u=[{path:"/config/payment",exact:!0,component:n("eIZb").default},{path:"/config/system",exact:!0,component:n("1dM+").default},{path:"/config/theme",exact:!0,component:n("8drl").default},{path:"/coupon",exact:!0,component:n("Q55k").default},{path:"/dashboard",exact:!0,component:n("sFYk").default},{path:"/",exact:!0,component:n("RXBc").default},{path:"/knowledge",exact:!0,component:n("jJ5y").default},{path:"/login",exact:!0,component:n("SGa5").default},{path:"/notice",exact:!0,component:n("JZE9").default},{path:"/order",exact:!0,component:n("pi3A").default},{path:"/plan",exact:!0,component:n("ih8c").default},{path:"/queue",exact:!0,component:n("Jezz").default},{path:"/server/group",exact:!0,component:n("11+Y").default},{path:"/server/manage",exact:!0,component:n("uzXD").default},{path:"/ticket/:ticket_id",exact:!0,component:n("FPmv").default},{path:"/ticket",exact:!0,component:n("RJTe").default},{path:"/user",exact:!0,component:n("d1ca").default}];window.g_routes=u;var h=n("PszG");h.applyForEach("patchRoutes",{initialValue:u});class f extends i.a.Component{unListen(){}constructor(e){function t(e,t){h.applyForEach("onRouteChange",{initialValue:{routes:u,location:e,action:t}})}super(e),this.unListen=s["default"].listen(t);var n=s["default"].listen.toString().indexOf("callback(history.location, history.action)")>-1;n||t(s["default"].location)}componentWillUnmount(){this.unListen()}render(){var e=this.props||{};return i.a.createElement(c,{history:s["default"]},a()(u,e))}}},iCc5:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},ih8c:function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("+L6B"),n("2/Rp")),a=(n("qVdP"),n("jsC+")),s=(n("lUTK"),n("BvKs")),l=(n("+BJd"),n("mr32")),c=(n("5Dmo"),n("3S7+")),u=(n("BoS7"),n("Sdc0")),h=(n("Pwec"),n("CtXQ")),f=n("p0pE"),d=n.n(f),p=n("q1tI"),m=n.n(p),g=n("Bl7J"),v=n("/MKj"),y=n("tI4l"),b=n("qqou"),w=(n("bbsP"),n("/wGt")),x=(n("OaEy"),n("2fM7")),_=(n("14J3"),n("BMrR")),E=(n("jCWc"),n("kPKH")),S=(n("/zsF"),n("PArb")),C=(n("5NDa"),n("5rEg")),k=n("8zNj");class O extends m.a.Component{constructor(e){super(e),this.state={visible:!1,record:e.record||{show:0,name:null,transfer_enable:null,group_id:void 0,month_price:null,quarter_price:null,half_year_price:null,year_price:null,two_year_price:null,three_year_price:null,onetime_price:null,reset_price:null}},this.show=(()=>{this.setState({visible:!this.state.visible})})}componentDidMount(){this.props.dispatch({type:"config/fetch",key:"site"}),this.props.dispatch({type:"serverGroup/fetch"})}priceOnChange(e,t){this.setState({record:d()({},this.state.record,{[e]:""!==t?t:null})})}save(){this.props.dispatch({type:"plan/save",params:d()({},this.state.record),callback:()=>{this.setState({visible:!1})}})}render(){var e,t=this.props.config.site,n=this.props.plan.saveLoading,r=this.props.serverGroup.groups;return m.a.createElement(m.a.Fragment,null,m.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),m.a.createElement(w["a"],{id:"plan",maskClosable:!0,onClose:()=>this.setState({visible:!1}),title:"".concat(this.state.record.id?"\u7f16\u8f91\u8ba2\u9605":"\u65b0\u5efa\u8ba2\u9605"),visible:this.state.visible,width:"80%"},m.a.createElement("div",null,(null===(e=this.props.record)||void 0===e?void 0:e.id)?m.a.createElement("div",{className:"alert alert-info",role:"alert"},m.a.createElement("p",{className:"mb-0"},"Tips:\u5957\u9910\u5185\u5bb9\u53d8\u66f4\u5c06\u4f1a\u5b9e\u65f6\u66f4\u65b0\u5230\u5957\u9910\u4e0b\u7684\u6240\u6709\u7528\u6237\u3002")):"",m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5957\u9910\u540d\u79f0"),m.a.createElement(C["a"],{placeholder:"\u8bf7\u8f93\u5165\u5957\u9910\u540d\u79f0",value:this.state.record.name,onChange:e=>{this.setState({record:d()({},this.state.record,{name:e.target.value})})}})),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5957\u9910\u63cf\u8ff0"),m.a.createElement(C["a"].TextArea,{rows:4,value:this.state.record.content,placeholder:"\u8bf7\u8f93\u5165\u5957\u9910\u63cf\u8ff0\uff0c\u652f\u6301HTML",onChange:e=>{this.setState({record:d()({},this.state.record,{content:e.target.value})})}})),m.a.createElement(S["a"],{orientation:"center"},"\u552e\u4ef7\u8bbe\u7f6e ",m.a.createElement(c["a"],{placement:"top",title:"\u5c06\u91d1\u989d\u7559\u7a7a\u5219\u4e0d\u4f1a\u8fdb\u884c\u51fa\u552e"},m.a.createElement(h["a"],{type:"info-circle"}))),m.a.createElement(_["a"],{gutter:10},m.a.createElement(E["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u6708\u4ed8"),m.a.createElement(C["a"],{value:null!==this.state.record.month_price?this.state.record.month_price:void 0,onChange:e=>this.priceOnChange("month_price",e.target.value)}))),m.a.createElement(E["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5b63\u4ed8"),m.a.createElement(C["a"],{value:null!==this.state.record.quarter_price?this.state.record.quarter_price:void 0,onChange:e=>this.priceOnChange("quarter_price",e.target.value)}))),m.a.createElement(E["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u534a\u5e74"),m.a.createElement(C["a"],{value:null!==this.state.record.half_year_price?this.state.record.half_year_price:void 0,onChange:e=>this.priceOnChange("half_year_price",e.target.value)}))),m.a.createElement(E["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5e74\u4ed8"),m.a.createElement(C["a"],{value:null!==this.state.record.year_price?this.state.record.year_price:void 0,onChange:e=>this.priceOnChange("year_price",e.target.value)}))),m.a.createElement(E["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u4e24\u5e74\u4ed8"),m.a.createElement(C["a"],{value:null!==this.state.record.two_year_price?this.state.record.two_year_price:void 0,onChange:e=>this.priceOnChange("two_year_price",e.target.value)}))),m.a.createElement(E["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u4e09\u5e74\u4ed8"),m.a.createElement(C["a"],{value:null!==this.state.record.three_year_price?this.state.record.three_year_price:void 0,onChange:e=>this.priceOnChange("three_year_price",e.target.value)})))),m.a.createElement(_["a"],{gutter:10},m.a.createElement(E["a"],{md:12},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u4e00\u6b21\u6027"),m.a.createElement(C["a"],{addonAfter:t.currency_symbol,value:null!==this.state.record.onetime_price?this.state.record.onetime_price:void 0,onChange:e=>this.priceOnChange("onetime_price",e.target.value)}))),m.a.createElement(E["a"],{md:12},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u91cd\u7f6e\u5305"),m.a.createElement(C["a"],{addonAfter:t.currency_symbol,value:null!==this.state.record.reset_price?this.state.record.reset_price:void 0,onChange:e=>this.priceOnChange("reset_price",e.target.value)})))),m.a.createElement(S["a"],null),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5957\u9910\u6d41\u91cf"),m.a.createElement(C["a"],{addonAfter:"GB",placeholder:"\u8bf7\u8f93\u5165\u5957\u9910\u6d41\u91cf",value:this.state.record.transfer_enable,onChange:e=>{this.setState({record:d()({},this.state.record,{transfer_enable:e.target.value})})}})),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u6743\u9650\u7ec4 ",m.a.createElement(k["a"],null,m.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),m.a.createElement(x["a"],{placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},value:this.state.record.group_id,onChange:e=>{this.setState({record:d()({},this.state.record,{group_id:e})})}},r.map(e=>{return m.a.createElement(x["a"].Option,{key:e.id,value:e.id},e.name)}))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6d41\u91cf\u91cd\u7f6e\u65b9\u5f0f"),m.a.createElement(x["a"],{placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},value:this.state.record.reset_traffic_method,onChange:e=>{this.setState({record:d()({},this.state.record,{reset_traffic_method:e})})}},m.a.createElement(x["a"].Option,{key:null,value:null},"\u8ddf\u968f\u7cfb\u7edf\u8bbe\u7f6e"),m.a.createElement(x["a"].Option,{key:0,value:0},"\u6bcf\u67081\u53f7"),m.a.createElement(x["a"].Option,{key:1,value:1},"\u6309\u6708\u91cd\u7f6e"),m.a.createElement(x["a"].Option,{key:2,value:2},"\u4e0d\u91cd\u7f6e"),m.a.createElement(x["a"].Option,{key:3,value:3},"\u6bcf\u5e741\u67081\u65e5"),m.a.createElement(x["a"].Option,{key:4,value:4},"\u6309\u5e74\u91cd\u7f6e")))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u6700\u5927\u5bb9\u7eb3\u7528\u6237\u91cf"),m.a.createElement(C["a"],{placeholder:"\u7559\u7a7a\u5219\u4e0d\u9650\u5236",value:this.state.record.capacity_limit,onChange:e=>{this.setState({record:d()({},this.state.record,{capacity_limit:e.target.value})})}})),m.a.createElement("div",{className:"v2board-drawer-action"},m.a.createElement(o["a"],{style:{marginRight:8},onClick:()=>this.setState({visible:!1})},"\u53d6\u6d88"),m.a.createElement(o["a"],{loading:n,onClick:()=>n||this.save(),type:"primary"},"\u63d0\u4ea4"))))}}var T=Object(v["c"])(e=>{var t=e.plan,n=e.serverGroup,r=e.config;return{plan:t,serverGroup:n,config:r}})(O),A=n("Oa6W"),P=(n("H9LU"),n("I1u9"),n("ykC2"),n("v32e"));class M extends m.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{show:0}}}componentDidMount(){this.props.dispatch({type:"plan/fetch"}),this.props.dispatch({type:"serverGroup/fetch"})}balanceFormat(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(y["a"].periodText).map(n=>{0!==e[n]&&(e[n]?e[n]=t?Math.round(100*e[n]):e[n]/100:e[n]=null)}),e}drop(e){this.props.dispatch({type:"plan/drop",id:e})}edit(e){var t=this.props.plan.plans;this.setState({submit:d()({},t[e]),visible:!0})}update(e,t,n){this.props.dispatch({type:"plan/update",id:e,key:t,value:n})}render(){var e,t=this.props.plan,n=t.plans,r=t.fetchLoading,f=this.props.serverGroup.groups,d=[{title:"\u6392\u5e8f",dataIndex:"sort",key:"sort",render:(e,t)=>{return m.a.createElement(m.a.Fragment,null,m.a.createElement(h["a"],{type:"menu",style:{cursor:"move"}}))}},{title:"\u9500\u552e\u72b6\u6001",dataIndex:"show",key:"show",render:(e,t)=>{return m.a.createElement(u["a"],{size:"small",checked:parseInt(e),onClick:()=>this.update(t.id,"show",parseInt(e)?0:1)})}},{title:m.a.createElement("span",null,"\u7eed\u8d39 ",m.a.createElement(c["a"],{placement:"top",title:"\u5728\u8ba2\u9605\u505c\u6b62\u9500\u552e\u65f6\uff0c\u5df2\u8d2d\u7528\u6237\u662f\u5426\u53ef\u4ee5\u7eed\u8d39"},m.a.createElement(h["a"],{type:"question-circle"}))),dataIndex:"renew",key:"renew",render:(e,t)=>{return m.a.createElement(u["a"],{size:"small",checked:parseInt(e),onClick:()=>this.update(t.id,"renew",parseInt(e)?0:1)})}},{title:"\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u7edf\u8ba1",dataIndex:"count",key:"count",render:e=>{return m.a.createElement(m.a.Fragment,null,m.a.createElement(h["a"],{type:"user",style:{cursor:"move"}})," ",e)}},{title:"\u6d41\u91cf",dataIndex:"transfer_enable",key:"transfer_enable",render:e=>{return m.a.createElement(m.a.Fragment,null,e," GB")}},{title:"\u6708\u4ed8",dataIndex:"month_price",key:"month_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u5b63\u4ed8",dataIndex:"quarter_price",key:"quarter_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u534a\u5e74\u4ed8",dataIndex:"half_year_price",key:"half_year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u5e74\u4ed8",dataIndex:"year_price",key:"year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u4e24\u5e74\u4ed8",dataIndex:"two_year_price",key:"two_year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u4e09\u5e74\u4ed8",dataIndex:"three_year_price",key:"three_year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u4e00\u6b21\u6027",dataIndex:"onetime_price",key:"onetime_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u91cd\u7f6e\u5305",dataIndex:"reset_price",key:"reset_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u6743\u9650\u7ec4",dataIndex:"group_id",key:"group_id",render:(e,t)=>{var n=[];return f.map(t=>{t.id===parseInt(e)&&n.push(m.a.createElement(l["a"],null,t.name))}),n}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",fixed:"right",align:"right",render:(e,t)=>{return m.a.createElement(m.a.Fragment,null,m.a.createElement(a["a"],{trigger:"click",overlay:m.a.createElement(s["a"],null,m.a.createElement(s["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},m.a.createElement(T,{record:t,key:null===t||void 0===t?void 0:t.id},m.a.createElement("a",null,m.a.createElement(h["a"],{type:"edit"})," \u7f16\u8f91"))),m.a.createElement(s["a"].Item,{style:{color:"#ff4d4f"},onClick:()=>this.drop(t.id)},m.a.createElement(h["a"],{type:"delete"})," \u5220\u9664"))},m.a.createElement("a",{href:"javascript:void(0);"},"\u64cd\u4f5c ",m.a.createElement(h["a"],{type:"caret-down"}))))}}],p=this;return m.a.createElement(g["a"],i()({},this.props,{title:"\u8ba2\u9605\u7ba1\u7406"}),m.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),m.a.createElement(P["a"],{loading:r},m.a.createElement("div",{className:"block block-rounded"},m.a.createElement("div",{className:"bg-white"},m.a.createElement("div",{style:{padding:15}},m.a.createElement(T,null,m.a.createElement(o["a"],null,m.a.createElement(h["a"],{type:"plus"})," \u6dfb\u52a0\u8ba2\u9605"))),m.a.createElement(b["a"],{onDragEnd:(e,t)=>{p.props.dispatch({type:"plan/sort",fromIndex:e,toIndex:t})},nodeSelector:"tr",handleSelector:"i"},m.a.createElement(A["a"],{onContextMenu:e=>{this.record=e,this.forceUpdate()},tableLayout:"auto",dataSource:n,columns:d,pagination:!1,scroll:{x:1300}},m.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"},m.a.createElement("li",{className:"ant-dropdown-menu-item"},m.a.createElement(T,{record:this.record,key:null===(e=this.record)||void 0===e?void 0:e.id},m.a.createElement("a",null,m.a.createElement(h["a"],{type:"edit"})," \u7f16\u8f91"))),m.a.createElement("li",{className:"ant-dropdown-menu-item",onClick:()=>{var e;return this.drop(null===(e=this.record)||void 0===e?void 0:e.id)}},m.a.createElement("a",{style:{color:"#ff4d4f"}},m.a.createElement(h["a"],{type:"delete"})," \u5220\u9664")))))))))}}t["default"]=Object(v["c"])(e=>{var t=e.plan,n=e.serverGroup;return{plan:t,serverGroup:n}})(M)},il4q:function(e,t,n){var r=n("ZDr/");e.exports=function(e){return Object(r(e))}},"j/1Z":function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},"j/9B":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("6YkS"),i=r.Prompt;t.default=i},j2DC:function(e,t,n){"use strict";var r=n("oVml"),i=n("rr1i"),o=n("RfKB"),a={};n("NegM")(a,n("UWiX")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},jAWH:function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},jB5C:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;tPromise.resolve().then(()=>T(n("ZM0C")))}),P=new C.a({html:!0,linkify:!0,typographer:!0});class M extends f.a.Component{constructor(e){super(e),this.state={visible:!1,selectedTab:!1}}componentDidMount(){}formChange(e,t){var n=this.props.knowledge.knowledge;n[e]=t,this.props.dispatch({type:"knowledge/setState",payload:{knowledge:n}})}show(){this.props.id&&this.props.dispatch({type:"knowledge/fetchById",id:this.props.id}),this.setState({visible:!0}),this.key=Math.random()}hide(){this.props.dispatch({type:"knowledge/setState",payload:{knowledge:{}}}),this.setState({visible:!1})}save(){this.props.dispatch({type:"knowledge/save",callback:()=>{x["a"].success("\u4fdd\u5b58\u6210\u529f")}})}render(){var e=this.state.visible,t=this.props.knowledge,n=t.knowledge,r=(t.categorys,t.fetchByIdLoading),i=t.saveLoading,o=this.props.id;return f.a.createElement(f.a.Fragment,null,f.a.cloneElement(this.props.children,{onClick:()=>this.show()}),f.a.createElement(y["a"],{width:"80%",visible:e,title:o?"\u7f16\u8f91\u77e5\u8bc6":"\u65b0\u589e\u77e5\u8bc6",id:"knowledge",onClose:()=>this.hide()},r?f.a.createElement(u["a"],{type:"loading"}):f.a.createElement("div",null,f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6807\u9898"),f.a.createElement(w["a"],{placeholder:"\u8bf7\u8f93\u5165\u77e5\u8bc6\u6807\u9898",value:n.title,onChange:e=>this.formChange("title",e.target.value)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5206\u7c7b"),f.a.createElement(w["a"],{placeholder:"\u8bf7\u8f93\u5165\u5206\u7c7b\uff0c\u5206\u7c7b\u5c06\u4f1a\u81ea\u52a8\u5f52\u96c6",value:n.category,onChange:e=>this.formChange("category",e.target.value)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u8bed\u8a00"),f.a.createElement(b["a"],{placeholder:"\u8bf7\u9009\u62e9\u77e5\u8bc6\u8bed\u8a00",defaultValue:n.language||1,style:{width:"100%"},value:n.language,onChange:e=>this.formChange("language",e)},Object.keys(k["a"].i18nText).sort().map(e=>{return f.a.createElement(b["a"].Option,{value:e},k["a"].i18nText[e])}))),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5185\u5bb9"),f.a.createElement(A,{key:this.key,style:{height:"500px"},renderHTML:e=>P.render(e),value:n.body,onChange:e=>this.formChange("body",e.text),config:{view:{menu:!0,md:!0,fullScreen:!0,hideMenu:!0}}}))),f.a.createElement("div",{className:"v2board-drawer-action"},f.a.createElement(a["a"],{style:{marginRight:8},onClick:()=>this.hide()},"\u53d6\u6d88"),f.a.createElement(a["a"],{loading:i,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4"))))}}var R=Object(g["c"])(e=>{var t=e.knowledge;return{knowledge:t}})(M),j=n("v32e");class L extends f.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{steps:[]}}}componentDidMount(){this.props.dispatch({type:"knowledge/fetch"}),this.props.dispatch({type:"knowledge/getCategory"})}modalVisible(){this.setState({visible:!this.state.visible},()=>{this.state.visible||this.setState({submit:{steps:[]}})})}show(e){this.props.dispatch({type:"knowledge/show",id:e})}drop(e){this.props.dispatch({type:"knowledge/drop",id:e.id})}render(){var e=this.props.knowledge,t=e.knowledges,n=e.fetchLoading,r=(e.categorys,[{title:"\u6392\u5e8f",dataIndex:"sort",key:"sort",render:e=>{return f.a.createElement(f.a.Fragment,null,f.a.createElement(u["a"],{type:"menu",style:{cursor:"move"}}))}},{title:"\u6587\u7ae0ID",dataIndex:"id",key:"id"},{title:"\u663e\u793a",dataIndex:"show",key:"show",render:(e,t)=>{return f.a.createElement(c["a"],{size:"small",onChange:()=>this.show(t.id),checked:e})}},{title:"\u6807\u9898",dataIndex:"title",key:"title"},{title:"\u5206\u7c7b",dataIndex:"category",key:"category"},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updated_at",key:"updated_at",align:"right",render:e=>{return m()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t,n)=>{return f.a.createElement(f.a.Fragment,null,f.a.createElement(R,{id:t.id},f.a.createElement("a",{href:"javascript:void(0);"},"\u7f16\u8f91")),f.a.createElement(l["a"],{type:"vertical"}),f.a.createElement("a",{href:"javascript:void(0);",onClick:()=>{s["a"].confirm({title:"\u8b66\u544a",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u9879\u76ee\u5417\uff1f",onOk:()=>this.drop(t),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})}},"\u5220\u9664"))}}]),h=this;return f.a.createElement(d["a"],i()({},this.props,{title:"\u77e5\u8bc6\u5e93\u7ba1\u7406"}),f.a.createElement(j["a"],{loading:n},f.a.createElement("div",{className:"block border-bottom"},f.a.createElement("div",{className:"bg-white"},f.a.createElement("div",{style:{padding:15}},f.a.createElement(R,null,f.a.createElement(a["a"],null,f.a.createElement(u["a"],{type:"plus"}),"\u65b0\u589e"))),f.a.createElement(v["a"],{onDragEnd:(e,t)=>{h.props.dispatch({type:"knowledge/sort",fromIndex:e,toIndex:t})},nodeSelector:"tr",handleSelector:"i"},f.a.createElement(o["a"],{tableLayout:"auto",dataSource:t,pagination:!1,columns:r,scroll:{x:750}}))))))}}t["default"]=Object(g["c"])(e=>{var t=e.knowledge;return{knowledge:t}})(L)},"jN/G":function(e,t,n){"use strict";var r=n("WGNW"),i=n("il4q"),o=n("wYm8"),a=n("V5/1");n("8Z/V")&&r(r.P+n("OJuA"),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},jR2x:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("bYtY");function i(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(r["w"])(e)?[e]:Object(r["r"])(e)?e:null:null}function o(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&i(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(n=Object(r["D"])(n,function(e){return e/a}),o/=a)}return[n,o]}},jTL6:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),c=Math.sin(o);e.moveTo(l*i+n,c*i+r),e.arc(n,r,i,o,a,!s)},t}(i["b"]);a.prototype.type="arc",t["a"]=a},jce2:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(n=!0),n}},jjMW:function(e,t,n){"use strict";var r=n("WGNW"),i=n("il4q"),o=n("8BMt"),a=n("BFt8"),s=n("15BC").f;n("8Z/V")&&r(r.P+n("OJuA"),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},jmDH:function(e,t,n){e.exports=!n("KUxP")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},jo6Y:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},jpXb:function(e,t,n){var r=n("wZXL");e.exports=new r},jzd5:function(e,t,n){"use strict";var r={};function i(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n);for(t=0;t=55296&&l<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(l),t+=6):240===(248&i)&&t+91114111?c+="\ufffd\ufffd\ufffd\ufffd":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="\ufffd";return c})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},k3GJ:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("YEIV"),a=n.n(o),s=n("jo6Y"),l=n.n(s),c=n("iCc5"),u=n.n(c),h=n("V7oC"),f=n.n(h),d=n("FYw3"),p=n.n(d),m=n("mRg0"),g=n.n(m),v=n("q1tI"),y=n.n(v),b=n("17x9"),w=n.n(b),x=n("TSYQ"),_=n.n(x),E=n("xEkU"),S=n.n(E),C=n("VCL8"),k={LEFT:37,UP:38,RIGHT:39,DOWN:40},O=n("hsuR"),T=n("4IlW"),A=n("foW8"),P=n.n(A),M=P()({}),R=M.Provider,j=M.Consumer,L={width:0,height:0,overflow:"hidden",position:"absolute"},D=function(e){function t(){var e,n,r,i;u()(this,t);for(var o=arguments.length,a=Array(o),s=0;s=0}I.propTypes={className:w.a.string,active:w.a.bool,style:w.a.any,destroyInactiveTabPane:w.a.bool,forceRender:w.a.bool,placeholder:w.a.node,rootPrefixCls:w.a.string,children:w.a.node,id:w.a.string},I.defaultProps={placeholder:null};var W=function(e){function t(e){u()(this,t);var n=p()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));H.call(n);var r=void 0;return r="activeKey"in e?e.activeKey:"defaultActiveKey"in e?e.defaultActiveKey:B(e),n.state={activeKey:r},n}return g()(t,e),f()(t,[{key:"componentWillUnmount",value:function(){this.destroy=!0,S.a.cancel(this.sentinelId)}},{key:"updateSentinelContext",value:function(){var e=this;this.destroy||(S.a.cancel(this.sentinelId),this.sentinelId=S()(function(){e.destroy||e.forceUpdate()}))}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.navWrapper,o=t.tabBarPosition,s=t.className,c=t.renderTabContent,u=t.renderTabBar,h=t.destroyInactiveTabPane,f=t.direction,d=l()(t,["prefixCls","navWrapper","tabBarPosition","className","renderTabContent","renderTabBar","destroyInactiveTabPane","direction"]),p=_()((e={},a()(e,n,1),a()(e,n+"-"+o,1),a()(e,s,!!s),a()(e,n+"-rtl","rtl"===f),e));this.tabBar=u();var m=y.a.cloneElement(this.tabBar,{prefixCls:n,navWrapper:r,key:"tabBar",onKeyDown:this.onNavKeyDown,tabBarPosition:o,onTabClick:this.onTabClick,panels:t.children,activeKey:this.state.activeKey,direction:this.props.direction}),g=y.a.cloneElement(c(),{prefixCls:n,tabBarPosition:o,activeKey:this.state.activeKey,destroyInactiveTabPane:h,children:t.children,onChange:this.setActiveKey,key:"tabContent",direction:this.props.direction}),v=y.a.createElement(N,{key:"sentinelStart",setRef:this.setSentinelStart,nextElement:this.panelSentinelStart}),b=y.a.createElement(N,{key:"sentinelEnd",setRef:this.setSentinelEnd,prevElement:this.panelSentinelEnd}),w=[];return"bottom"===o?w.push(v,g,b,m):w.push(m,v,g,b),y.a.createElement(R,{value:{sentinelStart:this.sentinelStart,sentinelEnd:this.sentinelEnd,setPanelSentinelStart:this.setPanelSentinelStart,setPanelSentinelEnd:this.setPanelSentinelEnd}},y.a.createElement("div",i()({className:p,style:t.style},Object(O["b"])(d),{onScroll:this.onScroll}),w))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};return"activeKey"in e?n.activeKey=e.activeKey:V(e,t.activeKey)||(n.activeKey=B(e)),Object.keys(n).length>0?n:null}}]),t}(y.a.Component),H=function(){var e=this;this.onTabClick=function(t,n){e.tabBar.props.onTabClick&&e.tabBar.props.onTabClick(t,n),e.setActiveKey(t)},this.onNavKeyDown=function(t){var n=t.keyCode;if(n===k.RIGHT||n===k.DOWN){t.preventDefault();var r=e.getNextActiveKey(!0);e.onTabClick(r)}else if(n===k.LEFT||n===k.UP){t.preventDefault();var i=e.getNextActiveKey(!1);e.onTabClick(i)}},this.onScroll=function(e){var t=e.target,n=e.currentTarget;t===n&&t.scrollLeft>0&&(t.scrollLeft=0)},this.setSentinelStart=function(t){e.sentinelStart=t},this.setSentinelEnd=function(t){e.sentinelEnd=t},this.setPanelSentinelStart=function(t){t!==e.panelSentinelStart&&e.updateSentinelContext(),e.panelSentinelStart=t},this.setPanelSentinelEnd=function(t){t!==e.panelSentinelEnd&&e.updateSentinelContext(),e.panelSentinelEnd=t},this.setActiveKey=function(t){e.state.activeKey!==t&&("activeKey"in e.props||e.setState({activeKey:t}),e.props.onChange(t))},this.getNextActiveKey=function(t){var n=e.state.activeKey,r=[];y.a.Children.forEach(e.props.children,function(e){e&&!e.props.disabled&&(t?r.push(e):r.unshift(e))});var i=r.length,o=i&&r[0].key;return r.forEach(function(e,t){e.key===n&&(o=t===i-1?r[0].key:r[t+1].key)}),o}};W.propTypes={destroyInactiveTabPane:w.a.bool,renderTabBar:w.a.func.isRequired,renderTabContent:w.a.func.isRequired,navWrapper:w.a.func,onChange:w.a.func,children:w.a.node,prefixCls:w.a.string,className:w.a.string,tabBarPosition:w.a.string,style:w.a.object,activeKey:w.a.string,defaultActiveKey:w.a.string,direction:w.a.string},W.defaultProps={prefixCls:"rc-tabs",destroyInactiveTabPane:!1,onChange:F,navWrapper:function(e){return e},tabBarPosition:"top",children:null,style:{},direction:"ltr"},W.TabPane=$,Object(C["polyfill"])(W);var U=W;n("bTih");n.d(t,"a",function(){return $});t["b"]=U},kAMH:function(e,t,n){var r=n("a0xu");e.exports=Array.isArray||function(e){return"Array"==r(e)}},kCCV:function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},kCK5:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},kTiW:function(e,t,n){e.exports=n("NegM")},"kVK+":function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+h>=1?f/l:f*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*m}},kWR5:function(e,t,n){"use strict";var r=n("WGNW"),i=n("bV5f"),o=n("c0Oy"),a=n("VeyY"),s=n("tGd3");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},kd2E:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"===typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(h=m.substr(0,g),f=m.substr(g+1)):(h=m,f=""),d=decodeURIComponent(h),p=decodeURIComponent(f),r(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},kgWH:function(e,t,n){n("gRqi")("Array")},kl5A:function(e,t,n){(function(t,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("yQtW"),l=n("43KI"),c=n("2Tiy"),u=s.IncomingMessage,h=s.readyStates;function f(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}var d=e.exports=function(e){var n,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=f(n,i),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function p(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}a(d,l.Writable),d.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===m.indexOf(r)&&(n._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=o.arraybuffer?c(t.concat(e._body)):o.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var l=[];if(Object.keys(a).forEach(function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach(function(e){l.push([t,e])}):l.push([t,n])}),"fetch"===e._mode){var u=null;if(o.abortController){var f=new AbortController;u=f.signal,e._fetchAbortController=f,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var d=e._xhr=new r.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in d&&(d.responseType=e._mode.split(":")[0]),"withCredentials"in d&&(d.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(d.timeout=n.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),l.forEach(function(e){d.setRequestHeader(e[0],e[1])}),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case h.LOADING:case h.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{d.send(s)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},d.prototype._onXHRProgress=function(){var e=this;p(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,r.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},d.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(r,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n("tjlA").Buffer,n("yLpj"),n("Q2Ig"))},kwZ1:function(e,t,n){"use strict";var r=n("jmDH"),i=n("w6GO"),o=n("mqlF"),a=n("NV0k"),s=n("JB68"),l=n("M1xp"),c=Object.assign;e.exports=!c||n("KUxP")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,f=a.f;while(c>u){var d,p=l(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;while(g>v)d=m[v++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:c},l0kz:function(e,t,n){"use strict";var r=n("wUWy");e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},l4aY:function(e,t,n){"use strict";function r(e,t){var n=t;while(n){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,"a",function(){return r})},lCc8:function(e,t,n){var r=n("Y7ZC");r(r.S,"Object",{create:n("oVml")})},lETv:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={notices:[],fetchLoading:!1};t["default"]={name:"notice",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/notice/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{notices:r.data}});case 12:case"end":return e.stop()}},e)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/notice/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"fetch"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/notice/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/notice/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},lFUy:function(e,t,n){"use strict";var r=n("8Z/V"),i=n("Igga"),o=n("e6w7"),a=n("LsAW"),s=n("il4q"),l=n("9WFV"),c=Object.assign;e.exports=!c||n("wUWy")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,f=a.f;while(c>u){var d,p=l(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;while(g>v)d=m[v++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:c},lJCZ:function(e,t,n){(function(e){var r=n("kl5A"),i=n("yQtW"),o=n("U6jy"),a=n("jAWH"),s=n("CxY0"),l=t;l.request=function(t,n){t="string"===typeof t?s.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,l=t.hostname||t.host,c=t.port,u=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var h=new r(t);return n&&h.on("response",n),h},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n("yLpj"))},lVBX:function(e,t,n){"use strict";var r=n("fNJh"),i=n("R5jr");r["default"].__addLocaleData(i["default"]),r["default"].defaultLocale="en",t["default"]=r["default"]},lWxU:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={switchLoading:{},saveLoading:!1};t["default"]={name:"serverTrojan",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/server/trojan/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/trojan/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},copy(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/trojan/copy",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/server/trojan/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"serverManage/getNodes"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()}}}},lZXM:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("OsVd"),o=n("ETUh"),a=n("bsDr");n("h7Gi")("match",1,function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;var h,f=[],d=0;while(null!==(h=a(l,c))){var p=String(h[0]);f[d]=p,""===p&&(l.lastIndex=o(c,i(l.lastIndex),u)),d++}return 0===d?null:f}]})},lm0R:function(e,t,n){"use strict";(function(t){function n(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:o=new Array(s-1),a=0;while(a{this.state.visible||this.setState({submit:{email:this.props.email||void 0,plan_id:void 0,period:void 0,total_amount:void 0}})})}setSubmit(e,t){this.setState({submit:l()({},this.state.submit,{[e]:t})})}ok(){this.props.dispatch({type:"order/assign",params:l()({},this.state.submit),callback:()=>{this.show()}})}render(){var e=this.state,t=e.visible,n=e.submit,s=this.props.plan.plans,l=this.props.order.assignLoading;return u.a.createElement(u.a.Fragment,null,u.a.cloneElement(this.props.children,{onClick:()=>this.show()}),u.a.createElement(r["a"],{title:"\u8ba2\u5355\u5206\u914d",visible:t,onCancel:()=>this.show(),onOk:()=>this.ok(),okText:l?u.a.createElement(a["a"],{type:"loading"}):"\u786e\u5b9a",cancelText:"\u53d6\u6d88"},u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u7528\u6237\u90ae\u7bb1"),u.a.createElement(o["a"],{placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u90ae\u7bb1",value:n.email,onChange:e=>this.setSubmit("email",e.target.value)})),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u8bf7\u9009\u62e9\u8ba2\u9605"),u.a.createElement("div",null,u.a.createElement(i["a"],{value:n.plan_id,style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u8ba2\u9605",onChange:e=>this.setSubmit("plan_id",e)},s.map(e=>{return u.a.createElement(i["a"].Option,{value:e.id,key:Math.random()},e.name)})))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u8bf7\u9009\u62e9\u5468\u671f"),u.a.createElement("div",null,u.a.createElement(i["a"],{value:n.period,style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u5468\u671f",onChange:e=>this.setSubmit("period",e)},Object.keys(f["a"].periodText).map(e=>{return u.a.createElement(i["a"].Option,{value:e,key:Math.random()},f["a"].periodText[e])})))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u652f\u4ed8\u91d1\u989d"),u.a.createElement(o["a"],{placeholder:"\u8bf7\u8f93\u5165\u9700\u8981\u652f\u4ed8\u7684\u91d1\u989d",addonAfter:"\xa5",value:n.total_amount,onChange:e=>this.setSubmit("total_amount",e.target.value)}))))}}t["a"]=Object(h["c"])(e=>{var t=e.plan,n=e.order;return{plan:t,order:n}})(d)},mFDi:function(e,t,n){"use strict";var r=n("Fofx"),i=n("3Oj7"),o=Math.min,a=Math.max,s=new i["a"],l=new i["a"],c=new i["a"],u=new i["a"],h=new i["a"],f=new i["a"],d=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=o(e.x,this.x),n=o(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,o=r["b"]();return r["h"](o,o,[-t.x,-t.y]),r["g"](o,o,[n,i]),r["h"](o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,u=t.x+t.width,d=t.y,p=t.y+t.height,m=!(av&&(v=_,yv&&(v=E,w=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],h=r[3],f=r[4],d=r[5];return t.x=n.x*i+f,t.y=n.y*h+d,t.width=n.width*i,t.height=n.height*h,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=c.x=n.x,s.y=u.y=n.y,l.x=u.x=n.x+n.width,l.y=c.y=n.y+n.height,s.transform(r),u.transform(r),l.transform(r),c.transform(r),t.x=o(s.x,l.x,c.x,u.x),t.y=o(s.y,l.y,c.y,u.y);var p=a(s.x,l.x,c.x,u.x),m=a(s.y,l.y,c.y,u.y);t.width=p-t.x,t.height=m-t.y}else t!==n&&e.copy(t,n)},e}();t["a"]=d},mHNb:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={knowledges:[],fetchLoading:!1,categorys:[],knowledge:{},fetchByIdLoading:!1,saveLoading:!1};t["default"]={name:"knowledge",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/knowledge/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{knowledges:r.data}});case 12:case"end":return e.stop()}},e)})()},fetchById(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,o({type:"setState",payload:{fetchByIdLoading:!0}});case 4:return n.next=6,Object(s["a"])("/admin/knowledge/fetch",{id:r});case 6:return a=n.sent,n.next=9,o({type:"setState",payload:{fetchByIdLoading:!1}});case 9:if(200===a.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,o({type:"setState",payload:{knowledge:a.data}});case 13:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.callback,o=t.put,l=t.select,n.next=4,l(e=>e.knowledge);case 4:return c=n.sent,u=c.knowledge,n.next=8,o({type:"setState",payload:{saveLoading:!0}});case 8:return n.next=10,Object(s["b"])("/admin/knowledge/save",a()({},u));case 10:return h=n.sent,n.next=13,o({type:"setState",payload:{saveLoading:!1}});case 13:if(200===h.code){n.next=15;break}return n.abrupt("return");case 15:return n.next=17,o({type:"fetch"});case 17:"function"===typeof r&&r();case 18:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/knowledge/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/knowledge/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},sort(e,t){return i.a.mark(function n(){var r,o,a,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.fromIndex,o=e.toIndex,a=t.select,l=t.put,n.next=4,l({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,a(e=>e.knowledge);case 6:return c=n.sent,u=c.knowledges,re.id)});case 13:if(h=n.sent,200===h.code){n.next=16;break}return n.abrupt("return");case 16:return n.next=18,l({type:"fetch"});case 18:case"end":return n.stop()}},n)})()},getCategory(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(s["a"])("/admin/knowledge/getCategory");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"setState",payload:{categorys:r.data}});case 8:case"end":return e.stop()}},e)})()}}}},mRg0:function(e,t,n){"use strict";t.__esModule=!0;var r=n("s3Ml"),i=c(r),o=n("AyUB"),a=c(o),s=n("EJiy"),l=c(s);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,a.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},maVC:function(e,t,n){"use strict";n("2qtc");var r=n("kLXV"),i=n("p0pE"),o=n.n(i),a=(n("5NDa"),n("5rEg")),s=n("q1tI"),l=n.n(s),c=n("/MKj");class u extends l.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{}}}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}send(){this.props.dispatch({type:"user/sendMail",params:this.state.submit,callback:()=>{this.hide()}})}render(){var e=this.props.user,t=e.filter,n=e.sendMailLoading,i=this.state.visible;return l.a.createElement(l.a.Fragment,null,l.a.cloneElement(this.props.children,{onClick:()=>this.show()}),l.a.createElement(r["a"],{title:"\u53d1\u9001\u90ae\u4ef6",visible:i,onOk:()=>this.send(),okButtonProps:{loading:n},onCancel:()=>this.hide()},l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6536\u4ef6\u4eba"),l.a.createElement(a["a"],{disabled:!0,value:t.length?"\u8fc7\u6ee4\u7528\u6237":"\u5168\u90e8\u7528\u6237"})),l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u4e3b\u9898"),l.a.createElement(a["a"],{placeholder:"\u8bf7\u8f93\u5165\u90ae\u4ef6\u4e3b\u9898",value:this.state.submit.subject,onChange:e=>{this.setState({submit:o()({},this.state.submit,{subject:e.target.value})})}})),l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u53d1\u9001\u5185\u5bb9"),l.a.createElement(a["a"].TextArea,{rows:12,value:this.state.submit.content,placeholder:"\u8bf7\u8f93\u5165\u90ae\u4ef6\u5185\u5bb9",onChange:e=>{this.setState({submit:o()({},this.state.submit,{content:e.target.value})})}}))))}}t["a"]=Object(c["c"])(e=>{var t=e.user;return{user:t}})(u)},mcDz:function(e,t,n){"use strict";t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i Promise))`.","See if using `DarkReader.setFetchMethod(window.fetch)`","before `DarkReader.enable()` works."].join(" ")))]})})},E=_;function S(e){E=e||_}function C(e){return n(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,E(e)];case 1:return[2,t.sent()]}})})}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var k=new Set;function O(){for(var e=[],t=0;t=r){if(d-cte)return!0;for(var t=0,n=0;nte)return!0;return!1}function re(e){var t=new Set,n=new Set,r=new Set;e.forEach(function(e){D(e.addedNodes,function(e){e instanceof Element&&e.isConnected&&t.add(e)}),D(e.removedNodes,function(e){e instanceof Element&&(e.isConnected?r.add(e):n.add(e))})}),r.forEach(function(e){return t.delete(e)});var i=[],o=[];return t.forEach(function(e){t.has(e.parentElement)&&i.push(e)}),n.forEach(function(e){n.has(e.parentElement)&&o.push(e)}),i.forEach(function(e){return t.delete(e)}),o.forEach(function(e){return n.delete(e)}),{additions:t,moves:r,deletions:n}}var ie,oe=new Map,ae=new WeakMap;function se(e,t){var n,r,i;if(oe.has(e))n=oe.get(e),r=ae.get(n);else{var o=!1,a=!1;n=new MutationObserver(function(t){if(ne(t))!o||q()?r.forEach(function(t){var n=t.onHugeMutations;return n(e)}):a||(i=function(){return r.forEach(function(t){var n=t.onHugeMutations;return n(e)})},G(i),a=!0),o=!0;else{var n=re(t);r.forEach(function(e){var t=e.onMinorMutations;return t(n)})}}),n.observe(e,{childList:!0,subtree:!0}),oe.set(e,n),r=new Set,ae.set(n,r)}return r.add(t),{disconnect:function(){r.delete(t),i&&Y(i),0===r.size&&(n.disconnect(),ae.delete(n),oe.delete(e))}}}var le=new Map;function ce(e){return ie||(ie=document.createElement("a")),ie.href=e,ie.href}function ue(e,t){void 0===t&&(t=null);var n=e+(t?";"+t:"");if(le.has(n))return le.get(n);if(t){var r=new URL(e,ce(t));return le.set(n,r),r}var i=new URL(ce(e));return le.set(e,i),i}function he(e,t){if(t.match(/^data\\?\:/))return t;var n=ue(e),r=ue(t,n.href);return r.href}function fe(e,t,n){D(e,function(e){if(e.selectorText)t(e);else if(e.href)try{fe(e.styleSheet.cssRules,t,n)}catch(e){$("Found a non-loaded link."),n&&n()}else if(e.media){var r=Array.from(e.media),i=r.some(function(e){return e.startsWith("screen")||e.startsWith("all")}),o=r.some(function(e){return e.startsWith("print")||e.startsWith("speech")});!i&&o||fe(e.cssRules,t,n)}else e.conditionText?CSS.supports(e.conditionText)&&fe(e.cssRules,t,n):F("CSSRule type not supported",e)})}var de=["background","border","border-color","border-bottom","border-left","border-right","border-top","outline","outline-color"],pe=d?de.map(function(e){var t=new RegExp(e+":\\s*(.*?)\\s*;");return[e,t]}):null;function me(e,t){D(e,function(n){var r=e.getPropertyValue(n).trim();r&&t(n,r)});var n=e.cssText;n.includes("var(")&&(d?pe.forEach(function(e){var r=o(e,2),i=r[0],a=r[1],s=n.match(a);if(s&&s[1]){var l=s[1].trim();t(i,l)}}):de.forEach(function(n){var r=e.getPropertyValue(n);r&&r.includes("var(")&&t(n,r)}))}var ge=/url\((('.+?')|(".+?")|([^\)]*?))\)/g,ve=/@import\s*(url\()?(('.+?')|(".+?")|([^\)]*?))\)?;?/g;function ye(e){return e.replace(/^url\((.*)\)$/,"$1").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")}function be(e){var t=ue(e);return""+t.origin+t.pathname.replace(/\?.*$/,"").replace(/(\/)([^\/]+)$/i,"$1")}function we(e,t){return e.replace(ge,function(e){var n=ye(e);return'url("'+he(t,n)+'")'})}var xe=/\/\*[\s\S]*?\*\//g;function _e(e){return e.replace(xe,"")}var Ee=/@font-face\s*{[^}]*}/g;function Se(e){return e.replace(Ee,"")}function Ce(e){var t=e.h,n=e.s,r=e.l,i=e.a,a=void 0===i?1:i;if(0===n){var s=o([r,r,r].map(function(e){return Math.round(255*e)}),3),l=s[0],c=s[1],u=s[2];return{r:l,g:u,b:c,a:a}}var h=(1-Math.abs(2*r-1))*n,f=h*(1-Math.abs(t/60%2-1)),d=r-h/2,p=o((t<60?[h,f,0]:t<120?[f,h,0]:t<180?[0,h,f]:t<240?[0,f,h]:t<300?[f,0,h]:[h,0,f]).map(function(e){return Math.round(255*(e+d))}),3),m=p[0],g=p[1],v=p[2];return{r:m,g:g,b:v,a:a}}function ke(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=void 0===i?1:i,a=t/255,s=n/255,l=r/255,c=Math.max(a,s,l),u=Math.min(a,s,l),h=c-u,f=(c+u)/2;if(0===h)return{h:0,s:0,l:f,a:o};var d=60*(c===a?(s-l)/h%6:c===s?(l-a)/h+2:(a-s)/h+4);d<0&&(d+=360);var p=h/(1-Math.abs(2*f-1));return{h:d,s:p,l:f,a:o}}function Oe(e,t){void 0===t&&(t=0);var n=e.toFixed(t);if(0===t)return n;var r=n.indexOf(".");if(r>=0){var i=n.match(/0+$/);if(i)return i.index===r+1?n.substring(0,r):n.substring(0,i.index)}return n}function Te(e){var t=e.r,n=e.g,r=e.b,i=e.a;return null!=i&&i<1?"rgba("+Oe(t)+", "+Oe(n)+", "+Oe(r)+", "+Oe(i,2)+")":"rgb("+Oe(t)+", "+Oe(n)+", "+Oe(r)+")"}function Ae(e){var t=e.r,n=e.g,r=e.b,i=e.a;return"#"+(null!=i&&i<1?[t,n,r,Math.round(255*i)]:[t,n,r]).map(function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function Pe(e){var t=e.h,n=e.s,r=e.l,i=e.a;return null!=i&&i<1?"hsla("+Oe(t)+", "+Oe(100*n)+"%, "+Oe(100*r)+"%, "+Oe(i,2)+")":"hsl("+Oe(t)+", "+Oe(100*n)+"%, "+Oe(100*r)+"%)"}var Me=/^rgba?\([^\(\)]+\)$/,Re=/^hsla?\([^\(\)]+\)$/,je=/^#[0-9a-f]+$/i;function Le(e){var t=e.trim().toLowerCase();if(t.match(Me))return Fe(t);if(t.match(Re))return He(t);if(t.match(je))return Ue(t);if(Ke.has(t))return ze(t);if(Ge.has(t))return qe(t);if("transparent"===e)return{r:0,g:0,b:0,a:0};throw new Error("Unable to parse "+e)}function De(e,t,n,r){var i=e.split(t).filter(function(e){return e}),a=Object.entries(r),s=i.map(function(e){return e.trim()}).map(function(e,t){var r,i=a.find(function(t){var n=o(t,1),r=n[0];return e.endsWith(r)});return r=i?parseFloat(e.substring(0,e.length-i[0].length))/i[1]*n[t]:parseFloat(e),n[t]>1?Math.round(r):r});return s}var Ne=/rgba?|\(|\)|\/|,|\s/gi,Ie=[255,255,255,1],$e={"%":100};function Fe(e){var t=o(De(e,Ne,Ie,$e),4),n=t[0],r=t[1],i=t[2],a=t[3],s=void 0===a?1:a;return{r:n,g:r,b:i,a:s}}var Be=/hsla?|\(|\)|\/|,|\s/gi,Ve=[360,1,1,1],We={"%":100,deg:360,rad:2*Math.PI,turn:1};function He(e){var t=o(De(e,Be,Ve,We),4),n=t[0],r=t[1],i=t[2],a=t[3],s=void 0===a?1:a;return Ce({h:n,s:r,l:i,a:s})}function Ue(e){var t=e.substring(1);switch(t.length){case 3:case 4:var n=o([0,1,2].map(function(e){return parseInt(""+t[e]+t[e],16)}),3),r=n[0],i=n[1],a=n[2],s=3===t.length?1:parseInt(""+t[3]+t[3],16)/255;return{r:r,g:i,b:a,a:s};case 6:case 8:var l=o([0,2,4].map(function(e){return parseInt(t.substring(e,e+2),16)}),3);r=l[0],i=l[1],a=l[2],s=6===t.length?1:parseInt(t.substring(6,8),16)/255;return{r:r,g:i,b:a,a:s}}throw new Error("Unable to parse "+e)}function ze(e){var t=Ke.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}function qe(e){var t=Ge.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}var Ke=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),Ge=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map(function(e){var t=o(e,2),n=t[0],r=t[1];return[n.toLowerCase(),r]}));function Ye(e,t,n,r,i){return(e-t)*(i-r)/(n-t)+r}function Xe(e,t,n){return Math.min(n,Math.max(t,e))}function Qe(e,t){for(var n=[],r=0,i=e.length;r200&&i<280;r=o<.24||a>.8&&c}var u=i,h=a;r&&(l?(u=t.h,h=t.s):(u=n.h,h=n.s));var f=Ye(a,0,1,t.l,n.l);return{h:u,s:h,l:f,a:s}}var yt=.4;function bt(e,t){var n=e.h,r=e.s,i=e.l,o=e.a,a=i<.5,s=n>200&&n<280,l=r<.12||i>.8&&s;if(a){var c=Ye(i,0,.5,0,yt);if(l){var u=t.h,h=t.s;return{h:u,s:h,l:c,a:o}}return{h:n,s:r,l:c,a:o}}var f=Ye(i,.5,1,yt,t.l);if(l){var d=t.h;h=t.s;return{h:d,s:h,l:f,a:o}}var p=n,m=n>60&&n<180;if(m){var g=n>120;p=g?Ye(n,120,180,135,180):Ye(n,60,120,60,105)}return{h:p,s:r,l:f,a:o}}function wt(e,n){if(0===n.mode)return gt(e,n);var r=it(n);return dt(e,t(t({},n),{mode:0}),bt,r)}var xt,_t=.55;function Et(e){return Ye(e,205,245,205,220)}function St(e,t){var n=e.h,r=e.s,i=e.l,o=e.a,a=i>.5,s=i<.2||r<.24,l=!s&&n>205&&n<245;if(a){var c=Ye(i,.5,1,_t,t.l);if(s){var u=t.h,h=t.s;return{h:u,s:h,l:c,a:o}}var f=n;return l&&(f=Et(n)),{h:f,s:r,l:c,a:o}}if(s){var d=t.h,p=(h=t.s,Ye(i,0,.5,t.l,_t));return{h:d,s:h,l:p,a:o}}var m,g=n;return l?(g=Et(n),m=Ye(i,0,.5,t.l,Math.min(1,_t+.05))):m=Ye(i,0,.5,t.l,_t),{h:g,s:r,l:m,a:o}}function Ct(e,n){if(0===n.mode)return gt(e,n);var r=ot(n);return dt(e,t(t({},n),{mode:0}),St,r)}function kt(e,t,n){var r=e.h,i=e.s,o=e.l,a=e.a,s=o<.5,l=o<.2||i<.24,c=r,u=i;l&&(s?(c=t.h,u=t.s):(c=n.h,u=n.s));var h=Ye(o,0,1,.5,.2);return{h:c,s:u,l:h,a:a}}function Ot(e,n){if(0===n.mode)return gt(e,n);var r=ot(n),i=it(n);return dt(e,t(t({},n),{mode:0}),kt,r,i)}function Tt(e,t){return wt(e,t)}function At(e,t){return wt(e,t)}function Pt(e){var t=[];return t.push('*:not(pre, pre *, code, .far, .fa, .glyphicon, [class*="vjs-"], .fab, .fa-github, .fas, .material-icons, .icofont, .typcn, mu, [class*="mu-"], .glyphicon, .icon) {'),e.useFont&&e.fontFamily&&t.push(" font-family: "+e.fontFamily+" !important;"),e.textStroke>0&&(t.push(" -webkit-text-stroke: "+e.textStroke+"px !important;"),t.push(" text-stroke: "+e.textStroke+"px !important;")),t.push("}"),t.join("\n")}function Mt(e){var t=[];return e.mode===xt.dark&&t.push("invert(100%) hue-rotate(180deg)"),100!==e.brightness&&t.push("brightness("+e.brightness+"%)"),100!==e.contrast&&t.push("contrast("+e.contrast+"%)"),0!==e.grayscale&&t.push("grayscale("+e.grayscale+"%)"),0!==e.sepia&&t.push("sepia("+e.sepia+"%)"),0===t.length?null:t.join(" ")}function Rt(e){return e.slice(0,4).map(function(e){return e.map(function(e){return e.toFixed(3)}).join(" ")}).join(" ")}function jt(e){return Rt(tt(e))}(function(e){e[e["light"]=0]="light",e[e["dark"]=1]="dark"})(xt||(xt={}));var Lt=0,Dt=new Map,Nt=new Map;function It(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,new Promise(function(t,n){var r=++Lt;Dt.set(r,t),Nt.set(r,n),chrome.runtime.sendMessage({type:s.CS_FETCH,data:e,id:r})})]})})}chrome.runtime.onMessage.addListener(function(e){var t=e.type,n=e.data,r=e.error,i=e.id;if(t===s.BG_FETCH_RESPONSE){var o=Dt.get(i),a=Nt.get(i);Dt.delete(i),Nt.delete(i),r?a&&a(r):o&&o(n)}});var $t=function(){function e(){this.queue=[],this.timerId=null,this.frameDuration=1e3/60}return e.prototype.addToQueue=function(e){this.queue.push(e),this.startQueue()},e.prototype.stopQueue=function(){null!==this.timerId&&(cancelAnimationFrame(this.timerId),this.timerId=null),this.queue=[]},e.prototype.startQueue=function(){var e=this;this.timerId||(this.timerId=requestAnimationFrame(function(){e.timerId=null;var t,n=Date.now();while(t=e.queue.shift())if(t(),Date.now()-n>=e.frameDuration){e.startQueue();break}}))},e}(),Ft=new $t;function Bt(e){return n(this,void 0,void 0,function(){var i=this;return r(this,function(o){return[2,new Promise(function(o,a){return n(i,void 0,void 0,function(){var n,i,s,l;return r(this,function(r){switch(r.label){case 0:return e.startsWith("data:")?(n=e,[3,4]):[3,1];case 1:return r.trys.push([1,3,,4]),[4,Vt(e)];case 2:return n=r.sent(),[3,4];case 3:return i=r.sent(),a(i),[3,4];case 4:return r.trys.push([4,6,,7]),[4,Wt(n)];case 5:return s=r.sent(),Ft.addToQueue(function(){o(t({src:e,dataURL:n,width:s.naturalWidth,height:s.naturalHeight},Yt(s)))}),[3,7];case 6:return l=r.sent(),a(l),[3,7];case 7:return[2]}})})})]})})}function Vt(e){return n(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return t=new URL(e),t.origin!==location.origin?[3,2]:[4,w(e)];case 1:return[2,n.sent()];case 2:return[4,It({url:e,responseType:"data-url"})];case 3:return[2,n.sent()]}})})}function Wt(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=function(){return n("Unable to load image "+e)},r.src=e})]})})}var Ht,Ut,zt=1024;function qt(){var e=zt,t=zt;Ht=document.createElement("canvas"),Ht.width=e,Ht.height=t,Ut=Ht.getContext("2d"),Ut.imageSmoothingEnabled=!1}function Kt(){Ht=null,Ut=null}var Gt=5242880;function Yt(e){Ht||qt();var t=e.naturalWidth,n=e.naturalHeight;if(0===n||0===t)return F("logWarn(Image is empty "+e.currentSrc+")"),null;var r=t*n*4;if(r>Gt)return $("Skipped large image analyzing(Larger than 5mb in memory)"),{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1,isTooLarge:!0};var i=t*n,o=Math.min(1,Math.sqrt(zt/i)),a=Math.ceil(t*o),s=Math.ceil(n*o);Ut.clearRect(0,0,a,s),Ut.drawImage(e,0,0,t,n,0,0,a,s);var l,c,u,h,f,d,p,m,g=Ut.getImageData(0,0,a,s),v=g.data,y=.05,b=.4,w=.7,x=0,_=0,E=0;for(u=0;uw&&E++);var S=a*s,C=S-x,k=.7,O=.7,T=.1,A=48e4;return{isDark:_/C>=k,isLight:E/C>=O,isTransparent:x/S>=T,isLarge:i>=A,isTooLarge:!1}}function Xt(e,t){var n=e.dataURL,r=e.width,i=e.height,o=jt(t),a=['',"",'','',"","",'',""].join("");return"data:image/svg+xml;base64,"+btoa(a)}function Qt(){Ft&&Ft.stopQueue(),Kt()}function Zt(e,t){return Boolean(e&&e.getPropertyPriority(t))}function Jt(e,t,n,r,i,o){if(e.startsWith("--")){var a=vn(r,e,t,n,i,o);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if(t.includes("var(")){a=yn(r,e,t);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if(e.includes("color")&&"-webkit-print-color-adjust"!==e||"fill"===e||"stroke"===e||"stop-color"===e){a=un(e,t);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if("background-image"===e||"list-style-image"===e){a=mn(t,n,i,o);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if(e.includes("shadow")){a=gn(t);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}return null}function en(e,t,n){var r=[];return t||(r.push("html {"),r.push(" background-color: "+wt({r:255,g:255,b:255},e)+" !important;"),r.push("}")),r.push((t?"":"html, body, ")+(n?"input, textarea, select, button":"")+" {"),r.push(" background-color: "+wt({r:255,g:255,b:255},e)+";"),r.push("}"),r.push("html, body, "+(n?"input, textarea, select, button":"")+" {"),r.push(" border-color: "+Ot({r:76,g:76,b:76},e)+";"),r.push(" color: "+Ct({r:0,g:0,b:0},e)+";"),r.push("}"),r.push("a {"),r.push(" color: "+Ct({r:0,g:64,b:255},e)+";"),r.push("}"),r.push("table {"),r.push(" border-color: "+Ot({r:128,g:128,b:128},e)+";"),r.push("}"),r.push("::placeholder {"),r.push(" color: "+Ct({r:169,g:169,b:169},e)+";"),r.push("}"),r.push("input:-webkit-autofill,"),r.push("textarea:-webkit-autofill,"),r.push("select:-webkit-autofill {"),r.push(" background-color: "+wt({r:250,g:255,b:189},e)+" !important;"),r.push(" color: "+Ct({r:0,g:0,b:0},e)+" !important;"),r.push("}"),e.scrollbarColor&&r.push(rn(e)),e.selectionColor&&r.push(nn(e)),r.join("\n")}function tn(e){var n,r;if("auto"===e.selectionColor)n=wt({r:0,g:96,b:212},t(t({},e),{grayscale:0})),r=Ct({r:255,g:255,b:255},t(t({},e),{grayscale:0}));else{var i=Le(e.selectionColor),o=ke(i);n=e.selectionColor,r=o.l<.5?"#FFF":"#000"}return{backgroundColorSelection:n,foregroundColorSelection:r}}function nn(e){var t=[],n=tn(e),r=n.backgroundColorSelection,i=n.foregroundColorSelection;return["::selection","::-moz-selection"].forEach(function(e){t.push(e+" {"),t.push(" background-color: "+r+" !important;"),t.push(" color: "+i+" !important;"),t.push("}")}),t.join("\n")}function rn(e){var n,r,i,o,a,s,l=[];if("auto"===e.scrollbarColor)n=wt({r:241,g:241,b:241},e),r=Ct({r:96,g:96,b:96},e),i=wt({r:176,g:176,b:176},e),o=wt({r:144,g:144,b:144},e),a=wt({r:96,g:96,b:96},e),s=wt({r:255,g:255,b:255},e);else{var c=Le(e.scrollbarColor),u=ke(c),h=u.l>.5,d=function(e){return t(t({},u),{l:Xe(u.l+e,0,1)})},p=function(e){return t(t({},u),{l:Xe(u.l-e,0,1)})};n=Pe(p(.4)),r=Pe(h?p(.4):d(.4)),i=Pe(u),o=Pe(d(.1)),a=Pe(d(.2))}return l.push("::-webkit-scrollbar {"),l.push(" background-color: "+n+";"),l.push(" color: "+r+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb {"),l.push(" background-color: "+i+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb:hover {"),l.push(" background-color: "+o+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb:active {"),l.push(" background-color: "+a+";"),l.push("}"),l.push("::-webkit-scrollbar-corner {"),l.push(" background-color: "+s+";"),l.push("}"),f&&(l.push("* {"),l.push(" scrollbar-color: "+i+" "+n+";"),l.push("}")),l.join("\n")}function on(e,t){var n=t.strict,r=[];return r.push("html, body, "+(n?"body :not(iframe)":"body > :not(iframe)")+" {"),r.push(" background-color: "+wt({r:255,g:255,b:255},e)+" !important;"),r.push(" border-color: "+Ot({r:64,g:64,b:64},e)+" !important;"),r.push(" color: "+Ct({r:0,g:0,b:0},e)+" !important;"),r.push("}"),r.join("\n")}var an=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),sn=new Map;function ln(e){if(e=e.trim(),sn.has(e))return sn.get(e);var t=Le(e);return sn.set(e,t),t}function cn(e){try{return ln(e)}catch(e){return null}}function un(e,t){if(an.has(t.toLowerCase()))return t;try{var n=ln(t);return e.includes("background")?function(e){return wt(n,e)}:e.includes("border")||e.includes("outline")?function(e){return Ot(n,e)}:function(e){return Ct(n,e)}}catch(e){return F("Color parse error",e),null}}var hn=/[\-a-z]+gradient\(([^\(\)]*(\(([^\(\)]*(\(.*?\)))*[^\(\)]*\))){0,15}[^\(\)]*\)/g,fn=new Map,dn=new Map;function pn(e,t){if(!e||0===t.length)return!1;if(t.some(function(e){return"*"===e}))return!0;for(var n=e.split(/,\s*/g),r=function(e){var r=t[e];if(n.some(function(e){return e===r}))return{value:!0}},i=0;i2){$("Inverting dark image "+e.src);var u=Xt(e,t(t({},n),{sepia:Xe(n.sepia+10,0,100)}));r='url("'+u+'")'}else if(o&&!a&&1===n.mode)if(s)r="none";else{$("Dimming light image "+e.src);var h=Xt(e,n);r='url("'+h+'")'}else if(0===n.mode&&o&&!s){$("Applying filter to image "+e.src);var f=Xt(e,t(t({},n),{brightness:Xe(n.brightness-10,5,200),sepia:Xe(n.sepia+10,0,100)}));r='url("'+f+'")'}else r=null;return r},m=[],g=0;return h.forEach(function(t,n){var r=t.match,i=t.type,o=t.index,a=g,s=o+r.length;g=s,m.push(function(){return e.substring(a,o)}),m.push("url"===i?d(r):f(r)),n===h.length-1&&m.push(function(){return e.substring(s)})}),function(e){var t=m.filter(Boolean).map(function(t){return t(e)});return t.some(function(e){return e instanceof Promise})?Promise.all(t).then(function(e){return e.join("")}):t.join("")}}catch(t){return F("Unable to parse gradient "+e,t),null}}function gn(e){try{var t=0,n=Ze(/(^|\s)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,e,2),r=n.map(function(r,i){var o=t,a=e.indexOf(r,t),s=a+r.length;t=s;var l=cn(r);return l?function(t){return""+e.substring(o,a)+Tt(l,t)+(i===n.length-1?e.substring(s):"")}:function(){return e.substring(o,s)}});return function(e){return r.map(function(t){return t(e)}).join("")}}catch(t){return F("Unable to parse shadow "+e,t),null}}function vn(e,t,n,r,i,o){return e.getModifierForVariable({varName:t,sourceValue:n,rule:r,ignoredImgSelectors:i,isCancelled:o})}function yn(e,t,n){return e.getModifierForVarDependant(t,n)}function bn(){sn.clear(),ct(),fn.clear(),Qt(),dn.clear()}var wn=1,xn=2,_n=4,En=8,Sn=function(){function e(){this.varTypes=new Map,this.rulesQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}return e.prototype.clear=function(){this.varTypes.clear(),this.rulesQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()},e.prototype.isVarType=function(e,t){return this.varTypes.has(e)&&(this.varTypes.get(e)&t)>0},e.prototype.addRulesForMatching=function(e){this.rulesQueue.push(e)},e.prototype.matchVariablesAndDependants=function(){var e=this;this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.rulesQueue.forEach(function(t){return e.collectVariables(t)}),this.rulesQueue.forEach(function(t){return e.collectVarDependants(t)}),this.rulesQueue.splice(0),this.collectRootVarDependants(),this.varRefs.forEach(function(t,n){t.forEach(function(t){e.varTypes.has(n)&&e.resolveVariableType(t,e.varTypes.get(n))})}),this.unknownColorVars.forEach(function(t){e.unknownBgVars.has(t)?(e.unknownColorVars.delete(t),e.unknownBgVars.delete(t),e.resolveVariableType(t,wn)):e.isVarType(t,wn|xn|_n)?e.unknownColorVars.delete(t):e.undefinedVars.add(t)}),this.unknownBgVars.forEach(function(t){var n=null!=e.findVarRef(t,function(t){return e.unknownColorVars.has(t)||e.isVarType(t,xn|_n)});n?e.itarateVarRefs(t,function(t){e.resolveVariableType(t,wn)}):e.isVarType(t,wn|En)?e.unknownBgVars.delete(t):e.undefinedVars.add(t)}),this.changedTypeVars.forEach(function(t){e.typeChangeSubscriptions.has(t)&&e.typeChangeSubscriptions.get(t).forEach(function(e){e()})}),this.changedTypeVars.clear()},e.prototype.getModifierForVariable=function(e){var t=this;return function(n){var r=e.varName,i=e.sourceValue,o=e.rule,a=e.ignoredImgSelectors,s=e.isCancelled,l=function(){var e=[],l=function(o,a,s){if(t.isVarType(r,o)){var l,c=a(r);if(Fn(i))if(Bn(i)){var u=Un(i,t.unstableVarValues);u||(u=o===wn?"#ffffff":"#000000"),l=s(u,n)}else l=Pn(i,function(e){return a(e)},function(e){return s(e,n)});else l=s(i,n);e.push({property:c,value:l})}};if(l(wn,Ln,Vn),l(xn,Dn,Wn),l(_n,Nn,Hn),t.isVarType(r,En)){var c=In(r),u=i;Fn(i)&&(u=Pn(i,function(e){return Ln(e)},function(e){return Vn(e,n)}));var h=mn(u,o,a,s);u="function"===typeof h?h(n):h,e.push({property:c,value:u})}return e},c=new Set,u=function(e){var n=function(){var t=l();e(t)};c.add(n),t.subscribeForVarTypeChange(r,n)},h=function(){c.forEach(function(e){t.unsubscribeFromVariableTypeChanges(r,e)})};return{declarations:l(),onTypeChange:{addListener:u,removeListeners:h}}}},e.prototype.getModifierForVarDependant=function(e,t){var n=this;if(t.match(/^\s*(rgb|hsl)a?\(/)){var r=e.startsWith("background"),i="color"===e;return function(e){var o=Un(t,n.unstableVarValues);o||(o=r?"#ffffff":"#000000");var a=r?Vn:i?Wn:Hn;return a(o,e)}}if("background-color"===e)return function(e){return Pn(t,function(e){return Ln(e)},function(t){return Vn(t,e)})};if("color"===e)return function(e){return Pn(t,function(e){return Dn(e)},function(t){return Wn(t,e)})};if("background"===e||"background-image"===e||"box-shadow"===e)return function(e){var r=new Set,i=function(){return Pn(t,function(e){return n.isVarType(e,wn)?Ln(e):n.isVarType(e,En)?In(e):(r.add(e),e)},function(t){return Vn(t,e)})},o=i();return r.size>0?new Promise(function(e){var t=r.values().next().value,o=function(){n.unsubscribeFromVariableTypeChanges(t,o);var r=i();e(r)};n.subscribeForVarTypeChange(t,o)}):o};if(e.startsWith("border")||e.startsWith("outline")){if(t.endsWith(")")){var o=t.match(/((rgb|hsl)a?)\(/);if(o){var a=o.index;return function(e){var r=Un(t,n.unstableVarValues);if(!r)return t;var i=t.substring(0,a),o=t.substring(a,t.length),s=Un(o,n.unstableVarValues),l=Hn(s,e);return""+i+l}}}return function(e){return Pn(t,function(e){return Nn(e)},function(t){return Wn(t,e)})}}return null},e.prototype.subscribeForVarTypeChange=function(e,t){this.typeChangeSubscriptions.has(e)||this.typeChangeSubscriptions.set(e,new Set);var n=this.typeChangeSubscriptions.get(e);n.has(t)||n.add(t)},e.prototype.unsubscribeFromVariableTypeChanges=function(e,t){this.typeChangeSubscriptions.has(e)&&this.typeChangeSubscriptions.get(e).delete(t)},e.prototype.collectVariables=function(e){var t=this;Mn(e,function(e,n){t.inspectVariable(e,n)})},e.prototype.collectRootVariables=function(){var e=this;me(document.documentElement.style,function(t,n){$n(t)&&e.inspectVariable(t,n)})},e.prototype.inspectVariable=function(e,t){if(this.unstableVarValues.set(e,t),Fn(t)&&Bn(t)&&(this.unknownColorVars.add(e),this.definedVars.add(e)),!this.definedVars.has(e)){this.definedVars.add(e);var n=cn(t);n?this.unknownColorVars.add(e):(t.includes("url(")||t.includes("linear-gradient(")||t.includes("radial-gradient("))&&this.resolveVariableType(e,En)}},e.prototype.resolveVariableType=function(e,t){var n=this.initialVarTypes.get(e)||0,r=this.varTypes.get(e)||0,i=r|t;this.varTypes.set(e,i),(i!==n||this.undefinedVars.has(e))&&(this.changedTypeVars.add(e),this.undefinedVars.delete(e)),this.unknownColorVars.delete(e),this.unknownBgVars.delete(e)},e.prototype.collectVarDependants=function(e){var t=this;Rn(e,function(e,n){t.inspectVerDependant(e,n)})},e.prototype.collectRootVarDependants=function(){var e=this;me(document.documentElement.style,function(t,n){Fn(n)&&e.inspectVerDependant(t,n)})},e.prototype.inspectVerDependant=function(e,t){var n=this;$n(e)?this.iterateVarDeps(t,function(t){n.varRefs.has(e)||n.varRefs.set(e,new Set),n.varRefs.get(e).add(t)}):"background-color"===e||"box-shadow"===e?this.iterateVarDeps(t,function(e){return n.resolveVariableType(e,wn)}):"color"===e?this.iterateVarDeps(t,function(e){return n.resolveVariableType(e,xn)}):e.startsWith("border")||e.startsWith("outline")?this.iterateVarDeps(t,function(e){return n.resolveVariableType(e,_n)}):"background"!==e&&"background-image"!==e||this.iterateVarDeps(t,function(e){if(!n.isVarType(e,wn|En)){var t=null!=n.findVarRef(e,function(e){return n.unknownColorVars.has(e)||n.isVarType(e,xn|_n)});n.itarateVarRefs(e,function(e){t?n.resolveVariableType(e,wn):n.unknownBgVars.add(e)})}})},e.prototype.iterateVarDeps=function(e,t){var n=new Set;jn(e,function(e){return n.add(e)}),n.forEach(function(e){return t(e)})},e.prototype.findVarRef=function(e,t,n){var r,o;if(void 0===n&&(n=new Set),n.has(e))return null;n.add(e);var a=t(e);if(a)return e;var s=this.varRefs.get(e);if(!s||0===s.size)return null;try{for(var l=i(s),c=l.next();!c.done;c=l.next()){var u=c.value,h=this.findVarRef(u,t,n);if(h)return h}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return null},e.prototype.itarateVarRefs=function(e,t){this.findVarRef(e,function(e){return t(e),!1})},e.prototype.setOnRootVariableChange=function(e){this.onRootVariableDefined=e},e.prototype.putRootVars=function(e,t){var n,r,a=this,s=e.sheet;s.cssRules.length>0&&s.deleteRule(0);var l=new Map;me(document.documentElement.style,function(e,n){$n(e)&&(a.isVarType(e,wn)&&l.set(Ln(e),Vn(n,t)),a.isVarType(e,xn)&&l.set(Dn(e),Wn(n,t)),a.isVarType(e,_n)&&l.set(Nn(e),Hn(n,t)),a.subscribeForVarTypeChange(e,a.onRootVariableDefined))});var c=[];c.push(":root {");try{for(var u=i(l),h=u.next();!h.done;h=u.next()){var f=o(h.value,2),d=f[0],p=f[1];c.push(" "+d+": "+p+";")}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}c.push("}");var m=c.join("\n");s.insertRule(m)},e}(),Cn=new Sn;function kn(e,t){void 0===t&&(t=0);var n=e.indexOf("var(",t);if(n>=0){var r=et(e,n+3);return r?{start:n,end:r.end}:null}}function On(e){var t,n=[],r=0;while(t=kn(e,r)){var i=t.start,o=t.end;n.push({start:i,end:o,value:e.substring(i,o)}),r=t.end+1}return n}function Tn(e,t){var n=On(e),r=n.length;if(0===r)return e;var i=e.length,o=n.map(function(e){return t(e.value)}),a=[];a.push(e.substring(0,n[0].start));for(var s=0;s=0?(t=e.substring(4,r).trim(),n=e.substring(r+1,e.length-1).trim()):(t=e.substring(4,e.length-1).trim(),n=""),{name:t,fallback:n}}function Pn(e,t,n){var r=function(e){var r,i=An(e),o=i.name,a=i.fallback,s=t(o);return a?(r=Fn(a)?Pn(a,t,n):n?n(a):a,"var("+s+", "+r+")"):"var("+s+")"};return Tn(e,r)}function Mn(e,t){fe(e,function(e){e.style&&me(e.style,function(e,n){e.startsWith("--")&&t(e,n)})})}function Rn(e,t){fe(e,function(e){e.style&&me(e.style,function(e,n){Fn(n)&&t(e,n)})})}function jn(e,t){Pn(e,function(e){return t(e),e})}function Ln(e){return"--darkreader-bg"+e}function Dn(e){return"--darkreader-text"+e}function Nn(e){return"--darkreader-border"+e}function In(e){return"--darkreader-bgimg"+e}function $n(e){return e.startsWith("--")}function Fn(e){return e.includes("var(")}function Bn(e){return e.match(/^\s*(rgb|hsl)a?\(/)}function Vn(e,t){var n=cn(e);return n?wt(n,t):e}function Wn(e,t){var n=cn(e);return n?Ct(n,t):e}function Hn(e,t){var n=cn(e);return n?Ot(n,t):e}function Un(e,t,n){void 0===n&&(n=new Set);var r=!1,i=function(e){var i=An(e),o=i.name,a=i.fallback;if(n.has(o))return r=!0,null;n.add(o);var s=t.get(o)||a,l=null;return s&&(l=Fn(s)?Un(s,t,n):s),l||(r=!0,null)},o=Tn(e,i);return r?null:o}var zn={"background-color":{customProp:"--darkreader-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkreader-inline-bgcolor"},"background-image":{customProp:"--darkreader-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkreader-inline-bgimage"},"border-color":{customProp:"--darkreader-inline-border",cssProp:"border-color",dataAttr:"data-darkreader-inline-border"},"border-bottom-color":{customProp:"--darkreader-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkreader-inline-border-bottom"},"border-left-color":{customProp:"--darkreader-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkreader-inline-border-left"},"border-right-color":{customProp:"--darkreader-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkreader-inline-border-right"},"border-top-color":{customProp:"--darkreader-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkreader-inline-border-top"},"box-shadow":{customProp:"--darkreader-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkreader-inline-boxshadow"},color:{customProp:"--darkreader-inline-color",cssProp:"color",dataAttr:"data-darkreader-inline-color"},fill:{customProp:"--darkreader-inline-fill",cssProp:"fill",dataAttr:"data-darkreader-inline-fill"},stroke:{customProp:"--darkreader-inline-stroke",cssProp:"stroke",dataAttr:"data-darkreader-inline-stroke"},"outline-color":{customProp:"--darkreader-inline-outline",cssProp:"outline-color",dataAttr:"data-darkreader-inline-outline"},"stop-color":{customProp:"--darkreader-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-darkreader-inline-stopcolor"}},qn=Object.values(zn),Kn={};qn.forEach(function(e){var t=e.cssProp,n=e.customProp;return Kn[n]=t});var Gn=["style","fill","stop-color","stroke","bgcolor","color"],Yn=Gn.map(function(e){return"["+e+"]"}).join(", ");function Xn(){return qn.map(function(e){var t=e.dataAttr,n=e.customProp,r=e.cssProp;return["["+t+"] {"," "+r+": var("+n+") !important;","}"].join("\n")}).join("\n")}function Qn(e){var t=[];return e instanceof Element&&e.matches(Yn)&&t.push(e),(e instanceof Element||g&&e instanceof ShadowRoot||e instanceof Document)&&N(t,e.querySelectorAll(Yn)),t}var Zn=new Map,Jn=new Map;function er(e,t){tr(document,e,t),z(document.documentElement,function(n){tr(n.shadowRoot,e,t)})}function tr(e,t,n){Zn.has(e)&&(Zn.get(e).disconnect(),Jn.get(e).disconnect());var r=new WeakSet;function i(e){Qn(e).forEach(function(e){r.has(e)||(r.add(e),t(e))}),z(e,function(i){r.has(e)||(r.add(e),n(i.shadowRoot),tr(i.shadowRoot,t,n))})}var s=se(e,{onMinorMutations:function(e){var t=e.additions;t.forEach(function(e){return i(e)})},onHugeMutations:function(){i(e)}});Zn.set(e,s);var l=0,c=null,u=W({seconds:10}),h=W({seconds:2}),f=50,d=[],p=null,m=B(function(e){e.forEach(function(e){Gn.includes(e.attributeName)&&t(e.target)})}),g=new MutationObserver(function(e){if(p)d.push.apply(d,a([],o(e)));else{l++;var t=Date.now();if(null==c)c=t;else if(l>=f){if(t-c0&&ar(e,n))o.forEach(function(t){e.removeAttribute(zn[t].dataAttr)});else{if(e.hasAttribute("bgcolor")){var a=e.getAttribute("bgcolor");(a.match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),u("background-color","background-color",a)}if(e.hasAttribute("color")&&"mask-icon"!==e.rel){a=e.getAttribute("color");(a.match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),u("color","color",a)}if(e instanceof SVGElement){if(e.hasAttribute("fill")){var s=32,l=e.getAttribute("fill");if("none"!==l)if(e instanceof SVGTextElement)u("fill","color",l);else{var c=function(){var t=e.getBoundingClientRect(),n=t.width,r=t.height,i=n>s||r>s;u("fill",i?"background-color":"color",l)};X()?c():Z(c)}}e.hasAttribute("stop-color")&&u("stop-color","background-color",e.getAttribute("stop-color"))}if(e.hasAttribute("stroke")){a=e.getAttribute("stroke");u("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",a)}e.style&&me(e.style,function(t,n){if("background-image"!==t||!n.includes("url"))if(zn.hasOwnProperty(t))u(t,t,n);else{var r=Kn[t];!r||e.style.getPropertyValue(r)||e.hasAttribute(r)||e.style.setProperty(t,"")}}),e.style&&e instanceof SVGTextElement&&e.style.fill&&u("fill","color",e.style.getPropertyValue("fill")),D(o,function(t){e.removeAttribute(zn[t].dataAttr)}),rr.set(e,or(e,t))}}function u(n,i,a){var s=zn[n],l=s.customProp,c=s.dataAttr,u=Jt(i,a,{},Cn,r,null);if(u){var h=u.value;"function"===typeof h&&(h=h(t)),e.style.setProperty(l,h),e.hasAttribute(c)||e.setAttribute(c,""),o.delete(n)}}}var lr="theme-color",cr='meta[name="'+lr+'"]',ur=null,hr=null;function fr(e,t){ur=ur||e.content;try{var n=Le(ur);e.content=wt(n,t)}catch(e){F(e)}}function dr(e){var t=document.querySelector(cr);t?fr(t,e):(hr&&hr.disconnect(),hr=new MutationObserver(function(t){e:for(var n=0;n0){var s=e.parentRule;a={selector:e.selectorText,declarations:o,parentRule:s},w.push(a)}n.set(r,a)}else w.push(n.get(r))},function(){s=!0}),v.forEach(function(e){t.delete(e),n.delete(e)}),i=y,d||g||b){e++;var x=new Map,_=new Map,E=0,S=0,C={rule:null,rules:[],isGroup:!0},k=new WeakMap;r.forEach(function(e){return e()}),r.clear(),w.filter(function(e){return e}).forEach(function(t){var n=t.selector,i=t.declarations,s=t.parentRule,l=A(s),c={selector:n,declarations:[],isGroup:!1},u=c.declarations;function f(t,n,r,i){var o=++E,a={property:t,value:null,important:r,asyncKey:o,sourceValue:i};u.push(a);var s=e;n.then(function(t){t&&!m()&&s===e&&(a.value=t,vr.add(function(){m()||s!==e||M(o)}))})}function d(t,n,i,s){var l=n,c=l.declarations,h=l.onTypeChange,d=++S,p=e,g=u.length,v=[];if(0===c.length){var y={property:t,value:s,important:i,sourceValue:s,varKey:d};u.push(y),v=[y]}c.forEach(function(e){if(e.value instanceof Promise)f(e.property,e.value,i,s);else{var t={property:e.property,value:e.value,important:i,sourceValue:s,varKey:d};u.push(t),v.push(t)}}),h.addListener(function(t){if(!m()&&p===e){var n=t.map(function(e){return{property:e.property,value:e.value,important:i,sourceValue:s,varKey:d}}),r=u.indexOf(v[0],g);u.splice.apply(u,a([r,v.length],o(n))),v=n,R(d)}}),r.add(function(){return h.removeListeners()})}l.rules.push(c),i.forEach(function(e){var t=e.property,n=e.value,r=e.important,i=e.sourceValue;if("function"===typeof n){var o=n(h);o instanceof Promise?f(t,o,r,i):t.startsWith("--")?d(t,o,r,i):u.push({property:t,value:o,important:r,sourceValue:i})}else u.push({property:t,value:n,important:r,sourceValue:i})})});var O=p();P()}function T(e,t,n){var r=n.selector,i=n.declarations,o=function(e){var t=e.property,n=e.value,r=e.important,i=e.sourceValue;return t+": "+(null==n?i:n)+(r?" !important":"")+";"},a=r+" { "+i.map(o).join(" ")+" }";e.insertRule(a,t)}function A(e){if(null==e)return C;if(k.has(e))return k.get(e);var t={rule:e,rules:[],isGroup:!0};k.set(e,t);var n=A(e.parentRule);return n.rules.push(t),t}function P(){function e(e,t){var n=e.rule;if(n instanceof CSSMediaRule){var r=n.media,i=t.cssRules.length;return t.insertRule("@media "+r.mediaText+" {}",i),t.cssRules[i]}return t}function t(n,r,i){n.rules.forEach(function(n){if(n.isGroup){var o=e(n,r);t(n,o,i)}else i(n,r)})}t(C,O,function(e,t){var n=t.cssRules.length;e.declarations.forEach(function(r){var i=r.asyncKey,o=r.varKey;null!=i&&x.set(i,{rule:e,target:t,index:n}),null!=o&&_.set(o,{rule:e,target:t,index:n})}),T(t,n,e)})}function M(e){var t=x.get(e),n=t.rule,r=t.target,i=t.index;r.deleteRule(i),T(r,i,n),x.delete(e)}function R(e){var t=_.get(e),n=t.rule,r=t.target,i=t.index;r.deleteRule(i),T(r,i,n)}}return{modifySheet:u,shouldRebuildStyle:c}}var br='style, link[rel*="stylesheet" i]:not([disabled])';function wr(e){return(e instanceof HTMLStyleElement||e instanceof SVGStyleElement||e instanceof HTMLLinkElement&&e.rel&&e.rel.toLowerCase().includes("stylesheet")&&!e.disabled)&&!e.classList.contains("darkreader")&&"print"!==e.media.toLowerCase()&&!e.classList.contains("stylus")}function xr(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=!0),wr(e)?t.push(e):(e instanceof Element||g&&e instanceof ShadowRoot||e===document)&&(D(e.querySelectorAll(br),function(e){return xr(e,t,!1)}),n&&z(e,function(e){return xr(e.shadowRoot,t,!1)})),t}var _r=new WeakSet,Er=new WeakSet,Sr=!1;document.addEventListener("__darkreader__inlineScriptsAllowed",function(){Sr=!0});var Cr=0,kr=new Map;function Or(){kr.clear()}function Tr(e,t){var i=t.update,a=t.loadingStart,s=t.loadingEnd,l=[],c=e;while((c=c.nextElementSibling)&&c.matches(".darkreader"))l.push(c);var f=l.find(function(e){return e.matches(".darkreader--cors")&&!Er.has(e)})||null,p=l.find(function(e){return e.matches(".darkreader--sync")&&!_r.has(e)})||null,m=null,g=null,v=!1,y=!0,b=yr(),w=new MutationObserver(function(){i()}),x={attributes:!0,childList:!0,subtree:!0,characterData:!0};function _(){return e instanceof HTMLStyleElement&&e.textContent.trim().match(ve)}function E(e){var t=!1;if(e){var n=void 0;e:for(var r=0,i=e.length;r=0;t--)e.deleteRule(t);return g?g.run():g=U(p,"prev-sibling",function(){R=!0,o()}),p.sheet}function o(){var o=R;R=!1,b.modifySheet({prepareSheet:r,sourceCSSRules:n,theme:e,ignoreImageAnalysis:t,force:o,isAsyncCancelled:function(){return v}}),y=0===p.sheet.cssRules.length,b.shouldRebuildStyle()&&Z(function(){return i()})}n&&(v=!1,o())}function L(){try{return null==e.sheet?[null,null]:[e.sheet.cssRules,null]}catch(e){return[null,e]}}function D(e){return e&&e.message&&e.message.includes("loading")}function N(){var e=o(L(),2),t=e[0],n=e[1];return n?(F(n),null):t}function I(){X(),h||Sr&&e.sheet||q()}var B=null,V=null;function W(){var e=N();return e?e.length:null}function z(){return W()!==B}function q(){B=W(),K();var t=function(){z()&&(B=W(),i()),Sr&&e.sheet?K():V=requestAnimationFrame(t)};t()}function K(){cancelAnimationFrame(V)}var G=!1;function Y(){function e(){G=!1,v||i()}Sr=!0,K(),G||(G=!0,"function"===typeof queueMicrotask?queueMicrotask(e):requestAnimationFrame(e))}function X(){e.addEventListener("__darkreader__updateSheet",Y)}function Q(){e.removeEventListener("__darkreader__updateSheet",Y)}function J(){Q(),K()}function ee(){w.disconnect(),v=!0,m&&m.stop(),g&&g.stop(),J()}function te(){if(ee(),H(f),H(p),s(),kr.has(A)){var e=kr.get(A);kr.delete(A),e&&e()}}function ne(){w.observe(e,x),e instanceof HTMLStyleElement&&I()}var re=10,ie=0;function oe(){p&&(ie++,ie>re?F("Style sheet was moved multiple times",e):(F("Restore style",p,e),C(),m&&m.skip(),g&&g.skip(),y||(R=!0,i())))}return{details:M,render:j,pause:ee,destroy:te,watch:ne,restore:oe}}function Ar(e,t){return n(this,void 0,void 0,function(){return r(this,function(n){return[2,new Promise(function(n,r){var i=function(){e.removeEventListener("load",o),e.removeEventListener("error",a),kr.delete(t)},o=function(){i(),$("Linkelement "+t+" has been loaded"),n()},a=function(){i(),r("Linkelement "+t+" couldn't be loaded. "+e.href)};kr.set(t,function(){i(),r()}),e.addEventListener("load",o),e.addEventListener("error",a),e.href||a()})]})})}function Pr(e){return ye(e.substring(7).trim().replace(/;$/,""))}function Mr(e){return n(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,t.sent().text()];case 2:return[2,t.sent()];case 3:return[4,It({url:e,responseType:"text",mimeType:"text/css",origin:window.location.origin})];case 4:return[2,t.sent()]}})})}function Rr(e,t,o){return void 0===o&&(o=new Map),n(this,void 0,void 0,function(){var n,a,s,l,c,u,h,f,d,p,m;return r(this,function(r){switch(r.label){case 0:e=_e(e),e=Se(e),e=we(e,t),n=Ze(ve,e),r.label=1;case 1:r.trys.push([1,10,11,12]),a=i(n),s=a.next(),r.label=2;case 2:return s.done?[3,9]:(l=s.value,c=Pr(l),u=he(t,c),h=void 0,o.has(u)?(h=o.get(u),[3,7]):[3,3]);case 3:return r.trys.push([3,6,,7]),[4,Mr(u)];case 4:return h=r.sent(),o.set(u,h),[4,Rr(h,be(u),o)];case 5:return h=r.sent(),[3,7];case 6:return f=r.sent(),F(f),h="",[3,7];case 7:e=e.split(l).join(h),r.label=8;case 8:return s=a.next(),[3,2];case 9:return[3,12];case 10:return d=r.sent(),p={error:d},[3,12];case 11:try{s&&!s.done&&(m=a.return)&&m.call(a)}finally{if(p)throw p.error}return[7];case 12:return e=e.trim(),[2,e]}})})}function jr(e,t){if(!t)return null;var n=document.createElement("style");return n.classList.add("darkreader"),n.classList.add("darkreader--cors"),n.media="screen",n.textContent=t,e.parentNode.insertBefore(n,e.nextSibling),n.sheet.disabled=!0,Er.add(n),n}var Lr,Dr,Nr=[],Ir=new Map;function $r(e){y&&D(e.querySelectorAll(":not(:defined)"),function(e){var t=e.tagName.toLowerCase();if(!t.includes("-")){var n=e.getAttribute("is");if(!n)return;t=n}Ir.has(t)||(Ir.set(t,new Set),Wr(t).then(function(){if(Dr){var e=Ir.get(t);Ir.delete(t),Dr(Array.from(e))}})),Ir.get(t).add(e)})}var Fr=!1;document.addEventListener("__darkreader__inlineScriptsAllowed",function(){Fr=!0});var Br=new Map;function Vr(e){if(Fr=!0,Br.has(e.detail.tag)){var t=Br.get(e.detail.tag);t()}}function Wr(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,new Promise(function(t){if(window.customElements&&"function"===typeof customElements.whenDefined)customElements.whenDefined(e).then(t);else if(Fr)Br.set(e,t),document.dispatchEvent(new CustomEvent("__darkreader__addUndefinedResolver",{detail:{tag:e}}));else{var n=function(){var r=Ir.get(e);r&&r.size>0&&(r.values().next().value.matches(":defined")?t():requestAnimationFrame(n))};requestAnimationFrame(n)}})]})})}function Hr(e){Dr=e}function Ur(){Dr=null,Ir.clear(),document.removeEventListener("__darkreader__isDefined",Vr)}function zr(e,t,n){Kr();var r=new Set(e),i=new WeakMap,o=new WeakMap;function a(e){i.set(e,e.previousElementSibling),o.set(e,e.nextElementSibling)}function s(e){i.delete(e),o.delete(e)}function l(e){return e.previousElementSibling!==i.get(e)||e.nextElementSibling!==o.get(e)}function c(e){var n=e.createdStyles,i=e.removedStyles,o=e.movedStyles;n.forEach(function(e){return a(e)}),o.forEach(function(e){return a(e)}),i.forEach(function(e){return s(e)}),n.forEach(function(e){return r.add(e)}),i.forEach(function(e){return r.delete(e)}),n.size+i.size+o.size>0&&t({created:Array.from(n),removed:Array.from(i),moved:Array.from(o),updated:[]})}function u(e){var t=e.additions,n=e.moves,r=e.deletions,i=new Set,o=new Set,a=new Set;t.forEach(function(e){return xr(e).forEach(function(e){return i.add(e)})}),r.forEach(function(e){return xr(e).forEach(function(e){return o.add(e)})}),n.forEach(function(e){return xr(e).forEach(function(e){return a.add(e)})}),c({createdStyles:i,removedStyles:o,movedStyles:a}),t.forEach(function(e){z(e,p),$r(e)})}function h(e){var t=new Set(xr(e)),n=new Set,i=new Set,o=new Set;t.forEach(function(e){r.has(e)||n.add(e)}),r.forEach(function(e){t.has(e)||i.add(e)}),t.forEach(function(e){n.has(e)||i.has(e)||!l(e)||o.add(e)}),c({createdStyles:n,removedStyles:i,movedStyles:o}),z(e,p),$r(e)}function f(e){var n=new Set,r=new Set;e.forEach(function(e){var t=e.target;t.isConnected&&(wr(t)?n.add(t):t instanceof HTMLLinkElement&&t.disabled&&r.add(t))}),n.size+r.size>0&&t({updated:Array.from(n),created:[],removed:Array.from(r),moved:[]})}function d(e){var t=se(e,{onMinorMutations:u,onHugeMutations:h}),n=new MutationObserver(f);n.observe(e,{attributes:!0,attributeFilter:["rel","disabled","media"],subtree:!0}),Nr.push(t,n),Lr.add(e)}function p(e){var t=e.shadowRoot;null==t||Lr.has(t)||(d(t),n(t))}e.forEach(a),d(document),z(document.documentElement,p),Hr(function(e){var n=[];e.forEach(function(e){return N(n,xr(e.shadowRoot))}),t({created:n,updated:[],removed:[],moved:[]}),e.forEach(function(e){var t=e.shadowRoot;null!=t&&(p(e),z(t,p),$r(t))})}),document.addEventListener("__darkreader__isDefined",Vr),$r(document)}function qr(){Nr.forEach(function(e){return e.disconnect()}),Nr.splice(0,Nr.length),Lr=new WeakSet}function Kr(){qr(),Ur()}function Gr(e){return(e<16?"0":"")+e.toString(16)}function Yr(){if("randomUUID"in crypto){var e=crypto.randomUUID();return e.substring(0,8)+e.substring(9,13)+e.substring(14,18)+e.substring(19,23)+e.substring(24)}return Array.from(crypto.getRandomValues(new Uint8Array(16))).map(function(e){return Gr(e)}).join("")}var Xr=new WeakMap,Qr=new WeakSet;function Zr(e){var t=!1;function n(t,n){var r=a([],o(e.adoptedStyleSheets)),i=r.indexOf(t),s=r.indexOf(n);i!==s-1&&(s>=0&&r.splice(s,1),r.splice(i+1,0,n),e.adoptedStyleSheets=r)}function r(){t=!0;var n=a([],o(e.adoptedStyleSheets));e.adoptedStyleSheets.forEach(function(e){if(Qr.has(e)){var t=n.indexOf(e);t>=0&&n.splice(t,1),Xr.delete(e),Qr.delete(e)}}),e.adoptedStyleSheets=n}function i(r,i){e.adoptedStyleSheets.forEach(function(e){if(!Qr.has(e)){var o=e.rules,a=new CSSStyleSheet,s=yr();s.modifySheet({prepareSheet:l,sourceCSSRules:o,theme:r,ignoreImageAnalysis:i,force:!1,isAsyncCancelled:function(){return t}})}function l(){for(var t=a.cssRules.length-1;t>=0;t--)a.deleteRule(t);return n(e,a),Xr.set(e,a),Qr.add(a),a}})}return{render:i,destroy:r}}function Jr(){document.dispatchEvent(new CustomEvent("__darkreader__inlineScriptsAllowed"));var e=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"addRule"),t=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"insertRule"),n=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"deleteRule"),r=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"removeRule"),i=location.hostname.endsWith("pushbullet.com")||location.hostname.endsWith("ilsole24ore.com")||location.hostname.endsWith("allegro.pl"),s=i?Object.getOwnPropertyDescriptor(Document.prototype,"styleSheets"):null,l=location.hostname.endsWith("baidu.com"),c=l?Object.getOwnPropertyDescriptor(Element.prototype,"getElementsByTagName"):null,u=function(){Object.defineProperty(CSSStyleSheet.prototype,"addRule",e),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",t),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",n),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",r),document.removeEventListener("__darkreader__cleanUp",u),document.removeEventListener("__darkreader__addUndefinedResolver",h),i&&Object.defineProperty(Document.prototype,"styleSheets",s),l&&Object.defineProperty(Element.prototype,"getElementsByTagName",c)},h=function(e){customElements.whenDefined(e.detail.tag).then(function(){document.dispatchEvent(new CustomEvent("__darkreader__isDefined",{detail:{tag:e.detail.tag}}))})};document.addEventListener("__darkreader__cleanUp",u),document.addEventListener("__darkreader__addUndefinedResolver",h);var f=new Event("__darkreader__updateSheet");function d(t,n,r){return e.value.call(this,t,n,r),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f),-1}function p(e,n){var r=t.value.call(this,e,n);return this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f),r}function m(e){n.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f)}function g(e){r.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f)}function v(){var e=s.get.call(this),t=a([],o(e)).filter(function(e){return!e.ownerNode.classList.contains("darkreader")});return Object.setPrototypeOf(t,StyleSheetList.prototype)}function y(e){var t=this,n=function(){var n=c.value.call(t,e);return"style"===e&&(n=Object.setPrototypeOf(a([],o(n)).filter(function(e){return!e.classList.contains("darkreader")}),NodeList.prototype)),n},r=n(),i={get:function(e,t){return n()[t]}};return r=new Proxy(r,i),r}Object.defineProperty(CSSStyleSheet.prototype,"addRule",Object.assign({},e,{value:d})),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",Object.assign({},t,{value:p})),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",Object.assign({},n,{value:m})),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",Object.assign({},r,{value:g})),i&&Object.defineProperty(Document.prototype,"styleSheets",Object.assign({},s,{get:v})),l&&Object.defineProperty(Element.prototype,"getElementsByTagName",Object.assign({},c,{value:y}))}var ei=Yr(),ti=new Map,ni=[],ri=null,ii=null,oi=null,ai=null,si=null;function li(e,t){void 0===t&&(t=document.head||document);var n=t.querySelector("."+e);return n||(n=document.createElement("style"),n.classList.add("darkreader"),n.classList.add(e),n.media="screen",n.textContent=""),n}function ci(e,t){void 0===t&&(t=document.head||document);var n=t.querySelector("."+e);return n||(n=document.createElement("script"),n.classList.add("darkreader"),n.classList.add(e)),n}var ui=new Map;function hi(e,t){ui.has(t)&&ui.get(t).stop(),ui.set(t,U(e,"parent"))}function fi(){D(ui.values(),function(e){return e.stop()}),ui.clear()}function di(){var e=li("darkreader--fallback",document);e.textContent=on(ri,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),hi(e,"fallback");var n=li("darkreader--user-agent");n.textContent=en(ri,oi,ri.styleSystemControls),document.head.insertBefore(n,e.nextSibling),hi(n,"user-agent");var r=li("darkreader--text");ri.useFont||ri.textStroke>0?r.textContent=Pt(ri):r.textContent="",document.head.insertBefore(r,e.nextSibling),hi(r,"text");var i=li("darkreader--invert");ii&&Array.isArray(ii.invert)&&ii.invert.length>0?i.textContent=[ii.invert.join(", ")+" {"," filter: "+Mt(t(t({},ri),{contrast:0===ri.mode?ri.contrast:Xe(ri.contrast-10,0,100)}))+" !important;","}"].join("\n"):i.textContent="",document.head.insertBefore(i,r.nextSibling),hi(i,"invert");var o=li("darkreader--inline");o.textContent=Xn(),document.head.insertBefore(o,i.nextSibling),hi(o,"inline");var a=li("darkreader--override");a.textContent=ii&&ii.css?gi(ii.css):"",document.head.appendChild(a),hi(a,"override");var s=li("darkreader--variables"),l=tn(ri),c=ri.darkSchemeBackgroundColor,u=ri.darkSchemeTextColor,h=ri.lightSchemeBackgroundColor,f=ri.lightSchemeTextColor,d=ri.mode,p=0===d?h:c,m=0===d?f:u;p=wt(Le(p),ri),m=Ct(Le(m),ri),s.textContent=[":root {"," --darkreader-neutral-background: "+p+";"," --darkreader-neutral-text: "+m+";"," --darkreader-selection-background: "+l.backgroundColorSelection+";"," --darkreader-selection-text: "+l.foregroundColorSelection+";","}"].join("\n"),document.head.insertBefore(s,o.nextSibling),hi(s,"variables");var g=li("darkreader--root-vars");document.head.insertBefore(g,s.nextSibling);var v=ci("darkreader--proxy"),y=new Blob(["("+Jr+")()"],{type:"text/javascript"}),b=URL.createObjectURL(y);v.src=b,v.textContent="",document.head.insertBefore(v,g.nextSibling),URL.revokeObjectURL(b),v.remove()}var pi=new Set;function mi(e){var n=li("darkreader--inline",e);n.textContent=Xn(),e.insertBefore(n,e.firstChild);var r=li("darkreader--override",e);r.textContent=ii&&ii.css?gi(ii.css):"",e.insertBefore(r,n.nextSibling);var i=li("darkreader--invert",e);ii&&Array.isArray(ii.invert)&&ii.invert.length>0?i.textContent=[ii.invert.join(", ")+" {"," filter: "+Mt(t(t({},ri),{contrast:0===ri.mode?ri.contrast:Xe(ri.contrast-10,0,100)}))+" !important;","}"].join("\n"):i.textContent="",e.insertBefore(i,r.nextSibling),pi.add(e)}function gi(e){return e.replace(/\${(.+?)}/g,function(e,t){try{var n=ln(t);return mt(n,ri)}catch(e){return F(e),t}})}function vi(){var e=document.querySelector(".darkreader--fallback");e&&(e.textContent="")}function yi(){Si();var e=xr(document),t=e.filter(function(e){return!ti.has(e)}).map(function(e){return xi(e)});t.map(function(e){return e.details()}).filter(function(e){return e&&e.rules.length>0}).forEach(function(e){Cn.addRulesForMatching(e.rules)}),Cn.matchVariablesAndDependants(),Cn.setOnRootVariableChange(function(){Cn.putRootVars(document.head.querySelector(".darkreader--root-vars"),ri)}),Cn.putRootVars(document.head.querySelector(".darkreader--root-vars"),ri),ti.forEach(function(e){return e.render(ri,ai)}),0===wi.size&&vi(),t.forEach(function(e){return e.watch()});var n=I(document.querySelectorAll(Yn));z(document.documentElement,function(e){mi(e.shadowRoot);var t=e.shadowRoot.querySelectorAll(Yn);t.length>0&&N(n,t)}),n.forEach(function(e){return sr(e,ri,si,ai)}),Mi(document)}var bi=0,wi=new Set;function xi(e){var t=++bi;function n(){if(!q()||!Oi){wi.add(t),$("Current amount of styles loading: "+wi.size);var e=document.querySelector(".darkreader--fallback");e.textContent||(e.textContent=on(ri,{strict:!1}))}}function r(){wi.delete(t),$("Removed loadingStyle "+t+", now awaiting: "+wi.size),$("To-do to be loaded",wi),0===wi.size&&q()&&vi()}function i(){var e=o.details();e&&(Cn.addRulesForMatching(e.rules),Cn.matchVariablesAndDependants(),o.render(ri,ai))}$("New manager for element, with loadingStyleID "+t,e);var o=Tr(e,{update:i,loadingStart:n,loadingEnd:r});return ti.set(e,o),o}function _i(e){var t=ti.get(e);t&&(t.destroy(),ti.delete(e))}var Ei=B(function(e){ti.forEach(function(e){return e.render(ri,ai)}),ni.forEach(function(e){return e.render(ri,ai)}),e&&e()}),Si=function(){Ei.cancel()};function Ci(){0!==wi.size?F("DOM is ready, but still have styles being loaded.",wi):vi()}var ki=null,Oi=!document.hidden;function Ti(e){var t=Boolean(ki);ki=function(){document.hidden||(Ai(),e(),Oi=!0)},t||document.addEventListener("visibilitychange",ki)}function Ai(){document.removeEventListener("visibilitychange",ki),ki=null}function Pi(){function e(){yi(),Ri()}di(),document.hidden?Ti(e):e(),dr(ri)}function Mi(e){if(Array.isArray(e.adoptedStyleSheets)&&e.adoptedStyleSheets.length>0){var t=Zr(e);ni.push(t),t.render(ri,ai)}}function Ri(){var e=Array.from(ti.keys());zr(e,function(e){var t=e.created,n=e.updated,r=e.removed,i=e.moved,o=r,a=t.concat(n).concat(i).filter(function(e){return!ti.has(e)}),s=i.filter(function(e){return ti.has(e)});$("Styles to be removed:",o),o.forEach(function(e){return _i(e)});var l=a.map(function(e){return xi(e)});l.map(function(e){return e.details()}).filter(function(e){return e&&e.rules.length>0}).forEach(function(e){Cn.addRulesForMatching(e.rules)}),Cn.matchVariablesAndDependants(),l.forEach(function(e){return e.render(ri,ai)}),l.forEach(function(e){return e.watch()}),s.forEach(function(e){return ti.get(e).restore()})},function(e){mi(e),Mi(e)}),er(function(e){if(sr(e,ri,si,ai),e===document.documentElement){var t=e.getAttribute("style");t.includes("--")&&(Cn.matchVariablesAndDependants(),Cn.putRootVars(document.head.querySelector(".darkreader--root-vars"),ri))}},function(e){mi(e);var t=e.querySelectorAll(Yn);t.length>0&&D(t,function(e){return sr(e,ri,si,ai)})}),G(Ci)}function ji(){ti.forEach(function(e){return e.pause()}),fi(),Kr(),nr(),Y(Ci),J()}function Li(){var e=document.createElement("meta");e.name="darkreader",e.content=ei,document.head.appendChild(e)}function Di(){var e=document.querySelector('meta[name="darkreader"]');return e?e.content!==ei:(Li(),!1)}function Ni(e,t,n){if(ri=e,ii=t,ii?(ai=Array.isArray(ii.ignoreImageAnalysis)?ii.ignoreImageAnalysis:[],si=Array.isArray(ii.ignoreInlineStyle)?ii.ignoreInlineStyle:[]):(ai=[],si=[]),oi=n,document.head){if(Di())return;document.documentElement.setAttribute("data-darkreader-mode","dynamic"),document.documentElement.setAttribute("data-darkreader-scheme",ri.mode?"dark":"dimmed"),Pi()}else{if(!f){var r=li("darkreader--fallback");document.documentElement.appendChild(r),r.textContent=on(ri,{strict:!0})}var i=new MutationObserver(function(){if(document.head){if(i.disconnect(),Di())return void $i();Pi()}});i.observe(document,{childList:!0,subtree:!0})}}function Ii(){document.dispatchEvent(new CustomEvent("__darkreader__cleanUp")),H(document.head.querySelector(".darkreader--proxy"))}function $i(){document.documentElement.removeAttribute("data-darkreader-mode"),document.documentElement.removeAttribute("data-darkreader-scheme"),Fi(),H(document.querySelector(".darkreader--fallback")),document.head&&(pr(),H(document.head.querySelector(".darkreader--user-agent")),H(document.head.querySelector(".darkreader--text")),H(document.head.querySelector(".darkreader--invert")),H(document.head.querySelector(".darkreader--inline")),H(document.head.querySelector(".darkreader--override")),H(document.head.querySelector(".darkreader--variables")),H(document.head.querySelector(".darkreader--root-vars")),H(document.head.querySelector('meta[name="darkreader"]')),Ii()),pi.forEach(function(e){H(e.querySelector(".darkreader--inline")),H(e.querySelector(".darkreader--override"))}),pi.clear(),D(ti.keys(),function(e){return _i(e)}),wi.clear(),Or(),D(document.querySelectorAll(".darkreader"),H),ni.forEach(function(e){e.destroy()}),ni.splice(0)}function Fi(){Cn.clear(),le.clear(),Ai(),Si(),ji(),bn()}var Bi=/url\(\"(blob\:.*?)\"\)/g;function Vi(e){return n(this,void 0,void 0,function(){var t,n;return r(this,function(r){switch(r.label){case 0:return t=[],Ze(Bi,e,1).forEach(function(e){var n=w(e);t.push(n)}),[4,Promise.all(t)];case 1:return n=r.sent(),[2,e.replace(Bi,function(){return'url("'+n.shift()+'")'})]}})})}var Wi='/*\n _______\n / \\\n .==. .==.\n (( ))==(( ))\n / "==" "=="\\\n /____|| || ||___\\\n ________ ____ ________ ___ ___\n | ___ \\ / \\ | ___ \\ | | / /\n | | \\ \\ / /\\ \\ | | \\ \\| |_/ /\n | | ) / /__\\ \\ | |__/ /| ___ \\\n | |__/ / ______ \\| ____ \\| | \\ \\\n_______|_______/__/ ____ \\__\\__|___\\__\\__|___\\__\\____\n| ___ \\ | ____/ / \\ | ___ \\ | ____| ___ \\\n| | \\ \\| |___ / /\\ \\ | | \\ \\| |___| | \\ \\\n| |__/ /| ____/ /__\\ \\ | | ) | ____| |__/ /\n| ____ \\| |__/ ______ \\| |__/ /| |___| ____ \\\n|__| \\__\\____/__/ \\__\\_______/ |______|__| \\__\\\n https://darkreader.org\n*/\n\n/*! Dark reader generated CSS | Licensed under MIT https://github.com/darkreader/darkreader/blob/master/LICENSE */\n';function Hi(){return n(this,void 0,void 0,function(){function e(e,n){var r=document.querySelector(e);r&&r.textContent&&(t.push("/* "+n+" */"),t.push(r.textContent),t.push(""))}var t,n,i,o,a;return r(this,function(r){switch(r.label){case 0:return t=[Wi],e(".darkreader--fallback","Fallback Style"),e(".darkreader--user-agent","User-Agent Style"),e(".darkreader--text","Text Style"),e(".darkreader--invert","Invert Style"),e(".darkreader--variables","Variables Style"),n=[],document.querySelectorAll(".darkreader--sync").forEach(function(e){D(e.sheet.cssRules,function(e){e&&e.cssText&&n.push(e.cssText)})}),n.length?(i=Je(n.join("\n")),t.push("/* Modified CSS */"),a=(o=t).push,[4,Vi(i)]):[3,2];case 1:a.apply(o,[r.sent()]),t.push(""),r.label=2;case 2:return e(".darkreader--override","Override Style"),[2,t.join("\n")]}})})}var Ui=!1,zi=function(){try{return window.self!==window.top}catch(e){return console.warn(e),!0}}();function qi(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=t(t({},j),e);if(r.engine!==M.dynamicTheme)throw new Error("Theme engine is not supported.");Ni(r,n,zi),Ui=!0}function Ki(){return Ui}function Gi(){$i(),Ui=!1}var Yi=matchMedia("(prefers-color-scheme: dark)"),Xi={themeOptions:null,fixes:null};function Qi(){Yi.matches?qi(Xi.themeOptions,Xi.fixes):Gi()}function Zi(e,t){void 0===e&&(e={}),void 0===t&&(t=null),e?(Xi={themeOptions:e,fixes:t},Qi(),v?Yi.addEventListener("change",Qi):Yi.addListener(Qi)):(v?Yi.removeEventListener("change",Qi):Yi.removeListener(Qi),Gi())}function Ji(){return n(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Hi()];case 1:return[2,e.sent()]}})})}var eo=S;e.auto=Zi,e.disable=Gi,e.enable=qi,e.exportGeneratedCSS=Ji,e.isEnabled=Ki,e.setFetchMethod=eo,Object.defineProperty(e,"__esModule",{value:!0})})},nPnh:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return a});var r=Math.round;function i(e,t,n){if(t){var i=t.x1,o=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=o,e.y1=s,e.y2=l;var c=n&&n.lineWidth;return c?(r(2*i)===r(2*o)&&(e.x1=e.x2=a(i,c,!0)),r(2*s)===r(2*l)&&(e.y1=e.y2=a(s,c,!0)),e):e}}function o(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,s=t.height;e.x=r,e.y=i,e.width=o,e.height=s;var l=n&&n.lineWidth;return l?(e.x=a(r,l,!0),e.y=a(i,l,!0),e.width=Math.max(a(r+o,l,!1)-e.x,0===o?0:1),e.height=Math.max(a(i+s,l,!1)-e.y,0===s?0:1),e):e}}function a(e,t,n){if(!t)return e;var i=r(2*e);return(i+r(t))%2===0?i/2:(i+(n?1:-1))/2}},nWMQ:function(e,t,n){"use strict";var r=n("c0Oy"),i=n("WGNW"),o=n("rKIl"),a=n("zNw+"),s=n("+y51"),l=n("4o36"),c=n("YEVI"),u=n("u8+u"),h=n("wUWy"),f=n("cQyX"),d=n("lvAo"),p=n("QSs8");e.exports=function(e,t,n,m,g,v){var y=r[e],b=y,w=g?"set":"add",x=b&&b.prototype,_={},E=function(e){var t=x[e];o(x,e,"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||x.forEach&&!h(function(){(new b).entries().next()}))){var S=new b,C=S[w](v?{}:-0,1)!=S,k=h(function(){S.has(1)}),O=f(function(e){new b(e)}),T=!v&&h(function(){var e=new b,t=5;while(t--)e[w](t,t);return!e.has(-0)});O||(b=t(function(t,n){c(t,b,e);var r=p(new y,t,b);return void 0!=n&&l(n,g,r[w],r),r}),b.prototype=x,x.constructor=b),(k||T)&&(E("delete"),E("has"),g&&E("get")),(T||C)&&E(w),v&&x.clear&&delete x.clear}else b=m.getConstructor(t,e,g,w),a(b.prototype,n),s.NEED=!0;return d(b,e),_[e]=b,i(i.G+i.W+i.F*(b!=y),_),v||m.setStrong(b,e,g),b}},nYLq:function(e,t,n){var r=n("AUWw"),i=n("OsVd");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},"nwK/":function(e,t,n){var r=n("V5/1").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("8Z/V")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},o0o1:function(e,t,n){e.exports=n("wOl0")},o175:function(e,t,n){n("Jaki")("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},o8NH:function(e,t,n){var r=n("Y7ZC");r(r.S+r.F,"Object",{assign:n("kwZ1")})},oF12:function(e,t,n){var r=n("u8+u"),i=n("2we2"),o=n("gL7N")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},oOsv:function(e,t,n){"use strict";t["default"]=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,n,r,i){this.message=e,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"===typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}function n(e){var n,r=arguments.length>1?arguments[1]:{},i={},o={start:Pe},a=Pe,s=function(e){return{type:"messageFormatPattern",elements:e,location:Ce()}},l=function(e){var t,n,r,i,o,a="";for(t=0,r=e.length;t_e&&(_e=be,Ee=[]),Ee.push(e))}function Ae(e,n,r,i){function o(e){var t=1;e.sort(function(e,t){return e.descriptiont.description?1:0});while(t1?a.slice(0,-1).join(", ")+" or "+a[e.length-1]:a[0],i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}return null!==n&&o(n),new t(null!==e?e:a(n,r),n,r,i)}function Pe(){var e;return e=Me(),e}function Me(){var e,t,n;e=be,t=[],n=Re();while(n!==i)t.push(n),n=Re();return t!==i&&(we=e,t=s(t)),e=t,e}function Re(){var e;return e=Le(),e===i&&(e=Ne()),e}function je(){var t,n,r,o,a,s;if(t=be,n=[],r=be,o=Ke(),o!==i?(a=Ze(),a!==i?(s=Ke(),s!==i?(o=[o,a,s],r=o):(be=r,r=i)):(be=r,r=i)):(be=r,r=i),r!==i)while(r!==i)n.push(r),r=be,o=Ke(),o!==i?(a=Ze(),a!==i?(s=Ke(),s!==i?(o=[o,a,s],r=o):(be=r,r=i)):(be=r,r=i)):(be=r,r=i);else n=i;return n!==i&&(we=t,n=l(n)),t=n,t===i&&(t=be,n=qe(),t=n!==i?e.substring(t,be):n),t}function Le(){var e,t;return e=be,t=je(),t!==i&&(we=e,t=c(t)),e=t,e}function De(){var t,n,r;if(t=Xe(),t===i){if(t=be,n=[],u.test(e.charAt(be))?(r=e.charAt(be),be++):(r=i,0===Se&&Te(h)),r!==i)while(r!==i)n.push(r),u.test(e.charAt(be))?(r=e.charAt(be),be++):(r=i,0===Se&&Te(h));else n=i;t=n!==i?e.substring(t,be):n}return t}function Ne(){var t,n,r,o,a,s,l,c,u;return t=be,123===e.charCodeAt(be)?(n=f,be++):(n=i,0===Se&&Te(d)),n!==i?(r=Ke(),r!==i?(o=De(),o!==i?(a=Ke(),a!==i?(s=be,44===e.charCodeAt(be)?(l=p,be++):(l=i,0===Se&&Te(m)),l!==i?(c=Ke(),c!==i?(u=Ie(),u!==i?(l=[l,c,u],s=l):(be=s,s=i)):(be=s,s=i)):(be=s,s=i),s===i&&(s=null),s!==i?(l=Ke(),l!==i?(125===e.charCodeAt(be)?(c=g,be++):(c=i,0===Se&&Te(v)),c!==i?(we=t,n=y(o,s),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Ie(){var e;return e=$e(),e===i&&(e=Fe(),e===i&&(e=Be(),e===i&&(e=Ve()))),e}function $e(){var t,n,r,o,a,s,l;return t=be,e.substr(be,6)===b?(n=b,be+=6):(n=i,0===Se&&Te(w)),n===i&&(e.substr(be,4)===x?(n=x,be+=4):(n=i,0===Se&&Te(_)),n===i&&(e.substr(be,4)===E?(n=E,be+=4):(n=i,0===Se&&Te(S)))),n!==i?(r=Ke(),r!==i?(o=be,44===e.charCodeAt(be)?(a=p,be++):(a=i,0===Se&&Te(m)),a!==i?(s=Ke(),s!==i?(l=Ze(),l!==i?(a=[a,s,l],o=a):(be=o,o=i)):(be=o,o=i)):(be=o,o=i),o===i&&(o=null),o!==i?(we=t,n=C(n,o),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Fe(){var t,n,r,o,a,s;return t=be,e.substr(be,6)===k?(n=k,be+=6):(n=i,0===Se&&Te(O)),n!==i?(r=Ke(),r!==i?(44===e.charCodeAt(be)?(o=p,be++):(o=i,0===Se&&Te(m)),o!==i?(a=Ke(),a!==i?(s=ze(),s!==i?(we=t,n=T(s),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Be(){var t,n,r,o,a,s;return t=be,e.substr(be,13)===A?(n=A,be+=13):(n=i,0===Se&&Te(P)),n!==i?(r=Ke(),r!==i?(44===e.charCodeAt(be)?(o=p,be++):(o=i,0===Se&&Te(m)),o!==i?(a=Ke(),a!==i?(s=ze(),s!==i?(we=t,n=M(s),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Ve(){var t,n,r,o,a,s,l;if(t=be,e.substr(be,6)===R?(n=R,be+=6):(n=i,0===Se&&Te(j)),n!==i)if(r=Ke(),r!==i)if(44===e.charCodeAt(be)?(o=p,be++):(o=i,0===Se&&Te(m)),o!==i)if(a=Ke(),a!==i){if(s=[],l=He(),l!==i)while(l!==i)s.push(l),l=He();else s=i;s!==i?(we=t,n=L(s),t=n):(be=t,t=i)}else be=t,t=i;else be=t,t=i;else be=t,t=i;else be=t,t=i;return t}function We(){var t,n,r,o;return t=be,n=be,61===e.charCodeAt(be)?(r=D,be++):(r=i,0===Se&&Te(N)),r!==i?(o=Xe(),o!==i?(r=[r,o],n=r):(be=n,n=i)):(be=n,n=i),t=n!==i?e.substring(t,be):n,t===i&&(t=Ze()),t}function He(){var t,n,r,o,a,s,l,c,u;return t=be,n=Ke(),n!==i?(r=We(),r!==i?(o=Ke(),o!==i?(123===e.charCodeAt(be)?(a=f,be++):(a=i,0===Se&&Te(d)),a!==i?(s=Ke(),s!==i?(l=Me(),l!==i?(c=Ke(),c!==i?(125===e.charCodeAt(be)?(u=g,be++):(u=i,0===Se&&Te(v)),u!==i?(we=t,n=I(r,l),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Ue(){var t,n,r,o;return t=be,e.substr(be,7)===$?(n=$,be+=7):(n=i,0===Se&&Te(F)),n!==i?(r=Ke(),r!==i?(o=Xe(),o!==i?(we=t,n=B(o),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function ze(){var e,t,n,r,o;if(e=be,t=Ue(),t===i&&(t=null),t!==i)if(n=Ke(),n!==i){if(r=[],o=He(),o!==i)while(o!==i)r.push(o),o=He();else r=i;r!==i?(we=e,t=V(t,r),e=t):(be=e,e=i)}else be=e,e=i;else be=e,e=i;return e}function qe(){var t,n;if(Se++,t=[],H.test(e.charAt(be))?(n=e.charAt(be),be++):(n=i,0===Se&&Te(U)),n!==i)while(n!==i)t.push(n),H.test(e.charAt(be))?(n=e.charAt(be),be++):(n=i,0===Se&&Te(U));else t=i;return Se--,t===i&&(n=i,0===Se&&Te(W)),t}function Ke(){var t,n,r;Se++,t=be,n=[],r=qe();while(r!==i)n.push(r),r=qe();return t=n!==i?e.substring(t,be):n,Se--,t===i&&(n=i,0===Se&&Te(z)),t}function Ge(){var t;return q.test(e.charAt(be))?(t=e.charAt(be),be++):(t=i,0===Se&&Te(K)),t}function Ye(){var t;return G.test(e.charAt(be))?(t=e.charAt(be),be++):(t=i,0===Se&&Te(Y)),t}function Xe(){var t,n,r,o,a,s;if(t=be,48===e.charCodeAt(be)?(n=X,be++):(n=i,0===Se&&Te(Q)),n===i){if(n=be,r=be,Z.test(e.charAt(be))?(o=e.charAt(be),be++):(o=i,0===Se&&Te(J)),o!==i){a=[],s=Ge();while(s!==i)a.push(s),s=Ge();a!==i?(o=[o,a],r=o):(be=r,r=i)}else be=r,r=i;n=r!==i?e.substring(n,be):r}return n!==i&&(we=t,n=ee(n)),t=n,t}function Qe(){var t,n,r,o,a,s,l,c;return te.test(e.charAt(be))?(t=e.charAt(be),be++):(t=i,0===Se&&Te(ne)),t===i&&(t=be,e.substr(be,2)===re?(n=re,be+=2):(n=i,0===Se&&Te(ie)),n!==i&&(we=t,n=oe()),t=n,t===i&&(t=be,e.substr(be,2)===ae?(n=ae,be+=2):(n=i,0===Se&&Te(se)),n!==i&&(we=t,n=le()),t=n,t===i&&(t=be,e.substr(be,2)===ce?(n=ce,be+=2):(n=i,0===Se&&Te(ue)),n!==i&&(we=t,n=he()),t=n,t===i&&(t=be,e.substr(be,2)===fe?(n=fe,be+=2):(n=i,0===Se&&Te(de)),n!==i&&(we=t,n=pe()),t=n,t===i&&(t=be,e.substr(be,2)===me?(n=me,be+=2):(n=i,0===Se&&Te(ge)),n!==i?(r=be,o=be,a=Ye(),a!==i?(s=Ye(),s!==i?(l=Ye(),l!==i?(c=Ye(),c!==i?(a=[a,s,l,c],o=a):(be=o,o=i)):(be=o,o=i)):(be=o,o=i)):(be=o,o=i),r=o!==i?e.substring(r,be):o,r!==i?(we=t,n=ve(r),t=n):(be=t,t=i)):(be=t,t=i)))))),t}function Ze(){var e,t,n;if(e=be,t=[],n=Qe(),n!==i)while(n!==i)t.push(n),n=Qe();else t=i;return t!==i&&(we=e,t=ye(t)),e=t,e}if(n=a(),n!==i&&be===e.length)return n;throw n!==i&&be";t.style.display="none",n("MvwC").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),c=e.F;while(r--)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},obDU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!o&&Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!r.call(e,t)||"value"in n)&&(e[t]=n.value)});t.defineProperty=a;var s=Object.create||function(e,t){var n,i;function o(){}for(i in o.prototype=e,n=new o,t)r.call(t,i)&&a(n,i,t[i]);return n};t.objCreate=s;var l=Array.prototype.indexOf||function(e,t){var n=this;if(!n.length)return-1;for(var r=t||0,i=n.length;r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function l(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)})}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};b=[],w=e.validKeys||[]}function _(e){Object.keys(e).forEach(function(e){(0,r.default)(w.concat("default").indexOf(e)>-1,"Invalid key ".concat(e," from plugin"))}),b.push(e)}function E(e){return(0,r.default)(w.indexOf(e)>-1,"Invalid key ".concat(e)),b.filter(function(t){return e in t}).map(function(t){return t[e]})}function S(){for(var e=arguments.length,t=new Array(e),n=0;nthis.getOrderInfo()},this.props.children),g.a.createElement(x["a"],{visible:this.state.visible,title:"\u8ba2\u5355\u4fe1\u606f",onCancel:()=>this.onShow(),footer:!1},this.state.user.email?g.a.createElement("div",null,g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u90ae\u7bb1"),g.a.createElement(S["a"],{span:18},g.a.createElement("a",{onClick:()=>this.jumpUserFilter("email","\u6a21\u7cca",this.state.user.email),href:"javascript:void(0);"},this.state.user.email))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u5355\u53f7"),g.a.createElement(S["a"],{span:18},this.state.order.trade_no)),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u5355\u5468\u671f"),g.a.createElement(S["a"],{span:18},y["a"].periodText[this.state.order.period])),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u5355\u72b6\u6001"),g.a.createElement(S["a"],{span:18},y["a"].orderStatusText[this.state.order.status])),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u9605\u8ba1\u5212"),g.a.createElement(S["a"],{span:18},null===(e=t.find(e=>e.id===this.state.order.plan_id))||void 0===e?void 0:e.name)),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u56de\u8c03\u5355\u53f7"),g.a.createElement(S["a"],{span:18},this.state.order.callback_no?this.state.order.callback_no:"-")),g.a.createElement(_["a"],null),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u652f\u4ed8\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.total_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f59\u989d\u652f\u4ed8"),g.a.createElement(S["a"],{span:18},(this.state.order.balance_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f18\u60e0\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.discount_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u9000\u56de\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.refund_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u6298\u62b5\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.surplus_amount/100).toFixed(2))),g.a.createElement(_["a"],null),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u521b\u5efa\u65f6\u95f4"),g.a.createElement(S["a"],{span:18},w()(1e3*this.state.order.created_at).format("YYYY-MM-DD HH:mm:ss"))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u66f4\u65b0\u65f6\u95f4"),g.a.createElement(S["a"],{span:18},w()(1e3*this.state.order.updated_at).format("YYYY-MM-DD HH:mm:ss"))),this.state.order.invite_user_id&&3===this.state.order.status?g.a.createElement("div",null,g.a.createElement(_["a"],null),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u9080\u8bf7\u4eba"),g.a.createElement(S["a"],{span:18},g.a.createElement(f["a"],{title:"\u67e5\u770bTA\u9080\u8bf7\u7684\u4eba"},g.a.createElement("a",{onClick:()=>this.jumpUserFilter("invite_by_email","\u6a21\u7cca",this.state.invite_user.email),href:"javascript:void(0);"},this.state.invite_user.email)))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f63\u91d1\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.commission_balance/100).toFixed(2))),this.state.order.actual_commission_balance&&g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u5b9e\u9645\u53d1\u653e"),g.a.createElement(S["a"],{span:18},(this.state.order.actual_commission_balance/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f63\u91d1\u72b6\u6001"),g.a.createElement(S["a"],{span:18},y["a"].commissionStatusText[this.state.order.commission_status]))):""):g.a.createElement(d["a"],{type:"loading",style:{fontSize:24,color:"#415A94"}})))}}var L=Object(R["c"])(e=>{var t=e.plan;return{plan:t}})(j),D=n("mCd/"),N=n("yiO6"),I=n("hVla"),$=n("v32e");class F extends g.a.Component{constructor(e){super(e),this.state={}}componentWillUnmount(){this.props.dispatch({type:"order/empty"}),this.props.dispatch({type:"order/setState",payload:{filter:[]}})}componentDidMount(){this.props.dispatch({type:"order/fetch"}),this.props.dispatch({type:"plan/fetch"})}update(e,t,n){this.props.dispatch({type:"order/update",tradeNo:e,key:t,value:n})}tableOnChange(e){this.props.dispatch({type:"order/changeTable",pagination:e})}render(){var e=this.props.order,t=e.orders,n=e.fetchLoading,r=e.pagination,a=e.filter,m=[{title:"# \u8ba2\u5355\u53f7",dataIndex:"trade_no",key:"trade_no",render:(e,t)=>{return g.a.createElement(L,{orderId:t.id},g.a.createElement("a",{href:"javascript:void(0);"},e.substr(0,3),"...",e.substr(-3)))}},{title:"\u7c7b\u578b",dataIndex:"type",key:"type",render:e=>{var t={1:"\u65b0\u8d2d",2:"\u7eed\u8d39",3:"\u53d8\u66f4",4:"\u6d41\u91cf\u5305"};return t[e]}},{title:"\u8ba2\u9605\u8ba1\u5212",dataIndex:"plan_name",key:"plan_name"},{title:"\u5468\u671f",dataIndex:"period",key:"period",align:"center",render:(e,t)=>{return g.a.createElement(p["a"],null,y["a"].periodText[t.period])}},{title:"\u652f\u4ed8\u91d1\u989d",dataIndex:"total_amount",key:"total_amount",align:"right",render:e=>{return(e/100).toFixed(2)}},{title:g.a.createElement("span",null,g.a.createElement(f["a"],{placement:"top",title:"\u6807\u8bb0\u4e3a[\u5df2\u652f\u4ed8]\u540e\u5c06\u4f1a\u7531\u7cfb\u7edf\u8fdb\u884c\u5f00\u901a\u540e\u5e76\u5b8c\u6210"},"\u8ba2\u5355\u72b6\u6001 ",g.a.createElement(d["a"],{type:"question-circle"}))),dataIndex:"status",key:"status",render:(e,t)=>{var n=["error","processing","default","success","default"];return g.a.createElement("div",null,g.a.createElement(c["a"],{disabled:0!==e,trigger:["click"],overlay:g.a.createElement(h["a"],null,g.a.createElement(h["a"].Item,{key:"1",onClick:e=>{this.props.dispatch({type:"order/paid",tradeNo:t.trade_no})}},"\u5df2\u652f\u4ed8"),g.a.createElement(h["a"].Item,{key:"2",onClick:e=>{this.props.dispatch({type:"order/cancel",tradeNo:t.trade_no})}},"\u53d6\u6d88"))},g.a.createElement("div",null,g.a.createElement(u["a"],{status:n[e]}),g.a.createElement("span",null,y["a"].orderStatusText[e]," "),0===e&&g.a.createElement("a",{href:"javascript:void(0);"},"\u6807\u8bb0\u4e3a ",g.a.createElement(d["a"],{type:"caret-down"})))))}},{title:"\u4f63\u91d1\u91d1\u989d",dataIndex:"commission_balance",key:"commission_balance",align:"right",render:(e,t)=>{return 0===t.status||2===t.status?"-":e?(e/100).toFixed(2):"-"}},{title:g.a.createElement("span",null,"\u4f63\u91d1\u72b6\u6001 ",g.a.createElement(f["a"],{placement:"top",title:"\u6807\u8bb0\u4e3a[\u6709\u6548]\u540e\u5c06\u4f1a\u7531\u7cfb\u7edf\u5904\u7406\u540e\u53d1\u653e\u5230\u7528\u6237\u5e76\u5b8c\u6210"},g.a.createElement(d["a"],{type:"question-circle"}))),dataIndex:"commission_status",key:"commission_status",render:(e,t)=>{if(0===t.status||2===t.status)return"-";if(!t.commission_balance)return"-";var n=["default","processing","success","error"];return 2===t.commission_status?g.a.createElement("div",null,g.a.createElement(u["a"],{status:n[e]}),g.a.createElement("span",null,y["a"].commissionStatusText[e]," ")):g.a.createElement("div",null,g.a.createElement(c["a"],{trigger:["click"],overlay:g.a.createElement(h["a"],null,g.a.createElement(h["a"].Item,{key:"0",disabled:0===e,onClick:e=>{this.update(t.trade_no,"commission_status",e.key)}},"\u5f85\u786e\u8ba4"),g.a.createElement(h["a"].Item,{key:"1",disabled:1===e,onClick:e=>{this.update(t.trade_no,"commission_status",e.key)}},"\u6709\u6548"),g.a.createElement(h["a"].Item,{key:"3",disabled:3===e,onClick:e=>{this.update(t.trade_no,"commission_status",e.key)}},"\u65e0\u6548"))},g.a.createElement("div",null,g.a.createElement(u["a"],{status:n[e]}),g.a.createElement("span",null,y["a"].commissionStatusText[e]," "),g.a.createElement("a",{href:"javascript:void(0);"},"\u6807\u8bb0\u4e3a ",g.a.createElement(d["a"],{type:"caret-down"})))))}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"created_at",key:"created_at",align:"right",render:e=>{return w()(1e3*e).format("YYYY/MM/DD HH:mm")}}];return g.a.createElement(v["a"],i()({},this.props,{title:"\u8ba2\u5355\u7ba1\u7406"}),g.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),g.a.createElement($["a"],{loading:n},g.a.createElement("div",{className:"block block-rounded"},g.a.createElement("div",{className:"bg-white"},g.a.createElement("div",{style:{padding:15}},g.a.createElement(N["a"],null,g.a.createElement(I["a"],{value:a,onOk:e=>this.props.dispatch({type:"order/filter",filter:e}),keys:[{key:"trade_no",title:"\u8ba2\u5355\u53f7",condition:["\u6a21\u7cca","="]},{key:"status",title:"\u8ba2\u5355\u72b6\u6001",type:"select",condition:["="],options:[{key:"\u672a\u652f\u4ed8",value:0},{key:"\u5df2\u652f\u4ed8",value:1},{key:"\u5df2\u53d6\u6d88",value:2},{key:"\u5df2\u5b8c\u6210",value:3}]},{key:"commission_status",title:"\u4f63\u91d1\u72b6\u6001",type:"select",condition:["="],options:[{key:"\u5f85\u786e\u8ba4",value:0},{key:"\u53d1\u653e\u4e2d",value:1},{key:"\u5df2\u53d1\u653e",value:2},{key:"\u65e0\u6548",value:3}]},{key:"user_id",title:"\u7528\u6237ID",condition:["="]},{key:"invite_user_id",title:"\u9080\u8bf7\u4ebaID",condition:["=","!="]},{key:"callback_no",title:"\u56de\u8c03\u5355\u53f7",condition:["\u6a21\u7cca"]}]},g.a.createElement(l["a"],{type:a.length>0?"primary":""},g.a.createElement(d["a"],{type:"filter"})," \u8fc7\u6ee4\u5668"))),g.a.createElement(D["a"],null,g.a.createElement(l["a"],{style:{marginLeft:10}},g.a.createElement(d["a"],{type:"plus"})," \u6dfb\u52a0\u8ba2\u5355"))),g.a.createElement(o["a"],{tableLayout:"auto",dataSource:t,pagination:s()({},r,{size:"small"}),columns:m,scroll:{x:1050},onChange:e=>this.tableOnChange(e)})))))}}t["default"]=Object(R["c"])(e=>{var t=e.order;return{order:t}})(F)},q97H:function(e,t,n){"use strict";var r=n("330p");n("WGNW")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},qDJ8:function(e,t,n){"use strict";e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},qIgq:function(e,t,n){var r=n("Wz2H"),i=n("IuST"),o=n("198K");function a(e,t){return r(e)||i(e,t)||o()}e.exports=a},qT12:function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type,e){case h:case f:case a:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof,e){case u:case d:case v:case g:case c:return e;default:return t}}case o:return t}}}function E(e){return _(e)===f}t.AsyncMode=h,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||_(e)===h},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===l||e===s||e===p||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===w||e.$$typeof===x||e.$$typeof===y)},t.typeOf=_},qfHW:function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var o="undefined"!==typeof e.ArrayBuffer,a=o&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"===typeof e}t.arraybuffer=t.fetch||o&&i("arraybuffer"),t.msstream=!t.fetch&&a&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n("yLpj"))},qqou:function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r);if("undefined"!==typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}var a=function(e,t,n){var r=e;while(r){var i=r===n||r===document.body;if(i||1===r.nodeType&&r.matches(t)){i&&(r=null);break}r=r.parentNode}return r},s=function(e){var t=e;do{var n=window.getComputedStyle(t),r=n.overflow;if(("auto"===r||"scroll"===r)&&t&&t.nodeType&&(t.offsetWidth""===t||!e.matches(t)).indexOf(e)},c="tr",u={TOP:1,BOTTOM:3},h="px",f="position:fixed;z-index:9999;height:0;margin-top:-1px;border-bottom:dashed 2px rgba(0,0,0,.3);display:none;";class d extends r["Component"]{constructor(e){super(e),this.onMouseDown=this.onMouseDown.bind(this),this.onDragStart=this.onDragStart.bind(this),this.onDragEnter=this.onDragEnter.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.autoScroll=this.autoScroll.bind(this),this.state={fromIndex:-1,toIndex:-1},this.scrollElement=null,this.scrollTimerId=-1,this.direction=u.BOTTOM}componentWillUnmount(){this.dragLine&&this.dragLine.parentNode&&(this.dragLine.parentNode.removeChild(this.dragLine),this.dragLine=null,this.cacheDragTarget=null)}onMouseDown(e){var t=this.getHandleNode(e.target);if(t){var n=this.props.handleSelector&&this.props.handleSelector!==this.props.nodeSelector?this.getDragNode(t):t;n&&(t.setAttribute("draggable",!1),n.setAttribute("draggable",!0),n.ondragstart=this.onDragStart,n.ondragend=this.onDragEnd)}}onDragStart(e){var t=this.getDragNode(e.target),n=e;if(t){var r=t.parentNode;n.dataTransfer.setData("Text",""),n.dataTransfer.effectAllowed="move",r.ondragenter=this.onDragEnter,r.ondragover=function(e){return e.preventDefault(),!0};var i=l(t,this.props.ignoreSelector);this.setState({fromIndex:i,toIndex:i}),this.scrollElement=s(r)}}onDragEnter(e){var t,n=this.getDragNode(e.target),r=e;n?(t=l(n,this.props.ignoreSelector),this.props.enableScroll&&this.resolveAutoScroll(r,n)):(t=-1,this.stopAutoScroll()),this.cacheDragTarget=n,this.setState({toIndex:t}),this.fixDragLine(n)}onDragEnd(e){var t=this.getDragNode(e.target);this.stopAutoScroll(),t&&(t.removeAttribute("draggable"),t.ondragstart=null,t.ondragend=null,t.parentNode.ondragenter=null,t.parentNode.ondragover=null,this.state.fromIndex>=0&&this.state.fromIndex!==this.state.toIndex&&this.props.onDragEnd(this.state.fromIndex,this.state.toIndex)),this.hideDragLine(),this.setState({fromIndex:-1,toIndex:-1})}getDragNode(e){return a(e,this.props.nodeSelector,this.dragList)}getHandleNode(e){return a(e,this.props.handleSelector||this.props.nodeSelector,this.dragList)}getDragLine(){return this.dragLine||(this.dragLine=window.document.createElement("div"),this.dragLine.setAttribute("style",f),window.document.body.appendChild(this.dragLine)),this.dragLine.className=this.props.lineClassName||"",this.dragLine}resolveAutoScroll(e,t){if(this.scrollElement){var n=this.scrollElement.getBoundingClientRect(),r=n.top,i=n.height,o=t.offsetHeight,a=e.pageY,s=o*(2/3);this.direction=0,a>r+i-s?this.direction=u.BOTTOM:au+c+2)return void this.hideDragLine()}t.style.left=r+h,t.style.width=o+h,t.style.top=s+h,t.style.display="block"}}render(){return i.a.createElement("div",{role:"presentation",onMouseDown:this.onMouseDown,ref:e=>{this.dragList=e}},this.props.children)}}d.defaultProps={nodeSelector:c,ignoreSelector:"",enableScroll:!0,scrollSpeed:10,handleSelector:"",lineClassName:"",children:null};var p=d,m="px",g="width:0;margin-left:-1px;margin-top:0;border-bottom:0 none;border-left:dashed 2px rgba(0,0,0,.3);",v={RIGHT:2,LEFT:4};class y extends p{getDragLine(){return this.dragLine||(super.getDragLine(),this.dragLine.setAttribute("style",this.dragLine.getAttribute("style")+g)),this.dragLine}resolveAutoScroll(e,t){if(this.scrollElement){var n=this.scrollElement.getBoundingClientRect(),r=n.left,i=n.width,o=t.offsetWidth,a=e.pageX,s=2*o/3;this.direction=0,a>r+i-s?this.direction=v.RIGHT:au+c+2)return void this.hideDragLine()}t.style.top=i+m,t.style.height=a+m,t.style.left=s+m,t.style.display="block"}}}var b=y;p.DragColumn=b;t["a"]=p},qx4F:function(e,t,n){"use strict";var r;function i(e){if("undefined"===typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),i=n.style;i.position="absolute",i.top=0,i.left=0,i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),r=o-a}return r}n.d(t,"a",function(){return i})},r6D9:function(e,t,n){"use strict";var r=n("IlS8");function i(){}e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},rA99:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("QBsz"),a=n("Sj9i"),s=[],l=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function c(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?a["b"]:a["a"])(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?a["b"]:a["a"])(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?a["i"]:a["h"])(e.x1,e.cpx1,e.x2,t),(n?a["i"]:a["h"])(e.y1,e.cpy1,e.y2,t)]}var u=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,l=t.cpx1,c=t.cpy1,u=t.cpx2,h=t.cpy2,f=t.percent;0!==f&&(e.moveTo(n,r),null==u||null==h?(f<1&&(Object(a["n"])(n,l,i,f,s),l=s[1],i=s[2],Object(a["n"])(r,c,o,f,s),c=s[1],o=s[2]),e.quadraticCurveTo(l,c,i,o)):(f<1&&(Object(a["g"])(n,l,u,i,f,s),l=s[1],u=s[2],i=s[3],Object(a["g"])(r,c,h,o,f,s),c=s[1],h=s[2],o=s[3]),e.bezierCurveTo(l,c,u,h,i,o)))},t.prototype.pointAt=function(e){return c(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=c(this.shape,e,!0);return o["k"](t,t)},t}(i["b"]);u.prototype.type="bezier-curve",t["a"]=u},rB1S:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={switchLoading:{},saveLoading:!1};t["default"]={name:"serverV2ray",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/server/v2ray/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/v2ray/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},copy(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/v2ray/copy",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/server/v2ray/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"serverManage/getNodes"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()}}}},rKIl:function(e,t,n){var r=n("c0Oy"),i=n("VPOE"),o=n("oxo0"),a=n("kCK5")("src"),s=n("b5re"),l="toString",c=(""+s).split(l);n("bV5f").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[a]||s.call(this)})},rTWY:function(e,t,n){var r=n("c0Oy"),i=n("vMx4").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n("2we2")(a);e.exports=function(){var e,t,n,c=function(){var r,i;l&&(r=a.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=h=!h}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},rUcv:function(e,t,n){"use strict";var r=n("c0Oy"),i=n("oxo0"),o=n("8Z/V"),a=n("WGNW"),s=n("rKIl"),l=n("+y51").KEY,c=n("wUWy"),u=n("VyuQ"),h=n("lvAo"),f=n("kCK5"),d=n("gL7N"),p=n("zKnh"),m=n("/sWw"),g=n("T1nr"),v=n("EpXD"),y=n("7vYJ"),b=n("u8+u"),w=n("il4q"),x=n("OeOC"),_=n("8BMt"),E=n("pQGJ"),S=n("/Mfd"),C=n("CTsd"),k=n("15BC"),O=n("e6w7"),T=n("V5/1"),A=n("Igga"),P=k.f,M=T.f,R=C.f,j=r.Symbol,L=r.JSON,D=L&&L.stringify,N="prototype",I=d("_hidden"),$=d("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),V=u("symbols"),W=u("op-symbols"),H=Object[N],U="function"==typeof j&&!!O.f,z=r.QObject,q=!z||!z[N]||!z[N].findChild,K=o&&c(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(H,t);r&&delete H[t],M(e,t,n),r&&e!==H&&M(H,t,r)}:M,G=function(e){var t=V[e]=S(j[N]);return t._k=e,t},Y=U&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},X=function(e,t,n){return e===H&&X(W,t,n),y(e),t=_(t,!0),y(n),i(V,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:E(0,!1)})):(i(e,I)||M(e,I,E(1,{})),e[I][t]=!0),K(e,t,n)):M(e,t,n)},Q=function(e,t){y(e);var n,r=g(t=x(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?S(e):Q(S(e),t)},J=function(e){var t=F.call(this,e=_(e,!0));return!(this===H&&i(V,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,I)&&this[I][e])||t)},ee=function(e,t){if(e=x(e),t=_(t,!0),e!==H||!i(V,t)||i(W,t)){var n=P(e,t);return!n||!i(V,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},te=function(e){var t,n=R(x(e)),r=[],o=0;while(n.length>o)i(V,t=n[o++])||t==I||t==l||r.push(t);return r},ne=function(e){var t,n=e===H,r=R(n?W:x(e)),o=[],a=0;while(r.length>a)!i(V,t=r[a++])||n&&!i(H,t)||o.push(V[t]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),K(this,e,E(1,n))};return o&&q&&K(H,e,{configurable:!0,set:t}),G(e)},s(j[N],"toString",function(){return this._k}),k.f=ee,T.f=X,n("9HFh").f=C.f=te,n("LsAW").f=J,O.f=ne,o&&!n("FqPH")&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(d(e))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=A(d.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=j(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c(function(){O.f(1)});a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),L&&a(a.S+a.F*(!U||c(function(){var e=j();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,D.apply(L,r)}}),j[N][$]||n("VPOE")(j[N],$,j[N].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},rXFu:function(e,t,n){"use strict";(function(t,r){var i=n("lm0R");e.exports=_;var o,a=n("2Nt0");_.ReadableState=x;n("+qE3").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n("QpuX"),c=n("hwdV").Buffer,u=t.Uint8Array||function(){};function h(e){return c.from(e)}function f(e){return c.isBuffer(e)||e instanceof u}var d=Object.create(n("Onz0"));d.inherits=n("P7XM");var p=n(3),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,v=n("Xhqo"),y=n("RoFp");d.inherits(_,l);var b=["error","close","destroy","pause","resume"];function w(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function x(e,t){o=o||n("sZro"),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=n("fXKp").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function _(e){if(o=o||n("sZro"),!(this instanceof _))return new _(e);this._readableState=new x(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function E(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,P(e,a)):(i||(o=C(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=h(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):j(e,a)):S(e,a,t,!1))):r||(a.reading=!1));return k(a)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),j(e,t)}function C(e,t){var n;return f(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function k(e){return!e.ended&&(e.needReadable||e.length=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=T(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,M(e)}}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(R,e):R(e))}function R(e){m("emit readable"),e.emit("readable"),F(e)}function j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(L,e,t))}function L(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=V(e,t.buffer,t.decoder),n);var n}function V(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function H(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,0===e){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function U(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(z,t,e))}function z(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function q(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):M(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e0?B(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,l=a?u:x;function c(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){m("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var h=D(n);e.on("drain",h);var f=!1;function d(){m("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",h),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",x),n.removeListener("data",g),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h()}var p=!1;function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!f&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){m("onerror",t),x(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),x()}function b(){m("onfinish"),e.removeListener("close",y),x()}function x(){m("unpipe"),n.unpipe(e)}return n.on("data",g),w(e,"error",v),e.once("close",y),e.once("finish",b),e.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=1?1:Object(r["f"])(0,a,l,1,e,u)&&Object(r["a"])(0,s,c,1,u[0])}}}},s3Ml:function(e,t,n){e.exports={default:n("JbBM"),__esModule:!0}},s4NR:function(e,t,n){"use strict";t.decode=t.parse=n("kd2E"),t.encode=t.stringify=n("4JlD")},sFYk:function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=n("d6i3"),a=n.n(o),s=n("1l/V"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("Bl7J"),f=n("/MKj"),d=n("3a4m"),p=n.n(d),m=n("t3Un"),g=n("20nU"),v=n("IrRn"),y=n("G+eS"),b=n("k5Tp"),w=n("MJSk"),x=n("LadE"),_=n("Syqx"),E=n("/zI/"),S=n("NiBb"),C=n("TLXH"),k=n("xVpn"),O=n("l6yY");v["a"]([b["a"],w["a"],x["a"],_["a"],E["a"],S["a"],C["a"],O["a"],k["a"]]);class T extends u.a.Component{constructor(e){super(e),this.state={},this.orderChart=u.a.createRef(),this.orderChartObj=void 0,this.serverLastRankChart=u.a.createRef(),this.serverLastRankChartObj=void 0}orderChartRender(e){var t;this.orderChartObj=y["b"](null===(t=this.orderChart)||void 0===t?void 0:t.current,"vintage",{renderer:"svg"});var n={tooltip:{trigger:"axis"},legend:{data:[],left:"0",z:4},grid:{left:"1%",right:"1%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[]};e.forEach(e=>{-1===n.legend.data.indexOf(e.type)&&n.legend.data.push(e.type),-1===n.xAxis.data.indexOf(e.date)&&n.xAxis.data.push(e.date);var t=n.series.find(t=>t.name===e.type);t?t.data.push(e.value):n.series.push({name:e.type,type:"line",smooth:!0,data:[e.value]})}),this.orderChartObj.setOption(n),window.addEventListener("resize",this.chartResize.bind(this))}serverLastRankChartRender(e){var t;this.serverLastRankChartObj=y["b"](null===(t=this.serverLastRankChart)||void 0===t?void 0:t.current);var n={tooltip:{trigger:"axis",formatter:e=>{return"".concat(e[0].value," GB")}},grid:{top:"1%",left:"1%",right:"1%",bottom:"3%",containLabel:!0},xAxis:{type:"value"},yAxis:{type:"category",data:[]},series:[{data:[],type:"bar"}]};e.reverse().forEach(e=>{n.yAxis.data.push(e.server_name),n.series[0].data.push(e.total)}),this.serverLastRankChartObj.setOption(n)}chartResize(){this.orderChartObj.resize(),this.serverLastRankChartObj.resize()}componentDidMount(){var e=this;l()(a.a.mark(function t(){return a.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.checkQueue();case 2:case"end":return t.stop()}},t)}))(),this.props.dispatch({type:"stat/getOverride"}),this.props.dispatch({type:"stat/getOrder",complete:e=>{this.orderChartRender(e)}}),this.props.dispatch({type:"stat/getServerLastRank",complete:e=>{this.serverLastRankChartRender(e)}}),this.props.dispatch({type:"config/fetch",key:"site"})}componentWillUnmount(){window.removeEventListener("resize",this.chartResize.bind(this))}orderFilter(){this.props.dispatch({type:"order/addFilter",key:"commission_status",condition:"=",value:0}),this.props.dispatch({type:"order/addFilter",key:"invite_user_id",condition:"!=",value:""}),p.a.push("/order")}checkQueue(){var e=this;return l()(a.a.mark(function t(){var n,r;return a.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=new URL(g["a"].serviceHost),t.next=3,Object(m["a"])((null===n||void 0===n?void 0:n.origin)+"/monitor/api/stats");case 3:r=t.sent,e.setState({queueStatus:null===r||void 0===r?void 0:r.status});case 5:case"end":return t.stop()}},t)}))()}render(){var e=this.props,t=e.stat,n=e.config,r=[];return t.ticket_pending_total&&r.push(u.a.createElement("div",{className:"alert alert-danger",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u6709 ",t.ticket_pending_total," \u6761\u5de5\u5355\u7b49\u5f85\u5904\u7406 ",u.a.createElement("a",{className:"alert-link",href:"javascript:void(0)",onClick:()=>p.a.push("/ticket")},"\u7acb\u5373\u5904\u7406")))),t.commission_pending_total&&r.push(u.a.createElement("div",{className:"alert alert-danger",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u6709 ",t.commission_pending_total," \u7b14\u4f63\u91d1\u7b49\u5f85\u786e\u8ba4 ",u.a.createElement("a",{className:"alert-link",href:"javascript:void(0)",onClick:()=>p.a.push("/order")},"\u7acb\u5373\u5904\u7406")))),u.a.createElement(h["a"],i()({},this.props,{title:"\u4eea\u8868\u76d8"}),this.state.queueStatus&&"running"!==this.state.queueStatus&&u.a.createElement("div",{className:"row"},u.a.createElement("div",{className:"col-lg-12"},u.a.createElement("div",{className:"alert alert-danger",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u5f53\u524d\u961f\u5217\u670d\u52a1\u8fd0\u884c\u5f02\u5e38\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e1a\u52a1\u65e0\u6cd5\u4f7f\u7528\u3002")))),r.map(e=>e),u.a.createElement("div",{className:"mb-0 block border-bottom js-classic-nav d-none d-sm-block"},u.a.createElement("div",{className:"block-content block-content-full"},u.a.createElement("div",{className:"row no-gutters border"},u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/config/system")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-equalizer text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u7cfb\u7edf\u8bbe\u7f6e")))),u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/order")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-list text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u8ba2\u5355\u7ba1\u7406")))),u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/plan")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-bag text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u8ba2\u9605\u7ba1\u7406")))),u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/user")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-users text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u7528\u6237\u7ba1\u7406"))))))),u.a.createElement("div",{className:"row no-gutters"},u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0"},u.a.createElement("div",{className:"block-content"},u.a.createElement("div",{className:"px-sm-3 clearfix"},u.a.createElement("i",{className:"fa fa-chart-line fa-2x text-gray-light float-right"}),u.a.createElement("p",{className:"text-muted w-75 mb-1"},"\u4eca\u65e5\u6536\u5165"),u.a.createElement("p",{className:"display-4 text-black font-w300 mb-2"},t.day_income?(t.day_income/100).toFixed(2):"0.00",u.a.createElement("span",{className:"font-size-h5 font-w600 text-muted"},n.site.currency)))))),u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0 v2board-stats-bar",onScroll:e=>console.log(e.currentTarget.scrollLeft)},u.a.createElement("div",{className:"block-content block-content-full"},u.a.createElement("div",{class:"d-flex align-items-center"},u.a.createElement("div",{class:"pr-4 pr-sm-5 pl-0 pl-sm-3"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.month_income?(t.month_income/100).toFixed(2):"0.00"," ",n.site.currency),u.a.createElement("p",{class:"text-muted mb-0"},"\u672c\u6708\u6536\u5165")),u.a.createElement("div",{class:"px-4 px-sm-5 border-start"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.last_month_income?(t.last_month_income/100).toFixed(2):"0.00"," ",n.site.currency),u.a.createElement("p",{class:"text-muted mb-0"},"\u4e0a\u6708\u6536\u5165")),u.a.createElement("div",{class:"px-4 px-sm-5 border-start"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.commission_last_month_payout?(t.commission_last_month_payout/100).toFixed(2):"0.00"," ",n.site.currency),u.a.createElement("p",{class:"text-muted mb-0"},"\u4e0a\u6708\u4f63\u91d1\u652f\u51fa")),u.a.createElement("div",{class:"px-4 px-sm-5 border-start"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.month_register_total||"-"),u.a.createElement("p",{class:"text-muted mb-0"},"\u672c\u6708\u65b0\u589e\u7528\u6237")))))),u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0"},u.a.createElement("div",{className:"px-sm-3 pt-sm-3 py-3 clearfix",id:"orderChart",style:{height:400},ref:this.orderChart})))),u.a.createElement("div",{className:"row no-gutters mt-xl-3"},u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0"},u.a.createElement("div",{class:"block-header block-header-default"},u.a.createElement("h3",{class:"block-title"},"\u6628\u65e5\u8282\u70b9\u6d41\u91cf\u6392\u884c")),u.a.createElement("div",{className:"block-content"},u.a.createElement("div",{className:"px-sm-3 pt-sm-3 py-3 clearfix",id:"serverRankChart",style:{height:400},ref:this.serverLastRankChart}))))))}}t["default"]=Object(f["c"])(e=>{var t=e.stat,n=e.config;return{stat:t,config:n}})(T)},sRdV:function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n("y8fO").source,t.src_Cc=n("p7ys").source,t.src_Z=n("T8I8").source,t.src_P=n("fKCf").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},sZro:function(e,t,n){"use strict";var r=n("lm0R"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=h;var o=Object.create(n("Onz0"));o.inherits=n("P7XM");var a=n("rXFu"),s=n("3BRs");o.inherits(h,a);for(var l=i(s.prototype),c=0;c=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function f(e,t){if(e){if("string"===typeof e)return d(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1){var t=e.slice(1).split("&");if(Array.isArray(t)&&t.length>0)return t.reduce(function(e,t){var n=t.split("="),r=i(n,2),o=r[0],a=r[1];return c({},e,u({},o,a))},{})}return{}};t.getUrlQuery=m},"saJ+":function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){"function"===typeof e?e(t):"object"===r(e)&&e&&"current"in e&&(e.current=t)}function o(){for(var e=arguments.length,t=new Array(e),n=0;n0&&(i[1-o]=this.state.showTimePicker?i[o]:void 0),this.props.onInputSelect(i),this.fireSelectValueChange(i,null,n||{source:"dateInput"})}}var F=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));B.call(r);var i=n.selectedValue||n.defaultSelectedValue,o=N(n,1);return r.state={selectedValue:i,prevSelectedValue:i,firstSelectedValue:null,hoverValue:n.hoverValue||[],value:o,showTimePicker:!1,mode:n.mode||["date","date"],panelTriggerSource:""},r}return u()(t,e),t.getDerivedStateFromProps=function(e,t){var n={};return"value"in e&&(n.value=N(e,0)),"hoverValue"in e&&!L(t.hoverValue,e.hoverValue)&&(n.hoverValue=e.hoverValue),"selectedValue"in e&&(n.selectedValue=e.selectedValue,n.prevSelectedValue=e.selectedValue),"mode"in e&&!L(t.mode,e.mode)&&(n.mode=e.mode),n},t.prototype.render=function(){var e,t,n=this.props,r=this.state,o=n.prefixCls,a=n.dateInputPlaceholder,s=n.seperator,l=n.timePicker,c=n.showOk,u=n.locale,h=n.showClear,d=n.showToday,p=n.type,m=n.clearIcon,g=r.hoverValue,v=r.selectedValue,b=r.mode,w=r.showTimePicker,x=(e={},e[n.className]=!!n.className,e[o]=1,e[o+"-hidden"]=!n.visible,e[o+"-range"]=1,e[o+"-show-time-picker"]=w,e[o+"-week-number"]=n.showWeekNumber,e),_=y()(x),E={selectedValue:r.selectedValue,onSelect:this.onSelect,onDayHover:"start"===p&&v[1]||"end"===p&&v[0]||g.length?this.onDayHover:void 0},C=void 0,P=void 0;a&&(Array.isArray(a)?(C=a[0],P=a[1]):C=P=a);var M=!0===c||!1!==c&&!!l,R=y()((t={},t[o+"-footer"]=!0,t[o+"-range-bottom"]=!0,t[o+"-footer-show-ok"]=M,t)),j=this.getStartValue(),L=this.getEndValue(),D=Object(S["e"])(j),N=D.month(),I=D.year(),$=j.year()===I&&j.month()===N||L.year()===I&&L.month()===N,F=j.clone().add(1,"months"),B=F.year()===L.year()&&F.month()===L.month(),V=n.renderFooter();return f.a.createElement("div",{ref:this.saveRoot,className:_,style:n.style,tabIndex:"0",onKeyDown:this.onKeyDown},n.renderSidebar(),f.a.createElement("div",{className:o+"-panel"},h&&v[0]&&v[1]?f.a.createElement("a",{role:"button",title:u.clear,onClick:this.clear},m||f.a.createElement("span",{className:o+"-clear-btn"})):null,f.a.createElement("div",{className:o+"-date-panel",onMouseLeave:"both"!==p?this.onDatePanelLeave:void 0,onMouseEnter:"both"!==p?this.onDatePanelEnter:void 0},f.a.createElement(k,i()({},n,E,{hoverValue:g,direction:"left",disabledTime:this.disabledStartTime,disabledMonth:this.disabledStartMonth,format:this.getFormat(),value:j,mode:b[0],placeholder:C,onInputChange:this.onStartInputChange,onInputSelect:this.onStartInputSelect,onValueChange:this.onStartValueChange,onPanelChange:this.onStartPanelChange,showDateInput:this.props.showDateInput,timePicker:l,showTimePicker:w||"time"===b[0],enablePrev:!0,enableNext:!B||this.isMonthYearPanelShow(b[1]),clearIcon:m})),f.a.createElement("span",{className:o+"-range-middle"},s),f.a.createElement(k,i()({},n,E,{hoverValue:g,direction:"right",format:this.getFormat(),timePickerDisabledTime:this.getEndDisableTime(),placeholder:P,value:L,mode:b[1],onInputChange:this.onEndInputChange,onInputSelect:this.onEndInputSelect,onValueChange:this.onEndValueChange,onPanelChange:this.onEndPanelChange,showDateInput:this.props.showDateInput,timePicker:l,showTimePicker:w||"time"===b[1],disabledTime:this.disabledEndTime,disabledMonth:this.disabledEndMonth,enablePrev:!B||this.isMonthYearPanelShow(b[0]),enableNext:!0,clearIcon:m}))),f.a.createElement("div",{className:R},d||n.timePicker||M||V?f.a.createElement("div",{className:o+"-footer-btn"},V,d?f.a.createElement(O["a"],i()({},n,{disabled:$,value:r.value[0],onToday:this.onToday,text:u.backToToday})):null,n.timePicker?f.a.createElement(A["a"],i()({},n,{showTimePicker:w||"time"===b[0]&&"time"===b[1],onOpenTimePicker:this.onOpenTimePicker,onCloseTimePicker:this.onCloseTimePicker,timePickerDisabled:!this.hasSelectedValue()||g.length})):null,M?f.a.createElement(T["a"],i()({},n,{onOk:this.onOk,okDisabled:!this.isAllowedDateAndTime(v)||!this.hasSelectedValue()||g.length})):null):null)))},t}(f.a.Component);F.propTypes=i()({},P["c"],{prefixCls:p.a.string,dateInputPlaceholder:p.a.any,seperator:p.a.string,defaultValue:p.a.any,value:p.a.any,hoverValue:p.a.any,mode:p.a.arrayOf(p.a.oneOf(["time","date","month","year","decade"])),showDateInput:p.a.bool,timePicker:p.a.any,showOk:p.a.bool,showToday:p.a.bool,defaultSelectedValue:p.a.array,selectedValue:p.a.array,onOk:p.a.func,showClear:p.a.bool,locale:p.a.object,onChange:p.a.func,onSelect:p.a.func,onValueChange:p.a.func,onHoverChange:p.a.func,onPanelChange:p.a.func,format:p.a.oneOfType([p.a.string,p.a.arrayOf(p.a.string)]),onClear:p.a.func,type:p.a.any,disabledDate:p.a.func,disabledTime:p.a.func,clearIcon:p.a.node,onKeyDown:p.a.func}),F.defaultProps=i()({},P["b"],{type:"both",seperator:"~",defaultSelectedValue:[],onValueChange:R,onHoverChange:R,onPanelChange:R,disabledTime:R,onInputSelect:R,showToday:!0,showDateInput:!0});var B=function(){var e=this;this.onDatePanelEnter=function(){e.hasSelectedValue()&&e.fireHoverValueChange(e.state.selectedValue.concat())},this.onDatePanelLeave=function(){e.hasSelectedValue()&&e.fireHoverValueChange([])},this.onSelect=function(t){var n=e.props.type,r=e.state,i=r.selectedValue,o=r.prevSelectedValue,a=r.firstSelectedValue,s=void 0;if("both"===n)a?e.compare(a,t)<0?(Object(S["h"])(o[1],t),s=[a,t]):(Object(S["h"])(o[0],t),Object(S["h"])(o[1],a),s=[t,a]):(Object(S["h"])(o[0],t),s=[t]);else if("start"===n){Object(S["h"])(o[0],t);var l=i[1];s=l&&e.compare(l,t)>0?[t,l]:[t]}else{var c=i[0];c&&e.compare(c,t)<=0?(Object(S["h"])(o[1],t),s=[c,t]):(Object(S["h"])(o[0],t),s=[t])}e.fireSelectValueChange(s)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,r=t.ctrlKey||t.metaKey,i=e.state,o=i.selectedValue,a=i.hoverValue,s=i.firstSelectedValue,l=i.value,c=e.props,u=c.onKeyDown,h=c.disabledDate,f=function(n){var r=void 0,i=void 0,c=void 0;if(s?1===a.length?(r=a[0].clone(),i=n(r),c=e.onDayHover(i)):(r=a[0].isSame(s,"day")?a[1]:a[0],i=n(r),c=e.onDayHover(i)):(r=a[0]||o[0]||l[0]||g()(),i=n(r),c=[i],e.fireHoverValueChange(c)),c.length>=2){var u=c.some(function(e){return!Object(M["d"])(l,e,"month")});if(u){var h=c.slice().sort(function(e,t){return e.valueOf()-t.valueOf()});h[0].isSame(h[1],"month")&&(h[1]=h[0].clone().add(1,"month")),e.fireValueChange(h)}}else if(1===c.length){var f=l.findIndex(function(e){return e.isSame(r,"month")});if(-1===f&&(f=0),l.every(function(e){return!e.isSame(i,"month")})){var d=l.slice();d[f]=i.clone(),e.fireValueChange(d)}}return t.preventDefault(),i};switch(n){case w["a"].DOWN:return void f(function(e){return Object(M["c"])(e,1,"weeks")});case w["a"].UP:return void f(function(e){return Object(M["c"])(e,-1,"weeks")});case w["a"].LEFT:return void f(r?function(e){return Object(M["c"])(e,-1,"years")}:function(e){return Object(M["c"])(e,-1,"days")});case w["a"].RIGHT:return void f(r?function(e){return Object(M["c"])(e,1,"years")}:function(e){return Object(M["c"])(e,1,"days")});case w["a"].HOME:return void f(function(e){return Object(M["b"])(e)});case w["a"].END:return void f(function(e){return Object(M["a"])(e)});case w["a"].PAGE_DOWN:return void f(function(e){return Object(M["c"])(e,1,"month")});case w["a"].PAGE_UP:return void f(function(e){return Object(M["c"])(e,-1,"month")});case w["a"].ENTER:var d=void 0;return d=0===a.length?f(function(e){return e}):1===a.length?a[0]:a[0].isSame(s,"day")?a[1]:a[0],!d||h&&h(d)||e.onSelect(d),void t.preventDefault();default:u&&u(t)}}},this.onDayHover=function(t){var n=[],r=e.state,i=r.selectedValue,o=r.firstSelectedValue,a=e.props.type;if("start"===a&&i[1])n=e.compare(t,i[1])<0?[t,i[1]]:[t];else if("end"===a&&i[0])n=e.compare(t,i[0])>0?[i[0],t]:[];else{if(!o)return e.state.hoverValue.length&&e.setState({hoverValue:[]}),n;n=e.compare(t,o)<0?[t,o]:[o,t]}return e.fireHoverValueChange(n),n},this.onToday=function(){var t=Object(S["e"])(e.state.value[0]),n=t.clone().add(1,"months");e.setState({value:[t,n]})},this.onOpenTimePicker=function(){e.setState({showTimePicker:!0})},this.onCloseTimePicker=function(){e.setState({showTimePicker:!1})},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDateAndTime(t)&&e.props.onOk(e.state.selectedValue)},this.onStartInputChange=function(){for(var t=arguments.length,n=Array(t),r=0;r-1},this.hasSelectedValue=function(){var t=e.state.selectedValue;return!!t[1]&&!!t[0]},this.compare=function(t,n){return e.props.timePicker?t.diff(n):t.diff(n,"days")},this.fireSelectValueChange=function(t,n,r){var i=e.props.timePicker,o=e.state.prevSelectedValue;if(i&&i.props.defaultValue){var a=i.props.defaultValue;!o[0]&&t[0]&&Object(S["h"])(a[0],t[0]),!o[1]&&t[1]&&Object(S["h"])(a[1],t[1])}if("selectedValue"in e.props||e.setState({selectedValue:t}),!e.state.selectedValue[0]||!e.state.selectedValue[1]){var s=t[0]||g()(),l=t[1]||s.clone().add(1,"months");e.setState({selectedValue:t,value:D([s,l])})}t[0]&&!t[1]&&(e.setState({firstSelectedValue:t[0]}),e.fireHoverValueChange(t.concat())),e.props.onChange(t),(n||t[0]&&t[1])&&(e.setState({prevSelectedValue:t,firstSelectedValue:null}),e.fireHoverValueChange([]),e.props.onSelect(t,r))},this.fireValueChange=function(t){var n=e.props;"value"in n||e.setState({value:t}),n.onValueChange(t)},this.fireHoverValueChange=function(t){var n=e.props;"hoverValue"in n||e.setState({hoverValue:t}),n.onHoverChange(t)},this.clear=function(){e.fireSelectValueChange([],!0),e.props.onClear()},this.disabledStartTime=function(t){return e.props.disabledTime(t,"start")},this.disabledEndTime=function(t){return e.props.disabledTime(t,"end")},this.disabledStartMonth=function(t){var n=e.state.value;return t.isAfter(n[1],"month")},this.disabledEndMonth=function(t){var n=e.state.value;return t.isBefore(n[0],"month")}};Object(b["polyfill"])(F);t["a"]=Object(P["a"])(F)},t23M:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n1)v.default(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return v.default(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(p.isValidElement(n)&&w.supportRef(n)){var r=n.ref;t[0]=p.cloneElement(n,{ref:y.composeRef(r,this.setChildNode)})}return 1===t.length?t[0]:t.map(function(e,t){return!p.isValidElement(e)||"key"in e&&null!==e.key?e:p.cloneElement(e,{key:"".concat(x,"-").concat(t)})})}}]),t}(p.Component);_.displayName="ResizeObserver",t.default=_},t3Un:function(e,t,n){"use strict";n.d(t,"b",function(){return y}),n.d(t,"a",function(){return b});var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=(n("/xke"),n("TeRw")),l=n("1l/V"),c=n.n(l),u=n("Hg0r"),h=n("20nU"),f=n("yWgo"),d=h["a"].serviceHost;function p(e,t){return m.apply(this,arguments)}function m(){return m=c()(i.a.mark(function e(t,n){var r,o,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return r=Object(f["c"])(),n=n||{},n.headers=n.headers||{},n.credentials="include",r&&(n.headers.authorization=r),-1!==t.indexOf("http")?t+=t.indexOf("?")>0?"&":"?":t=d+t,e.next=8,Object(u["b"])(t,n);case 8:if(o=e.sent,l={},"application/json"!==o.headers.get("content-type")){e.next=16;break}return e.next=13,o.json();case 13:l=e.sent,e.next=20;break;case 16:return e.next=18,o.arrayBuffer();case 18:e.t0=e.sent,l={buffer:e.t0};case 20:if(403!==o.status){e.next=24;break}return Object(f["g"])(),window.location.href=window.location.origin+window.location.pathname,e.abrupt("return",{code:o.status,msg:l.message});case 24:if(200===o.status){e.next=30;break}if(!l.errors){e.next=28;break}return s["a"].error({message:"\u8bf7\u6c42\u5931\u8d25",description:Object.values(l.errors)[0][0],duration:1.5}),e.abrupt("return",{code:o.status,msg:Object.values(l.errors)[0][0]});case 28:return s["a"].error({message:"\u8bf7\u6c42\u5931\u8d25",description:l.message,duration:1.5}),e.abrupt("return",{code:o.status,msg:l.message});case 30:return e.abrupt("return",a()({code:o.status},l));case 31:case"end":return e.stop()}},e)})),m.apply(this,arguments)}var g=(e,t,n)=>{if(null!==t){if("undefined"!==typeof t)if("object"===typeof t)for(var r in t)g(e+"["+r+"]",t[r],n);else n.push("".concat(e,"=").concat(encodeURIComponent(t)))}else n.push("".concat(e,"="))};function v(e){if(!e)return"";if("object"===typeof e&&!(e instanceof Array)){var t=[];for(var n in e)g(n,e[n],t);return t.join("&")}return""}function y(e,t){return p(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:v(t)})}function b(e,t){var n=v(t);return p(n?e+(e.indexOf("?")>0?"&":"?")+n:e,null)}},t9FE:function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("yLpj"))},tEej:function(e,t,n){var r=n("Ojgd"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},tGd3:function(e,t,n){var r=n("7vYJ"),i=n("u8+u"),o=n("+mmm");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},tI4l:function(e,t,n){"use strict";t["a"]={i18nText:{"zh-CN":"\u7b80\u4f53\u4e2d\u6587","zh-TW":"\u7e41\u9ad4\u4e2d\u6587","en-US":"English","ja-JP":"\u65e5\u672c\u8a9e","vi-VN":"Ti\u1ebfng Vi\u1ec7t","ko-KR":"\ud55c\uad6d\uc5b4"},periodText:{month_price:"\u6708\u4ed8",quarter_price:"\u5b63\u4ed8",half_year_price:"\u534a\u5e74\u4ed8",year_price:"\u5e74\u4ed8",two_year_price:"\u4e24\u5e74\u4ed8",three_year_price:"\u4e09\u5e74\u4ed8",onetime_price:"\u4e00\u6b21\u6027",reset_price:"\u6d41\u91cf\u91cd\u7f6e\u5305"},tutorialCategoryText:{1:"Windows",2:"macOS",3:"iOS",4:"Android",5:"Linux",6:"\u8def\u7531\u5668"},tutorialCategoryIcon:{1:"fab fa-2x fa-windows",2:"fab fa-2x fa-apple",3:"fab fa-2x fa-apple",4:"fab fa-2x fa-android",5:"fab fa-2x fa-linux",6:"fa fa-2x fa-wifi"},orderStatusText:{0:"\u5f85\u652f\u4ed8",1:"\u5f00\u901a\u4e2d",2:"\u5df2\u53d6\u6d88",3:"\u5df2\u5b8c\u6210",4:"\u5df2\u6298\u62b5"},commissionStatusText:{0:"\u5f85\u786e\u8ba4",1:"\u53d1\u653e\u4e2d",2:"\u5df2\u53d1\u653e",3:"\u5df2\u9a73\u56de"},ticketStatusText:{0:"\u5f00\u542f",1:"\u5f85\u56de\u590d",2:"\u5f85\u7b54\u590d",3:"\u5173\u95ed"}}},tRgb:function(e,t,n){"use strict";var r=n("AU/w");function i(e){return s(e)||a(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function a(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function s(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return L(r)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return f(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),h=0;hi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function L(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function V(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function W(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function H(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return o||H(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return o||H(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):W(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):W(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("yLpj"))},u2w5:function(e,t,n){"use strict";n("W3Xk")("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},u4tm:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("/MKj"),l=n("CxXe"),c=n("AU/w");function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var h=function(e){var t=e.getIn,n=e.toJS,r=function(e){return null!=e&&"object"===u(e)&&t(e,["location"])&&t(e,["action"])},i=function(e){var i=n(t(e,["router"]));if(!r(i))throw'Could not find router reducer in state tree, it must be mounted under "router"';return i},o=function(e){return n(t(i(e),["location"]))},a=function(e){return n(t(i(e),["action"]))},s=function(e){return n(t(i(e),["location","search"]))},c=function(e){return n(t(i(e),["location","hash"]))},h=function(e){var t=null,n=null;return function(r){var i=o(r)||{},a=i.pathname;if(a===t)return n;t=a;var s=Object(l["j"])(a,e);return s&&n&&s.url===n.url||(n=s),n}};return{getLocation:o,getAction:a,getRouter:i,getSearch:s,getHash:c,createMatchSelector:h}},f=h;function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(){return p=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];r.inTimeTravelling?r.inTimeTravelling=!1:a(e,t,n)};return r.unlisten=o.listen(s),s(o.location,o.action,!0),r}return x(t,e),v(t,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return i.a.createElement(l["e"],{history:t},n)}}]),t}(r["PureComponent"]);o.propTypes={store:a.a.shape({getState:a.a.func.isRequired,subscribe:a.a.func.isRequired}).isRequired,history:a.a.shape({action:a.a.string.isRequired,listen:a.a.func.isRequired,location:a.a.object.isRequired,push:a.a.func.isRequired}).isRequired,basename:a.a.string,children:a.a.oneOfType([a.a.func,a.a.node]),onLocationChanged:a.a.func.isRequired};var u=function(e){return{onLocationChanged:function(t,n,r){return e(Object(c["f"])(t,n,r))}}},h=function(e){var t=e.context||s["b"];if(null==t)throw"Please upgrade to react-redux v6";return i.a.createElement(t.Consumer,null,function(t){var n=t.store;return i.a.createElement(o,p({store:n},e))})};return h.propTypes={context:a.a.object},Object(s["c"])(null,u)(h)},S=E,C=function(e){var t=e.fromJS,n=e.merge,r=function(e){var r=t({location:e.location,action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.type,a=i.payload;if(o===c["b"]){var s=a.location,l=a.action,u=a.isFirstRendering;return u?e:n(e,{location:t(s),action:l})}return e}};return r},k=C,O=function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,i=0;i=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ne(e,t,n,r){var i=Pe.clone(e),o={width:t.width,height:t.height};return r.adjustX&&i.left=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),Pe.mix(i,o)}function Ie(e){var t,n,r;if(Pe.isWindow(e)||9===e.nodeType){var i=Pe.getWindow(e);t={left:Pe.getWindowScrollLeft(i),top:Pe.getWindowScrollTop(i)},n=Pe.viewportWidth(i),r=Pe.viewportHeight(i)}else t=Pe.offset(e),n=Pe.outerWidth(e),r=Pe.outerHeight(e);return t.width=n,t.height=r,t}function $e(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function Fe(e,t,n,r,i){var o=$e(t,n[1]),a=$e(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function Be(e,t,n){return e.leftn.right}function Ve(e,t,n){return e.topn.bottom}function We(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Xe(e,t,n){var r=n.target||t,i=Ie(r),o=!Ye(r,n.overflow&&n.overflow.alwaysByViewport);return Ge(e,i,n,o)}function Qe(e,t,n){var r,i,o=Pe.getDocument(e),a=o.defaultView||o.parentWindow,s=Pe.getWindowScrollLeft(a),l=Pe.getWindowScrollTop(a),c=Pe.viewportWidth(a),u=Pe.viewportHeight(a);r="pageX"in t?t.pageX:s+t.clientX,i="pageY"in t?t.pageY:l+t.clientY;var h={left:r,top:i,width:0,height:0},f=r>=0&&r<=s+c&&i>=0&&i<=l+u,d=[n.points[0],"cc"];return Ge(e,h,R(R({},n),{},{points:d}),f)}Xe.__getOffsetParent=Re,Xe.__getVisibleRectForElement=De;function Ze(e,t){var n=void 0;function r(){n&&(clearTimeout(n),n=null)}function i(){r(),n=setTimeout(e,t)}return i.clear=r,i}function Je(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function et(e){return e&&"object"===typeof e&&e.window===e}function tt(e,t){var n=Math.floor(e),r=Math.floor(t);return Math.abs(n-r)<=1}function nt(e,t){e!==document.activeElement&&Object(y["a"])(t,e)&&e.focus()}function rt(e){return"function"===typeof e&&e?e():null}function it(e){return"object"===typeof e&&e?e:null}var ot=function(e){function t(){var e,n,r,i;a()(this,t);for(var o=arguments.length,s=Array(o),c=0;c1?(!n&&t&&(r.className+=" "+t),f.a.createElement("div",r)):f.a.Children.only(r.children)},t}(h["Component"]);ht.propTypes={children:p.a.any,className:p.a.string,visible:p.a.bool,hiddenClassName:p.a.string};var ft=ht,dt=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),f.a.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseDown:e.onMouseDown,onTouchStart:e.onTouchStart,style:e.style},f.a.createElement(ft,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(h["Component"]);dt.propTypes={hiddenClassName:p.a.string,className:p.a.string,prefixCls:p.a.string,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseDown:p.a.func,onTouchStart:p.a.func,children:p.a.any};var pt=dt,mt=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return gt.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=O.bind(r,"popupInstance"),r.saveAlignRef=O.bind(r,"alignInstance"),r}return u()(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return g.a.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,o=n.targetHeight,a=n.targetWidth,s=this.props,l=s.align,c=s.visible,u=s.prefixCls,h=s.style,d=s.getClassNameFromAlign,p=s.destroyPopupOnHide,m=s.stretch,g=s.children,v=s.onMouseEnter,y=s.onMouseLeave,b=s.onMouseDown,w=s.onTouchStart,x=this.getClassName(this.currentAlignClassName||d(l)),_=u+"-hidden";c||(this.currentAlignClassName=null);var E={};m&&(-1!==m.indexOf("height")?E.height=o:-1!==m.indexOf("minHeight")&&(E.minHeight=o),-1!==m.indexOf("width")?E.width=a:-1!==m.indexOf("minWidth")&&(E.minWidth=a),r||(E.visibility="hidden",setTimeout(function(){e.alignInstance&&e.alignInstance.forceAlign()},0)));var S=i()({},E,h,this.getZIndexStyle()),C={className:x,prefixCls:u,ref:t,onMouseEnter:v,onMouseLeave:y,onMouseDown:b,onTouchStart:w,style:S};return p?f.a.createElement(lt["a"],{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},c?f.a.createElement(st,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:l,onAlign:this.onAlign},f.a.createElement(pt,i()({visible:!0},C),g)):null):f.a.createElement(lt["a"],{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},f.a.createElement(st,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:c,childrenProps:{visible:"xVisible"},disabled:!c,align:l,onAlign:this.onAlign},f.a.createElement(pt,i()({hiddenClassName:_},C),g)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=f.a.createElement(ft,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=f.a.createElement(lt["a"],{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return f.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(h["Component"]);mt.propTypes={visible:p.a.bool,style:p.a.object,getClassNameFromAlign:p.a.func,onAlign:p.a.func,getRootDomNode:p.a.func,align:p.a.any,destroyPopupOnHide:p.a.bool,className:p.a.string,prefixCls:p.a.string,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseDown:p.a.func,onTouchStart:p.a.func,stretch:p.a.string,children:p.a.node,point:p.a.shape({pageX:p.a.number,pageY:p.a.number})};var gt=function(){var e=this;this.onAlign=function(t,n){var r=e.props,i=r.getClassNameFromAlign(n);e.currentAlignClassName!==i&&(e.currentAlignClassName=i,t.className=e.getClassName(i)),r.onAlign(t,n)},this.setStretchSize=function(){var t=e.props,n=t.stretch,r=t.getRootDomNode,i=t.visible,o=e.state,a=o.stretchChecked,s=o.targetHeight,l=o.targetWidth;if(n&&i){var c=r();if(c){var u=c.offsetHeight,h=c.offsetWidth;s===u&&l===h&&a||e.setState({stretchChecked:!0,targetHeight:u,targetWidth:h})}}else a&&e.setState({stretchChecked:!1})},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){var t=e.props.point;return t||e.getTargetElement}},vt=mt;function yt(){}function bt(){return""}function wt(){return window.document}var xt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],_t=!!m["createPortal"],Et={rcTrigger:p.a.shape({onPopupMouseDown:p.a.func})},St=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));Ct.call(r);var i=void 0;return i="popupVisible"in n?!!n.popupVisible:!!n.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},xt.forEach(function(e){r["fire"+e]=function(t){r.fireEvents(e,t)}}),r}return u()(t,e),t.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},t.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state,i=function(){t.popupVisible!==r.popupVisible&&n.afterPopupVisibleChange(r.popupVisible)};if(_t||this.renderComponent(null,i),r.popupVisible){var o=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(o=n.getDocument(),this.clickOutsideHandler=Object(b["a"])(o,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(o=o||n.getDocument(),this.touchOutsideHandler=Object(b["a"])(o,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(o=o||n.getDocument(),this.contextMenuOutsideHandler1=Object(b["a"])(o,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(b["a"])(window,"blur",this.onContextMenuClose)))}this.clearOutsideHandler()},t.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},t.getDerivedStateFromProps=function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r},t.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},t.prototype.getPopupAlign=function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?C(r,t,n):n},t.prototype.setPopupVisible=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&&this.setPoint(t)},t.prototype.delaySetPopupVisible=function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(function(){r.setPopupVisible(e,o),r.clearDelayTimer()},i)}else this.setPopupVisible(e,n)},t.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},t.prototype.clearOutsideHandler=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)},t.prototype.createTwoChains=function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},t.prototype.isClickToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isContextMenuToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")},t.prototype.isClickToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isMouseEnterToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")},t.prototype.isMouseLeaveToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")},t.prototype.isFocusToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},t.prototype.isBlurToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},t.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},t.prototype.fireEvents=function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)},t.prototype.close=function(){this.setPopupVisible(!1)},t.prototype.render=function(){var e=this,t=this.state.popupVisible,n=this.props,r=n.children,i=n.forceRender,o=n.alignPoint,a=n.className,s=f.a.Children.only(r),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,o&&(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 c=E()(s&&s.props&&s.props.className,a);c&&(l.className=c);var u=f.a.cloneElement(s,l);if(!_t)return f.a.createElement(w["a"],{parent:this,visible:t,autoMount:!1,forceRender:i,getComponent:this.getComponent,getContainer:this.getContainer},function(t){var n=t.renderComponent;return e.renderComponent=n,u});var h=void 0;return(t||this._component||i)&&(h=f.a.createElement(x["a"],{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[u,h]},t}(f.a.Component);St.propTypes={children:p.a.any,action:p.a.oneOfType([p.a.string,p.a.arrayOf(p.a.string)]),showAction:p.a.any,hideAction:p.a.any,getPopupClassNameFromAlign:p.a.any,onPopupVisibleChange:p.a.func,afterPopupVisibleChange:p.a.func,popup:p.a.oneOfType([p.a.node,p.a.func]).isRequired,popupStyle:p.a.object,prefixCls:p.a.string,popupClassName:p.a.string,className:p.a.string,popupPlacement:p.a.string,builtinPlacements:p.a.object,popupTransitionName:p.a.oneOfType([p.a.string,p.a.object]),popupAnimation:p.a.any,mouseEnterDelay:p.a.number,mouseLeaveDelay:p.a.number,zIndex:p.a.number,focusDelay:p.a.number,blurDelay:p.a.number,getPopupContainer:p.a.func,getDocument:p.a.func,forceRender:p.a.bool,destroyPopupOnHide:p.a.bool,mask:p.a.bool,maskClosable:p.a.bool,onPopupAlign:p.a.func,popupAlign:p.a.object,popupVisible:p.a.bool,defaultPopupVisible:p.a.bool,maskTransitionName:p.a.oneOfType([p.a.string,p.a.object]),maskAnimation:p.a.string,stretch:p.a.string,alignPoint:p.a.bool},St.contextTypes=Et,St.childContextTypes=Et,St.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:bt,getDocument:wt,onPopupVisibleChange:yt,afterPopupVisibleChange:yt,onPopupAlign:yt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var Ct=function(){var e=this;this.onMouseEnter=function(t){var n=e.props.mouseEnterDelay;e.fireEvents("onMouseEnter",t),e.delaySetPopupVisible(!0,n,n?null:t)},this.onMouseMove=function(t){e.fireEvents("onMouseMove",t),e.setPoint(t)},this.onMouseLeave=function(t){e.fireEvents("onMouseLeave",t),e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){e.clearDelayTimer()},this.onPopupMouseLeave=function(t){t.relatedTarget&&!t.relatedTarget.setTimeout&&e._component&&e._component.getPopupDomNode&&Object(y["a"])(e._component.getPopupDomNode(),t.relatedTarget)||e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onFocus=function(t){e.fireEvents("onFocus",t),e.clearDelayTimer(),e.isFocusToShow()&&(e.focusTime=Date.now(),e.delaySetPopupVisible(!0,e.props.focusDelay))},this.onMouseDown=function(t){e.fireEvents("onMouseDown",t),e.preClickTime=Date.now()},this.onTouchStart=function(t){e.fireEvents("onTouchStart",t),e.preTouchTime=Date.now()},this.onBlur=function(t){e.fireEvents("onBlur",t),e.clearDelayTimer(),e.isBlurToHide()&&e.delaySetPopupVisible(!1,e.props.blurDelay)},this.onContextMenu=function(t){t.preventDefault(),e.fireEvents("onContextMenu",t),e.setPopupVisible(!0,t)},this.onContextMenuClose=function(){e.isContextMenuToShow()&&e.close()},this.onClick=function(t){if(e.fireEvents("onClick",t),e.focusTime){var n=void 0;if(e.preClickTime&&e.preTouchTime?n=Math.min(e.preClickTime,e.preTouchTime):e.preClickTime?n=e.preClickTime:e.preTouchTime&&(n=e.preTouchTime),Math.abs(n-e.focusTime)<20)return;e.focusTime=0}e.preClickTime=0,e.preTouchTime=0,e.isClickToShow()&&(e.isClickToHide()||e.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var r=!e.state.popupVisible;(e.isClickToHide()&&!r||r&&e.isClickToShow())&&e.setPopupVisible(!e.state.popupVisible,t)},this.onPopupMouseDown=function(){var t=e.context.rcTrigger,n=void 0===t?{}:t;e.hasPopupMouseDown=!0,clearTimeout(e.mouseDownTimeout),e.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},this.onDocumentClick=function(t){if(!e.props.mask||e.props.maskClosable){var n=t.target,r=Object(m["findDOMNode"])(e);Object(y["a"])(r,n)||e.hasPopupMouseDown||e.close()}},this.getRootDomNode=function(){return Object(m["findDOMNode"])(e)},this.getPopupClassNameFromAlign=function(t){var n=[],r=e.props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return i&&o&&n.push(k(o,a,t,s)),l&&n.push(l(t)),n.join(" ")},this.getComponent=function(){var t=e.props,n=t.prefixCls,r=t.destroyPopupOnHide,o=t.popupClassName,a=t.action,s=t.onPopupAlign,l=t.popupAnimation,c=t.popupTransitionName,u=t.popupStyle,h=t.mask,d=t.maskAnimation,p=t.maskTransitionName,m=t.zIndex,g=t.popup,v=t.stretch,y=t.alignPoint,b=e.state,w=b.popupVisible,x=b.point,_=e.getPopupAlign(),E={};return e.isMouseEnterToShow()&&(E.onMouseEnter=e.onPopupMouseEnter),e.isMouseLeaveToHide()&&(E.onMouseLeave=e.onPopupMouseLeave),E.onMouseDown=e.onPopupMouseDown,E.onTouchStart=e.onPopupMouseDown,f.a.createElement(vt,i()({prefixCls:n,destroyPopupOnHide:r,visible:w,point:y&&x,className:o,action:a,align:_,onAlign:s,animation:l,getClassNameFromAlign:e.getPopupClassNameFromAlign},E,{stretch:v,getRootDomNode:e.getRootDomNode,style:u,mask:h,zIndex:m,transitionName:c,maskAnimation:d,maskTransitionName:p,ref:e.savePopup}),"function"===typeof g?g():g)},this.getContainer=function(){var t=e.props,n=document.createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%";var r=t.getPopupContainer?t.getPopupContainer(Object(m["findDOMNode"])(e)):t.getDocument().body;return r.appendChild(n),n},this.setPoint=function(t){var n=e.props.alignPoint;n&&t&&e.setState({point:{pageX:t.pageX,pageY:t.pageY}})},this.handlePortalUpdate=function(){e.state.prevPopupVisible!==e.state.popupVisible&&e.props.afterPopupVisibleChange(e.state.popupVisible)},this.savePopup=function(t){e._component=t}};Object(v["polyfill"])(St);t["a"]=St},uhBA:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass,!1)}),function(){ace.require(["ace/theme/github"],function(t){e&&(e.exports=t)})}()}).call(this,n("YuTi")(e))},usdK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.push=o,t.replace=a,t.go=s,t.goBack=l,t.goForward=c,t.default=void 0;var r=i(n("RFCh"));function i(e){return e&&e.__esModule?e:{default:e}}function o(){r.default.push.apply(r.default,arguments)}function a(){r.default.replace.apply(r.default,arguments)}function s(){r.default.go.apply(r.default,arguments)}function l(){r.default.goBack.apply(r.default,arguments)}function c(){r.default.goForward.apply(r.default,arguments)}var u={push:o,replace:a,go:s,goBack:l,goForward:c};t.default=u},uzXD:function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("Mwp2"),n("VXEj")),a=(n("/zsF"),n("PArb")),s=(n("5NDa"),n("5rEg")),l=(n("+L6B"),n("2/Rp")),c=(n("miYZ"),n("tsqr")),u=(n("5Dmo"),n("3S7+")),h=(n("Awhp"),n("KrTs")),f=(n("BoS7"),n("Sdc0")),d=(n("qVdP"),n("jsC+")),p=(n("lUTK"),n("BvKs")),m=(n("Pwec"),n("CtXQ")),g=(n("+BJd"),n("mr32")),v=n("q1tI"),y=n.n(v),b=n("Bl7J"),w=n("H9LU"),x=n("qqou"),_=n("/MKj"),E=n("+QRC"),S=n.n(E),C=n("I1u9"),k=n("ykC2"),O=n("B6Jk"),T=n.n(O),A=n("yWgo"),P=n("AMgb"),M=n.n(P),R=n("Oa6W"),j=n("v32e");class L extends y.a.Component{constructor(e){super(e),this.state={searchKey:void 0,sortMode:!0,pageSize:Object(A["e"])("server_manage_page_size")||10}}componentDidMount(){this.props.dispatch({type:"serverManage/getNodes"}),this.props.dispatch({type:"serverGroup/fetch"})}getTypeTag(e,t){switch(e){case"shadowsocks":return y.a.createElement(g["a"],{color:"#489851"},t);case"v2ray":return y.a.createElement(g["a"],{color:"#CB3180"},t);case"trojan":return y.a.createElement(g["a"],{color:"#EAB854"},t)}}getDispatchTypeByType(e,t){switch(e){case"shadowsocks":return"serverShadowsocks/".concat(t);case"v2ray":return"serverV2ray/".concat(t);case"trojan":return"serverTrojan/".concat(t)}}copy(e){this.props.dispatch({type:this.getDispatchTypeByType(e.type,"copy"),id:e.id})}update(e,t,n){this.props.dispatch({type:this.getDispatchTypeByType(e.type,"update"),id:e.id,key:t,value:n})}drop(e){this.props.dispatch({type:this.getDispatchTypeByType(e.type,"drop"),id:e.id})}render(){var e,t,n,r=this.props.serverManage,v=r.servers,_=r.fetchLoading,E=r.sortMode,O=this.props.serverGroup.groups,P=this.state.searchKey,L={0:"error",1:"warning",2:"processing"},D=(e,t)=>y.a.createElement(d["a"],{trigger:"click",overlay:y.a.createElement(p["a"],null,y.a.createElement(p["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},"shadowsocks"===e.type&&y.a.createElement(w["a"],{key:e.id,record:e},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"edit"})," \u7f16\u8f91")),"v2ray"===e.type&&y.a.createElement(C["a"],{key:e.id,record:e},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"edit"})," \u7f16\u8f91")),"trojan"===e.type&&y.a.createElement(k["a"],{key:e.id,record:e},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"edit"})," \u7f16\u8f91"))),y.a.createElement(p["a"].Item,{onClick:()=>this.copy(e)},y.a.createElement(m["a"],{type:"copy"})," \u590d\u5236"),y.a.createElement(p["a"].Item,{style:{color:"#ff4d4f"},onClick:()=>this.drop(e)},y.a.createElement(m["a"],{type:"delete"})," \u5220\u9664"))},t||y.a.createElement("a",{href:"javascript:void(0);"},"\u64cd\u4f5c ",y.a.createElement(m["a"],{type:"caret-down"}))),N=[{title:"\u8282\u70b9ID",dataIndex:"id",key:"id",width:150,filters:["Shadowsocks","V2ray","Trojan"].map(e=>({text:e,value:e})),onFilter:(e,t)=>t.type===e.toLowerCase(),render:(e,t)=>{return y.a.createElement("span",null,this.getTypeTag(t.type,t.parent_id?e+" => "+t.parent_id:e))}},{title:"\u663e\u9690",dataIndex:"show",key:"show",render:(e,t)=>{return y.a.createElement(f["a"],{size:"small",checked:parseInt(e),onClick:()=>this.update(t,"show",parseInt(e)?0:1)})}},{title:y.a.createElement("span",null,y.a.createElement(u["a"],{placement:"top",title:y.a.createElement("div",null,y.a.createElement(h["a"],{status:"error"})," \u672a\u8fd0\u884c",y.a.createElement("br",null),y.a.createElement(h["a"],{status:"warning"})," \u65e0\u4eba\u4f7f\u7528\u6216\u670d\u52a1\u7aef\u4e0a\u62a5\u5f02\u5e38",y.a.createElement("br",null),y.a.createElement(h["a"],{status:"processing"})," \u8fd0\u884c\u6b63\u5e38",y.a.createElement("br",null))},"\u8282\u70b9 ",y.a.createElement(m["a"],{type:"question-circle"}))),dataIndex:"name",key:"name",render:(e,t)=>{return y.a.createElement(y.a.Fragment,null,y.a.createElement(h["a"],{status:L[t.available_status]}),y.a.createElement("span",null,e))}},{title:"\u5730\u5740",dataIndex:"host",key:"host",render:(e,t)=>{return y.a.createElement("span",{style:{cursor:"pointer"},onClick:()=>{S()(t.host),c["a"].success("\u590d\u5236\u6210\u529f")}},t.host+":"+t.port)}},{title:y.a.createElement("span",null,y.a.createElement(u["a"],{placement:"top",title:"\u6839\u636e\u670d\u52a1\u7aef\u4e0a\u62a5\u9891\u7387\u800c\u5b9a"},"\u4eba\u6570 ",y.a.createElement(m["a"],{type:"question-circle"}))),dataIndex:"online",key:"online",align:"left",width:130,sorter:(e,t)=>e.online-t.online,render:e=>{return y.a.createElement(y.a.Fragment,null,y.a.createElement(m["a"],{type:"user"})," ",e||0)}},{title:y.a.createElement(u["a"],{placement:"top",title:"\u4f7f\u7528\u7684\u6d41\u91cf\u5c06\u4e58\u4ee5\u500d\u7387\u8fdb\u884c\u6263\u9664"},"\u500d\u7387 ",y.a.createElement(m["a"],{type:"question-circle"})),dataIndex:"rate",key:"rate",align:"center",render:e=>{return y.a.createElement(g["a"],{style:{minWidth:60}},e+" x")}},{title:"\u6743\u9650\u7ec4",dataIndex:"group_id",key:"group_id",filters:O.map(e=>({text:e.name,value:e.id})),onFilter:(e,t)=>-1!==t.group_id.indexOf("".concat(e)),render:(e,t)=>{var n=[];return t.group_id.map(e=>{var t=O.find(t=>t.id===parseInt(e));t&&n.push(y.a.createElement(g["a"],null,t.name))}),y.a.createElement(y.a.Fragment,null,n)}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",width:100,render:(e,t,n)=>{return y.a.createElement("div",null,D(t))}}],I=this;return y.a.createElement(b["a"],i()({},this.props,{title:"\u8282\u70b9\u7ba1\u7406"}),y.a.createElement(M.a,{when:E,message:e=>{return window.confirm("\u8282\u70b9\u6392\u5e8f\u8fd8\u6ca1\u6709\u4fdd\u5b58\uff0c\u662f\u5426\u79bb\u5f00")}}),y.a.createElement(j["a"],{loading:_},y.a.createElement("div",{className:"block block-bottom ".concat(T.a.manage)},y.a.createElement("div",{className:"bg-white"},y.a.createElement("div",{className:"v2board-table-action",style:{padding:15}},y.a.createElement(d["a"],{overlay:y.a.createElement(p["a"],null,y.a.createElement(p["a"].Item,null,y.a.createElement(w["a"],{key:Math.random()},y.a.createElement("a",null,this.getTypeTag("shadowsocks","Shadowsocks")))),y.a.createElement(p["a"].Item,null,y.a.createElement(C["a"],{key:Math.random()},y.a.createElement("a",null,this.getTypeTag("v2ray","V2ray")))),y.a.createElement(p["a"].Item,null,y.a.createElement(k["a"],{key:Math.random()},y.a.createElement("a",null,this.getTypeTag("trojan","Trojan")))))},y.a.createElement(l["a"],null,y.a.createElement(m["a"],{type:"plus"}))),y.a.createElement(s["a"],{placeholder:"\u8f93\u5165\u4efb\u610f\u5173\u952e\u5b57\u641c\u7d22",style:{width:200},className:"ml-2",onChange:e=>this.setState({searchKey:e.target.value})}),!Object(A["f"])()&&y.a.createElement(l["a"],{style:{float:"right"},type:"primary",onClick:()=>{E?this.props.dispatch({type:"serverManage/saveSort"}):this.props.dispatch({type:"serverManage/setState",payload:{sortMode:!0}})}},E?"\u4fdd\u5b58\u6392\u5e8f":"\u7f16\u8f91\u6392\u5e8f")),Object(A["f"])()?y.a.createElement(o["a"],{className:"v2board-table",itemLayout:"vertical",dataSource:P?v.filter(e=>-1!==JSON.stringify(e).indexOf(P)):v,renderItem:e=>y.a.createElement(o["a"].Item,{className:"v2board_node_mobile ".concat(e.parent_id?"child_node":""),actions:[y.a.createElement(y.a.Fragment,null,this.getTypeTag(e.type,e.parent_id?e.id+" => "+e.parent_id:e.id),y.a.createElement(g["a"],null,y.a.createElement(m["a"],{type:"user"})," ",e.online||0),y.a.createElement(g["a"],null,e.rate," x"))],extra:y.a.createElement(y.a.Fragment,null,y.a.createElement(f["a"],{size:"small",checked:parseInt(e.show),onClick:()=>this.update(e,"show",parseInt(e.show)?0:1)}),y.a.createElement(a["a"],{type:"vertical"}),y.a.createElement("span",null,D(e)))},y.a.createElement(o["a"].Item.Meta,{title:y.a.createElement(y.a.Fragment,null,y.a.createElement(h["a"],{status:L[e.available_status]}),e.name),description:"".concat(e.host,":").concat(e.port)}))}):y.a.createElement(x["a"],{onDragEnd:(e,t)=>{I.props.dispatch({type:"serverManage/sort",fromIndex:e,toIndex:t})},nodeSelector:"tr",handleSelector:"i"},y.a.createElement(R["a"],{onContextMenu:e=>{this.record=e,this.forceUpdate()},disableRightClick:E,tableLayout:"auto",dataSource:P?v.filter(e=>-1!==JSON.stringify(e).indexOf(P)):v,columns:E?[{title:"\u6392\u5e8f",dataIndex:"sort",key:"sort",align:"left",width:100,render:(e,t,n)=>{return y.a.createElement("div",null,y.a.createElement(m["a"],{type:"menu",style:{cursor:"move"},title:"\u62d6\u52a8\u6392\u5e8f"}))}},{title:"\u8282\u70b9ID",dataIndex:"id",key:"id",width:150,render:(e,t)=>{return y.a.createElement("span",null,this.getTypeTag(t.type,t.parent_id?e+" => "+t.parent_id:e))}},{title:"\u8282\u70b9",dataIndex:"name",key:"name"}]:N,pagination:!E&&{pageSize:this.state.pageSize,pageSizeOptions:["10","50","100","500"],showSizeChanger:!0,onShowSizeChange:(e,t)=>{this.setState({pageSize:t},()=>{Object(A["j"])("server_manage_page_size",t)})}},scroll:{x:1300},rowClassName:e=>e.parent_id?"child_node":""},y.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"},y.a.createElement("li",{className:"ant-dropdown-menu-item"},"shadowsocks"===(null===(e=this.record)||void 0===e?void 0:e.type)&&y.a.createElement(w["a"],{key:Math.random(),record:this.record},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"form"})," \u7f16\u8f91")),"v2ray"===(null===(t=this.record)||void 0===t?void 0:t.type)&&y.a.createElement(C["a"],{key:Math.random(),record:this.record},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"form"})," \u7f16\u8f91")),"trojan"===(null===(n=this.record)||void 0===n?void 0:n.type)&&y.a.createElement(k["a"],{key:Math.random(),record:this.record},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"form"})," \u7f16\u8f91"))),y.a.createElement("li",{onClick:()=>this.copy(this.record),className:"ant-dropdown-menu-item"},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"copy"})," \u590d\u5236")),y.a.createElement("li",{onClick:()=>this.drop(this.record),className:"ant-dropdown-menu-item"},y.a.createElement("a",{style:{color:"#ff4d4f"}},y.a.createElement(m["a"],{type:"delete"})," \u5220\u9664")))))))))}}t["default"]=Object(_["c"])(e=>{var t=e.serverManage,n=e.serverGroup;return{serverManage:t,serverGroup:n}})(L)},v32e:function(e,t,n){"use strict";n.d(t,"a",function(){return a});n("T2oS");var r=n("W9HT"),i=n("q1tI"),o=n.n(i);class a extends o.a.Component{render(){return o.a.createElement(r["a"],{spinning:this.props.loading,indicator:o.a.createElement("div",{className:"spinner-grow text-primary"})},this.props.children)}}},vA3T:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("jo6Y"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("V7oC"),u=n.n(c),h=n("FYw3"),f=n.n(h),d=n("mRg0"),p=n.n(d),m=n("q1tI"),g=n.n(m),v=n("17x9"),y=n.n(v),b=n("YEIV"),w=n.n(b),x=n("TSYQ"),_=n.n(x),E=n("hsuR");function S(e,t){var n=e.props,r=n.styles,i=n.panels,o=n.activeKey,a=n.direction,s=e.props.getRef("root"),l=e.props.getRef("nav")||s,c=e.props.getRef("inkBar"),u=e.props.getRef("activeTab"),h=c.style,f=e.props.tabBarPosition,d=Object(E["a"])(i,o);if(t&&(h.display="none"),u){var p=u,m=Object(E["i"])(h);if(Object(E["k"])(h,""),h.width="",h.height="",h.left="",h.top="",h.bottom="",h.right="","top"===f||"bottom"===f){var g=Object(E["c"])(p,l),v=p.offsetWidth;v===s.offsetWidth?v=0:r.inkBar&&void 0!==r.inkBar.width&&(v=parseFloat(r.inkBar.width,10),v&&(g+=(p.offsetWidth-v)/2)),"rtl"===a&&(g=Object(E["e"])(p,"margin-left")-g),m?Object(E["k"])(h,"translate3d("+g+"px,0,0)"):h.left=g+"px",h.width=v+"px"}else{var y=Object(E["f"])(p,l,!0),b=p.offsetHeight;r.inkBar&&void 0!==r.inkBar.height&&(b=parseFloat(r.inkBar.height,10),b&&(y+=(p.offsetHeight-b)/2)),m?(Object(E["k"])(h,"translate3d(0,"+y+"px,0)"),h.top="0"):h.top=y+"px",h.height=b+"px"}}h.display=-1!==d?"block":"none"}var C=function(e){function t(){return l()(this,t),f()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"componentDidMount",value:function(){var e=this;this.timeout=setTimeout(function(){S(e,!0)},0)}},{key:"componentDidUpdate",value:function(){S(this)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.styles,i=t.inkBarAnimated,o=n+"-ink-bar",a=_()((e={},w()(e,o,!0),w()(e,i?o+"-animated":o+"-no-animated",!0),e));return g.a.createElement("div",{style:r.inkBar,className:a,key:"inkBar",ref:this.props.saveRef("inkBar")})}}]),t}(g.a.Component),k=C;C.propTypes={prefixCls:y.a.string,styles:y.a.object,inkBarAnimated:y.a.bool,saveRef:y.a.func,direction:y.a.string},C.defaultProps={prefixCls:"",inkBarAnimated:!0,styles:{},saveRef:function(){}};var O=n("2W6z"),T=n.n(O),A=function(e){function t(){return l()(this,t),f()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.panels,r=t.activeKey,o=t.prefixCls,a=t.tabBarGutter,s=t.saveRef,l=t.tabBarPosition,c=t.renderTabBarNode,u=t.direction,h=[];return g.a.Children.forEach(n,function(t,f){if(t){var d=t.key,p=r===d?o+"-tab-active":"";p+=" "+o+"-tab";var m={};t.props.disabled?p+=" "+o+"-tab-disabled":m={onClick:e.props.onTabClick.bind(e,d)};var v={};r===d&&(v.ref=s("activeTab"));var y=a&&f===n.length-1?0:a,b="rtl"===u?"marginLeft":"marginRight",x=w()({},Object(E["j"])(l)?"marginBottom":b,y);T()("tab"in t.props,"There must be `tab` property on children of Tabs.");var _=g.a.createElement("div",i()({role:"tab","aria-disabled":t.props.disabled?"true":"false","aria-selected":r===d?"true":"false"},m,{className:p,key:d,style:x},v),t.props.tab);c&&(_=c(_)),h.push(_)}}),g.a.createElement("div",{ref:s("navTabsContainer")},h)}}]),t}(g.a.Component),P=A;A.propTypes={activeKey:y.a.string,panels:y.a.node,prefixCls:y.a.string,tabBarGutter:y.a.number,onTabClick:y.a.func,saveRef:y.a.func,renderTabBarNode:y.a.func,tabBarPosition:y.a.string,direction:y.a.string},A.defaultProps={panels:[],prefixCls:[],tabBarGutter:null,onTabClick:function(){},saveRef:function(){}};var M=function(e){function t(){return l()(this,t),f()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.onKeyDown,r=e.className,o=e.extraContent,s=e.style,l=e.tabBarPosition,c=e.children,u=a()(e,["prefixCls","onKeyDown","className","extraContent","style","tabBarPosition","children"]),h=_()(t+"-bar",w()({},r,!!r)),f="top"===l||"bottom"===l,d=f?{float:"right"}:{},p=o&&o.props?o.props.style:{},v=c;return o&&(v=[Object(m["cloneElement"])(o,{key:"extra",style:i()({},d,p)}),Object(m["cloneElement"])(c,{key:"content"})],v=f?v:v.reverse()),g.a.createElement("div",i()({role:"tablist",className:h,tabIndex:"0",ref:this.props.saveRef("root"),onKeyDown:n,style:s},Object(E["b"])(u)),v)}}]),t}(g.a.Component),R=M;M.propTypes={prefixCls:y.a.string,className:y.a.string,style:y.a.object,tabBarPosition:y.a.oneOf(["left","right","top","bottom"]),children:y.a.node,extraContent:y.a.node,onKeyDown:y.a.func,saveRef:y.a.func},M.defaultProps={prefixCls:"",className:"",style:{},tabBarPosition:"top",extraContent:null,children:null,onKeyDown:function(){},saveRef:function(){}};var j=n("sEfC"),L=n.n(j),D=n("bdgK"),N=function(e){function t(e){l()(this,t);var n=f()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.prevTransitionEnd=function(e){if("opacity"===e.propertyName){var t=n.props.getRef("container");n.scrollToActiveTab({target:t,currentTarget:t})}},n.scrollToActiveTab=function(e){var t=n.props.getRef("activeTab"),r=n.props.getRef("navWrap");if((!e||e.target===e.currentTarget)&&t){var i=n.isNextPrevShown()&&n.lastNextPrevShown;if(n.lastNextPrevShown=n.isNextPrevShown(),i){var o=n.getScrollWH(t),a=n.getOffsetWH(r),s=n.offset,l=n.getOffsetLT(r),c=n.getOffsetLT(t);l>c?(s+=l-c,n.setOffset(s)):l+a=0)l=!1,this.setOffset(0,!1),o=0;else if(a1&&void 0!==arguments[1])||arguments[1],n=Math.min(0,e);if(this.offset!==n){this.offset=n;var r={},i=this.props.tabBarPosition,o=this.props.getRef("nav").style,a=Object(E["i"])(o);"left"===i||"right"===i?r=a?{value:"translate3d(0,"+n+"px,0)"}:{name:"top",value:n+"px"}:a?("rtl"===this.props.direction&&(n=-n),r={value:"translate3d("+n+"px,0,0)"}):r={name:"left",value:n+"px"},a?Object(E["k"])(o,r.value):o[r.name]=r.value,t&&this.setNextPrev()}}},{key:"setPrev",value:function(e){this.state.prev!==e&&this.setState({prev:e})}},{key:"setNext",value:function(e){this.state.next!==e&&this.setState({next:e})}},{key:"isNextPrevShown",value:function(e){return e?e.next||e.prev:this.state.next||this.state.prev}},{key:"render",value:function(){var e,t,n,r,i=this.state,o=i.next,a=i.prev,s=this.props,l=s.prefixCls,c=s.scrollAnimated,u=s.navWrapper,h=s.prevIcon,f=s.nextIcon,d=a||o,p=g.a.createElement("span",{onClick:a?this.prev:null,unselectable:"unselectable",className:_()((e={},w()(e,l+"-tab-prev",1),w()(e,l+"-tab-btn-disabled",!a),w()(e,l+"-tab-arrow-show",d),e)),onTransitionEnd:this.prevTransitionEnd},h||g.a.createElement("span",{className:l+"-tab-prev-icon"})),m=g.a.createElement("span",{onClick:o?this.next:null,unselectable:"unselectable",className:_()((t={},w()(t,l+"-tab-next",1),w()(t,l+"-tab-btn-disabled",!o),w()(t,l+"-tab-arrow-show",d),t))},f||g.a.createElement("span",{className:l+"-tab-next-icon"})),v=l+"-nav",y=_()((n={},w()(n,v,!0),w()(n,c?v+"-animated":v+"-no-animated",!0),n));return g.a.createElement("div",{className:_()((r={},w()(r,l+"-nav-container",1),w()(r,l+"-nav-container-scrolling",d),r)),key:"container",ref:this.props.saveRef("container")},p,m,g.a.createElement("div",{className:l+"-nav-wrap",ref:this.props.saveRef("navWrap")},g.a.createElement("div",{className:l+"-nav-scroll"},g.a.createElement("div",{className:y,ref:this.props.saveRef("nav")},u(this.props.children)))))}}]),t}(g.a.Component),I=N;N.propTypes={activeKey:y.a.string,getRef:y.a.func.isRequired,saveRef:y.a.func.isRequired,tabBarPosition:y.a.oneOf(["left","right","top","bottom"]),prefixCls:y.a.string,scrollAnimated:y.a.bool,onPrevClick:y.a.func,onNextClick:y.a.func,navWrapper:y.a.func,children:y.a.node,prevIcon:y.a.node,nextIcon:y.a.node,direction:y.a.node},N.defaultProps={tabBarPosition:"left",prefixCls:"",scrollAnimated:!0,onPrevClick:function(){},onNextClick:function(){},navWrapper:function(e){return e}};var $=function(e){function t(){var e,n,r,i;l()(this,t);for(var o=arguments.length,a=Array(o),s=0;sn)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},d=function(e){delete v[e]},"process"==n("2we2")(h)?r=function(e){h.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",w,!1)):r=y in c("script")?function(e){l.appendChild(c("script"))[y]=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:d}},"vPd/":function(e,t,n){var r=n("kCCV"),i=n("IX3V").each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,function(t){t[e]()})}},e.exports=o},vgmO:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("yLpj"))},vpQ4:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("rePB");function i(e){for(var t=1;t=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},w6GO:function(e,t,n){var r=n("5vMV"),i=n("FpHa");e.exports=Object.keys||function(e){return r(e,i)}},w8uh:function(e,t,n){n("Jaki")("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},wCXF:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n0&&0===this.props.data.length&&this.hasScrollX()&&this.resetScrollX()}},{key:"componentWillUnmount",value:function(){this.resizeEvent&&this.resizeEvent.remove(),this.debouncedWindowResize&&this.debouncedWindowResize.cancel()}},{key:"setScrollPosition",value:function(e){if(this.scrollPosition=e,this.tableNode){var t=this.props.prefixCls;"both"===e?S.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-left")).add("".concat(t,"-scroll-position-right")):S.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-").concat(e))}}},{key:"setScrollPositionClassName",value:function(){var e=this.bodyTable,t=0===e.scrollLeft,n=e.scrollLeft+1>=e.children[0].getBoundingClientRect().width-e.getBoundingClientRect().width;t&&n?this.setScrollPosition("both"):t?this.setScrollPosition("left"):n?this.setScrollPosition("right"):"middle"!==this.scrollPosition&&this.setScrollPosition("middle")}},{key:"isTableLayoutFixed",value:function(){var e=this.props,t=e.tableLayout,n=e.columns,r=void 0===n?[]:n,i=e.useFixedHeader,o=e.scroll,a=void 0===o?{}:o;return"undefined"!==typeof t?"fixed"===t:!!r.some(function(e){var t=e.ellipsis;return!!t})||(!(!i&&!a.y)||!(!a.x||!0===a.x||"max-content"===a.x))}},{key:"resetScrollX",value:function(){this.headTable&&(this.headTable.scrollLeft=0),this.bodyTable&&(this.bodyTable.scrollLeft=0)}},{key:"hasScrollX",value:function(){var e=this.props.scroll,t=void 0===e?{}:e;return"x"in t}},{key:"renderMainTable",value:function(){var e=this.props,t=e.scroll,n=e.prefixCls,r=this.columnManager.isAnyColumnsFixed(),i=r||t.x||t.y,o=[this.renderTable({columns:this.columnManager.groupedColumns(),isAnyColumnsFixed:r}),this.renderEmptyText(),this.renderFooter()];return i?v.createElement("div",{className:"".concat(n,"-scroll")},o):o}},{key:"renderLeftFixedTable",value:function(){var e=this.props.prefixCls;return v.createElement("div",{className:"".concat(e,"-fixed-left")},this.renderTable({columns:this.columnManager.leftColumns(),fixed:"left"}))}},{key:"renderRightFixedTable",value:function(){var e=this.props.prefixCls;return v.createElement("div",{className:"".concat(e,"-fixed-right")},this.renderTable({columns:this.columnManager.rightColumns(),fixed:"right"}))}},{key:"renderTable",value:function(e){var t=e.columns,n=e.fixed,r=e.isAnyColumnsFixed,i=this.props,o=i.prefixCls,a=i.scroll,s=void 0===a?{}:a,l=s.x||n?"".concat(o,"-fixed"):"",c=v.createElement(A.default,{key:"head",columns:t,fixed:n,tableClassName:l,handleBodyScrollLeft:this.handleBodyScrollLeft,expander:this.expander}),u=v.createElement(P.default,{key:"body",columns:t,fixed:n,tableClassName:l,getRowKey:this.getRowKey,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,expander:this.expander,isAnyColumnsFixed:r});return[c,u]}},{key:"renderTitle",value:function(){var e=this.props,t=e.title,n=e.prefixCls;return t?v.createElement("div",{className:"".concat(n,"-title"),key:"title"},t(this.props.data)):null}},{key:"renderFooter",value:function(){var e=this.props,t=e.footer,n=e.prefixCls;return t?v.createElement("div",{className:"".concat(n,"-footer"),key:"footer"},t(this.props.data)):null}},{key:"renderEmptyText",value:function(){var e=this.props,t=e.emptyText,n=e.prefixCls,r=e.data;if(r.length)return null;var i="".concat(n,"-placeholder");return v.createElement("div",{className:i,key:"emptyText"},"function"===typeof t?t():t)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls;this.state.columns?this.columnManager.reset(n.columns):this.state.children&&this.columnManager.reset(null,n.children);var o=C.default(n.prefixCls,n.className,(e={},i(e,"".concat(r,"-fixed-header"),n.useFixedHeader||n.scroll&&n.scroll.y),i(e,"".concat(r,"-scroll-position-left ").concat(r,"-scroll-position-right"),"both"===this.scrollPosition),i(e,"".concat(r,"-scroll-position-").concat(this.scrollPosition),"both"!==this.scrollPosition),i(e,"".concat(r,"-layout-fixed"),this.isTableLayoutFixed()),e)),a=this.columnManager.isAnyColumnsLeftFixed(),s=this.columnManager.isAnyColumnsRightFixed(),l=O.getDataAndAriaProps(n);return v.createElement(_.Provider,{store:this.store},v.createElement(j.default,Object.assign({},n,{columnManager:this.columnManager,getRowKey:this.getRowKey}),function(e){return t.expander=e,v.createElement("div",Object.assign({ref:t.saveTableNodeRef,className:o,style:n.style,id:n.id},l),t.renderTitle(),v.createElement("div",{className:"".concat(r,"-content")},t.renderMainTable(),a&&t.renderLeftFixedTable(),s&&t.renderRightFixedTable()))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.columns&&e.columns!==t.columns?{columns:e.columns,children:null}:e.children!==t.children?{columns:null,children:e.children}:null}}]),n}(v.Component);L.childContextTypes={table:y.any,components:y.any},L.Column=M.default,L.ColumnGroup=R.default,L.defaultProps={data:[],useFixedHeader:!1,rowKey:"key",rowClassName:function(){return""},onRow:function(){},onHeaderRow:function(){},prefixCls:"rc-table",bodyStyle:{},style:{},showHeader:!0,scroll:{},rowRef:function(){return null},emptyText:function(){return"No Data"}},k.polyfill(L),t.default=L},wD64:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=n("3a4m"),c=n.n(l),u=n("yWgo");t["default"]={name:"passport",state:{loginLoading:!1},reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{login(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.email,o=e.password,a=t.put,n.next=4,a({type:"save",payload:{loginLoading:!0}});case 4:return n.next=6,Object(s["b"])("/passport/auth/login",{email:r,password:o});case 6:return l=n.sent,n.next=9,a({type:"save",payload:{loginLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:if(Object(u["h"])(l.data.auth_data),l.data.is_admin){n.next=14;break}return n.abrupt("return");case 14:return c.a.push("/dashboard"),n.next=17,a({type:"user/getUserInfo"});case 17:case"end":return n.stop()}},n)})()}}}},wHrr:function(e,t,n){var r=n("wYm8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},wMpi:function(e,t){function n(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}e.exports=n},wOl0:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=S(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u="suspendedStart",h="suspendedYield",f="executing",d="completed",p={};function m(){}function g(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&r.call(w,o)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function _(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function E(e){function t(n,i,o,a){var s=c(e[n],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"===typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){l.value=e,o(l)},function(e){return t("throw",e,o,a)})}a(s.arg)}var n;function i(e,r){function i(){return new Promise(function(n,i){t(e,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=i}function S(e,t,n){var r=u;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return P()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?d:h,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=d,n.method="throw",n.arg=l.arg)}}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function k(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){while(++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},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 i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},wUWy:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},wYm8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},wZXL:function(e,t,n){var r=n("vPd/"),i=n("IX3V"),o=i.each,a=i.isFunction,s=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var i=this.queries,l=n&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,l)),a(t)&&(t={match:t}),s(t)||(t=[t]),o(t,function(t){a(t)&&(t={match:t}),i[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},wgeU:function(e,t){},"wgp+":function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("wd/R"),l=n.n(s),c=n("TSYQ"),u=n.n(c),h=n("VCL8");function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||v&&v.indexOf(p.minute())>=0||y&&y.indexOf(p.second())>=0)return void n.setState({invalid:!0});if(d){if(d.hour()!==p.hour()||d.minute()!==p.minute()||d.second()!==p.second()){var b=d.clone();b.hour(p.hour()),b.minute(p.minute()),b.second(p.second()),f(b)}}else d!==p&&f(p)}else f(null);n.setState({invalid:!1})}),w(v(n),"onKeyDown",function(e){var t=n.props,r=t.onEsc,i=t.onKeyDown;27===e.keyCode&&r(),i(e)});var r=e.value,i=e.format;return n.state={str:r&&r.format(i)||"",invalid:!1},n}return y(t,e),p(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.focusOnOpen;if(t){var n=window.requestAnimationFrame||window.setTimeout;n(function(){e.refInput.focus(),e.refInput.select()})}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.format;n!==e.value&&this.setState({str:n&&n.format(r)||"",invalid:!1})}},{key:"getProtoValue",value:function(){var e=this.props,t=e.value,n=e.defaultOpenValue;return t||n}},{key:"getInput",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.placeholder,o=t.inputReadOnly,a=this.state,s=a.invalid,l=a.str,c=s?"".concat(n,"-input-invalid"):"";return i.a.createElement("input",{className:u()("".concat(n,"-input"),c),ref:function(t){e.refInput=t},onKeyDown:this.onKeyDown,value:l,placeholder:r,onChange:this.onInputChange,readOnly:!!o})}},{key:"render",value:function(){var e=this.props.prefixCls;return i.a.createElement("div",{className:"".concat(e,"-input-wrap")},this.getInput())}}]),t}(r["Component"]);w(x,"propTypes",{format:a.a.string,prefixCls:a.a.string,disabledDate:a.a.func,placeholder:a.a.string,clearText:a.a.string,value:a.a.object,inputReadOnly:a.a.bool,hourOptions:a.a.array,minuteOptions:a.a.array,secondOptions:a.a.array,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,onChange:a.a.func,onEsc:a.a.func,defaultOpenValue:a.a.object,currentSelectPanel:a.a.string,focusOnOpen:a.a.bool,onKeyDown:a.a.func,clearIcon:a.a.node}),w(x,"defaultProps",{inputReadOnly:!1});var _=x,E=n("i8i4"),S=n.n(E),C=n("xEkU"),k=n.n(C);function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n=0&&(r=!0),{value:n,disabled:r}},Y=function(e){function t(){var e,n;F(this,t);for(var r=arguments.length,i=new Array(r),o=0;o=12&&u.hour(u.hour()-12)),c(h)}else u.second(+t);i(u)}),K(U(n),"onEnterSelectPanel",function(e){var t=n.props.onCurrentSelectPanelChange;t(e)}),n}return z(t,e),V(t,[{key:"getHourSelect",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.hourOptions,a=n.disabledHours,s=n.showHour,l=n.use12Hours,c=n.onEsc;if(!s)return null;var u,h,f=a();return l?(u=[12].concat(o.filter(function(e){return e<12&&e>0})),h=e%12||12):(u=o,h=e),i.a.createElement($,{prefixCls:r,options:u.map(function(e){return G(e,f)}),selectedIndex:u.indexOf(h),type:"hour",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("hour")},onEsc:c})}},{key:"getMinuteSelect",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.minuteOptions,a=n.disabledMinutes,s=n.defaultOpenValue,l=n.showMinute,c=n.value,u=n.onEsc;if(!l)return null;var h=c||s,f=a(h.hour());return i.a.createElement($,{prefixCls:r,options:o.map(function(e){return G(e,f)}),selectedIndex:o.indexOf(e),type:"minute",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("minute")},onEsc:u})}},{key:"getSecondSelect",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.secondOptions,a=n.disabledSeconds,s=n.showSecond,l=n.defaultOpenValue,c=n.value,u=n.onEsc;if(!s)return null;var h=c||l,f=a(h.hour(),h.minute());return i.a.createElement($,{prefixCls:r,options:o.map(function(e){return G(e,f)}),selectedIndex:o.indexOf(e),type:"second",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("second")},onEsc:u})}},{key:"getAMPMSelect",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.use12Hours,o=t.format,a=t.isAM,s=t.onEsc;if(!r)return null;var l=["am","pm"].map(function(e){return o.match(/\sA/)?e.toUpperCase():e}).map(function(e){return{value:e}}),c=a?0:1;return i.a.createElement($,{prefixCls:n,options:l,selectedIndex:c,type:"ampm",onSelect:this.onItemChange,onMouseEnter:function(){return e.onEnterSelectPanel("ampm")},onEsc:s})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.defaultOpenValue,r=e.value,o=r||n;return i.a.createElement("div",{className:"".concat(t,"-combobox")},this.getHourSelect(o.hour()),this.getMinuteSelect(o.minute()),this.getSecondSelect(o.second()),this.getAMPMSelect(o.hour()))}}]),t}(r["Component"]);K(Y,"propTypes",{format:a.a.string,defaultOpenValue:a.a.object,prefixCls:a.a.string,value:a.a.object,onChange:a.a.func,onAmPmChange:a.a.func,showHour:a.a.bool,showMinute:a.a.bool,showSecond:a.a.bool,hourOptions:a.a.array,minuteOptions:a.a.array,secondOptions:a.a.array,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,onCurrentSelectPanelChange:a.a.func,use12Hours:a.a.bool,onEsc:a.a.func,isAM:a.a.bool});var X=Y;function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:1,i=[],o=0;o=0&&n.hour()<12}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.placeholder,o=e.disabledMinutes,a=e.disabledSeconds,s=e.hideDisabledOptions,l=e.showHour,c=e.showMinute,h=e.showSecond,f=e.format,d=e.defaultOpenValue,p=e.clearText,m=e.onEsc,g=e.addon,v=e.use12Hours,y=e.focusOnOpen,b=e.onKeyDown,w=e.hourStep,x=e.minuteStep,E=e.secondStep,S=e.inputReadOnly,C=e.clearIcon,k=this.state,O=k.value,T=k.currentSelectPanel,A=this.disabledHours(),P=o(O?O.hour():null),M=a(O?O.hour():null,O?O.minute():null),R=ce(24,A,s,w),j=ce(60,P,s,x),L=ce(60,M,s,E),D=ue(d,R,j,L);return i.a.createElement("div",{className:u()(n,"".concat(t,"-inner"))},i.a.createElement(_,{clearText:p,prefixCls:t,defaultOpenValue:D,value:O,currentSelectPanel:T,onEsc:m,format:f,placeholder:r,hourOptions:R,minuteOptions:j,secondOptions:L,disabledHours:this.disabledHours,disabledMinutes:o,disabledSeconds:a,onChange:this.onChange,focusOnOpen:y,onKeyDown:b,inputReadOnly:S,clearIcon:C}),i.a.createElement(X,{prefixCls:t,value:O,defaultOpenValue:D,format:f,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:l,showMinute:c,showSecond:h,hourOptions:R,minuteOptions:j,secondOptions:L,disabledHours:this.disabledHours,disabledMinutes:o,disabledSeconds:a,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:v,onEsc:m,isAM:this.isAM()}),g(this))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e?Z({},t,{value:e.value}):null}}]),t}(r["Component"]);se(he,"propTypes",{clearText:a.a.string,prefixCls:a.a.string,className:a.a.string,defaultOpenValue:a.a.object,value:a.a.object,placeholder:a.a.string,format:a.a.string,inputReadOnly:a.a.bool,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,hideDisabledOptions:a.a.bool,onChange:a.a.func,onAmPmChange:a.a.func,onEsc:a.a.func,showHour:a.a.bool,showMinute:a.a.bool,showSecond:a.a.bool,use12Hours:a.a.bool,hourStep:a.a.number,minuteStep:a.a.number,secondStep:a.a.number,addon:a.a.func,focusOnOpen:a.a.bool,onKeyDown:a.a.func,clearIcon:a.a.node}),se(he,"defaultProps",{prefixCls:"rc-time-picker-panel",onChange:le,disabledHours:le,disabledMinutes:le,disabledSeconds:le,defaultOpenValue:l()(),use12Hours:!1,addon:le,onKeyDown:le,onAmPmChange:le,inputReadOnly:!1}),Object(h["polyfill"])(he);t["a"]=he},wlPd:function(e,t,n){"use strict";var r=n("il4q"),i=n("Spc3"),o=n("OsVd");e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),l=i(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:i(c,a))-l,a-s),h=1;l0)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},x1Ya:function(e,t,n){"use strict";var r=n("jo6Y"),i=n.n(r),o=n("QbLZ"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("FYw3"),u=n.n(c),h=n("mRg0"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("17x9"),g=n.n(m),v=n("TSYQ"),y=n.n(v),b=n("VCL8"),w=function(e){function t(n){l()(this,t);var r=u()(this,e.call(this,n));r.handleChange=function(e){var t=r.props,n=t.disabled,i=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),i&&i({target:a()({},r.props,{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var i="checked"in n?n.checked:n.defaultChecked;return r.state={checked:i},r}return f()(t,e),t.getDerivedStateFromProps=function(e,t){return"checked"in e?a()({},t,{checked:e.checked}):null},t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.className,o=t.style,s=t.name,l=t.id,c=t.type,u=t.disabled,h=t.readOnly,f=t.tabIndex,d=t.onClick,m=t.onFocus,g=t.onBlur,v=t.autoFocus,b=t.value,w=i()(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","autoFocus","value"]),x=Object.keys(w).reduce(function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=w[t]),e},{}),_=this.state.checked,E=y()(n,r,(e={},e[n+"-checked"]=_,e[n+"-disabled"]=u,e));return p.a.createElement("span",{className:E,style:o},p.a.createElement("input",a()({name:s,id:l,type:c,readOnly:h,disabled:u,tabIndex:f,className:n+"-input",checked:!!_,onClick:d,onFocus:m,onBlur:g,onChange:this.handleChange,autoFocus:v,ref:this.saveInput,value:b},x)),p.a.createElement("span",{className:n+"-inner"}))},t}(d["Component"]);w.propTypes={prefixCls:g.a.string,className:g.a.string,style:g.a.object,name:g.a.string,id:g.a.string,type:g.a.string,defaultChecked:g.a.oneOfType([g.a.number,g.a.bool]),checked:g.a.oneOfType([g.a.number,g.a.bool]),disabled:g.a.bool,onFocus:g.a.func,onBlur:g.a.func,onChange:g.a.func,onClick:g.a.func,tabIndex:g.a.oneOfType([g.a.string,g.a.number]),readOnly:g.a.bool,autoFocus:g.a.bool,value:g.a.any},w.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){}},Object(b["polyfill"])(w);var x=w;t["a"]=x},x6Kt:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt");function o(e,t){var n,r,i,o,a,s=t.x,l=t.y,c=t.width,u=t.height,h=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>c&&(a=n+r,n*=c/a,r*=c/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),r+i>u&&(a=r+i,r*=u/a,i*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-r,l),0!==r&&e.arc(s+c-r,l+r,r,-Math.PI/2,0),e.lineTo(s+c,l+u-i),0!==i&&e.arc(s+c-i,l+u-i,i,0,Math.PI/2),e.lineTo(s+o,l+u),0!==o&&e.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var a=n("nPnh"),s=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),l={},c=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var c=Object(a["c"])(l,t,this.style);n=c.x,r=c.y,i=c.width,s=c.height,c.r=t.r,t=c}else n=t.x,r=t.y,i=t.width,s=t.height;t.r?o(e,t):e.rect(n,r,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i["b"]);c.prototype.type="rect";t["a"]=c},xEkU:function(e,t,n){(function(t){for(var r=n("bQgK"),i="undefined"===typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1=56320&&l<=57343)){u+=encodeURIComponent(e[r]+e[r+1]),r++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[r]);return u}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",e.exports=o},xI0J:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.connect=t.Provider=void 0;var r=n("Z4ex"),i=c(r),o=n("V/6I"),a=c(o),s=n("luuN"),l=c(s);function c(e){return e&&e.__esModule?e:{default:e}}t.Provider=i.default,t.connect=a.default,t.create=l.default},xJie:function(e,t,n){var r=n("oxo0"),i=n("OeOC"),o=n("Lnex")(!1),a=n("J57/")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},xKz9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=o(n("q1tI")),i=o(n("CnBM"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\ud835\udd26","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\ud835\udd0f","lfr":"\ud835\udd29","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\ud835\udd43","lopf":"\ud835\udd5d","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\ud835\udcc1","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\ud835\udd10","mfr":"\ud835\udd2a","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\ud835\udd5f","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\ud835\udca9","nscr":"\ud835\udcc3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\ud835\udd12","ofr":"\ud835\udd2c","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\ud835\udd46","oopf":"\ud835\udd60","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\ud835\udcaa","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\ud835\udd13","pfr":"\ud835\udd2d","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\ud835\udd61","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\ud835\udd2f","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\ud835\udd16","sfr":"\ud835\udd30","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\ud835\udd4a","sopf":"\ud835\udd64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\ud835\udcae","sscr":"\ud835\udcc8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\ud835\udd17","tfr":"\ud835\udd31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\ud835\udd4b","topf":"\ud835\udd65","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\ud835\udcaf","tscr":"\ud835\udcc9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\ud835\udd18","ufr":"\ud835\udd32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\ud835\udd4c","uopf":"\ud835\udd66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\ud835\udcb0","uscr":"\ud835\udcca","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')},xg5P:function(e,t,n){"use strict";n.r(t),n.d(t,"_onCreate",function(){return h}),n.d(t,"getApp",function(){return f}),n.d(t,"_DvaContainer",function(){return d});var r=n("p0pE"),i=n.n(r),o=n("Hg0r"),a=n("q1tI"),s=n("0Wa5"),l=n.n(s),c=n("RFCh"),u=null;function h(){var e=n("PszG"),t=e.mergeConfig("dva");return u=Object(o["a"])(i()({history:c["default"]},t.config||{},window.g_useSSR?{initialState:window.g_initialData}:{})),u.use(l()()),(t.plugins||[]).forEach(e=>{u.use(e)}),u.model(i()({namespace:"auth"},n("dX6P").default)),u.model(i()({namespace:"config"},n("6lKK").default)),u.model(i()({namespace:"coupon"},n("eOCx").default)),u.model(i()({namespace:"knowledge"},n("mHNb").default)),u.model(i()({namespace:"layout"},n("7tDr").default)),u.model(i()({namespace:"notice"},n("lETv").default)),u.model(i()({namespace:"order"},n("3moC").default)),u.model(i()({namespace:"passport"},n("wD64").default)),u.model(i()({namespace:"payment"},n("N9RS").default)),u.model(i()({namespace:"plan"},n("GmDa").default)),u.model(i()({namespace:"serverGroup"},n("ZlA7").default)),u.model(i()({namespace:"serverManage"},n("1dD/").default)),u.model(i()({namespace:"serverShadowsocks"},n("LMyI").default)),u.model(i()({namespace:"serverTrojan"},n("lWxU").default)),u.model(i()({namespace:"serverV2ray"},n("rB1S").default)),u.model(i()({namespace:"stat"},n("T4gb").default)),u.model(i()({namespace:"system"},n("gENZ").default)),u.model(i()({namespace:"theme"},n("O8oq").default)),u.model(i()({namespace:"ticket"},n("e+9n").default)),u.model(i()({namespace:"user"},n("hlQx").default)),u}function f(){return u}class d extends a["Component"]{render(){var e=f();return e.router(()=>this.props.children),e.start()()}}},"y+Vt":function(e,t,n){"use strict";var r=n("mrSG"),i=n("Gev7"),o=n("IMiH");function a(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,c=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+f&&h>r+f&&h>o+f&&h>l+f||he+f&&u>n+f&&u>i+f&&u>a+f||ut+u&&c>r+u&&c>o+u||ce+u&&l>n+u&&l>i+u||ln||u+ci&&(i+=f);var p=Math.atan2(l,s);return p<0&&(p+=f),p>=r&&p<=i||p+f>=r&&p+f<=i}function p(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var m=o["a"].CMD,g=2*Math.PI,v=1e-4;function y(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>l||u1&&x(),p=s["a"](t,r,o,l,w[0]),d>1&&(m=s["a"](t,r,o,l,w[1]))),2===d?vt&&l>r&&l>o||l=0&&u<=1){for(var h=0,f=s["h"](t,r,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);b[0]=-l,b[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=g-1e-4){r=0,i=g;var u=o?1:-1;return a>=b[0]+e&&a<=b[1]+e?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=g,i+=g);for(var f=0,d=0;d<2;d++){var p=b[d];if(p+e>a){var m=Math.atan2(s,p);u=o?1:-1;m<0&&(m=g+m),(m>=r&&m<=i||m+g>=r&&m+g<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(u=-u),f+=u)}}return f}function C(e,t,n,r,i){for(var o,s,u=e.data,h=e.len(),f=0,g=0,v=0,b=0,w=0,x=0;x1&&(n||(f+=p(g,v,b,w,r,i))),k&&(g=u[x],v=u[x+1],b=g,w=v),C){case m.M:b=u[x++],w=u[x++],g=b,v=w;break;case m.L:if(n){if(a(g,v,u[x],u[x+1],t,r,i))return!0}else f+=p(g,v,u[x],u[x+1],r,i)||0;g=u[x++],v=u[x++];break;case m.C:if(n){if(l(g,v,u[x++],u[x++],u[x++],u[x++],u[x],u[x+1],t,r,i))return!0}else f+=_(g,v,u[x++],u[x++],u[x++],u[x++],u[x],u[x+1],r,i)||0;g=u[x++],v=u[x++];break;case m.Q:if(n){if(c(g,v,u[x++],u[x++],u[x],u[x+1],t,r,i))return!0}else f+=E(g,v,u[x++],u[x++],u[x],u[x+1],r,i)||0;g=u[x++],v=u[x++];break;case m.A:var O=u[x++],T=u[x++],A=u[x++],P=u[x++],M=u[x++],R=u[x++];x+=1;var j=!!(1-u[x++]);o=Math.cos(M)*A+O,s=Math.sin(M)*P+T,k?(b=o,w=s):f+=p(g,v,o,s,r,i);var L=(r-O)*P/A+O;if(n){if(d(O,T,P,M,M+R,j,t,L,i))return!0}else f+=S(O,T,P,M,M+R,j,L,i);g=Math.cos(M+R)*A+O,v=Math.sin(M+R)*P+T;break;case m.R:b=g=u[x++],w=v=u[x++];var D=u[x++],N=u[x++];if(o=b+D,s=w+N,n){if(a(b,w,o,w,t,r,i)||a(o,w,o,s,t,r,i)||a(o,s,b,s,t,r,i)||a(b,s,b,w,t,r,i))return!0}else f+=p(o,w,o,s,r,i),f+=p(b,s,b,w,r,i);break;case m.Z:if(n){if(a(g,v,b,w,t,r,i))return!0}else f+=p(g,v,b,w,r,i);g=b,v=w;break}}return n||y(v,w)||(f+=p(g,v,b,w,r,i)||0),0!==f}function k(e,t,n){return C(e,0,!1,t,n)}function O(e,t,n,r){return C(e,t,!0,n,r)}var T=n("bYtY"),A=n("Qe9p"),P=n("LPTA"),M=n("S8SX"),R=n("hYLj");n.d(t,"a",function(){return j});var j=Object(T["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i["b"]),L={style:Object(T["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i["a"].style)},D=R["a"].concat(["invisible","culling","z","z2","zlevel","parent"]),N=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?P["a"]:t>.2?P["c"]:P["d"]}if(e)return P["d"]}return P["a"]},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(T["y"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(A["c"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&M["b"])&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),O(o,a/s,e,t)))return!0}if(this.hasFill())return k(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=M["b"],this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(T["l"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&M["b"])},t.prototype.createStyle=function(e){return Object(T["g"])(j,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(T["l"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(T["l"])({},r.shape),Object(T["l"])(s,n.shape)):(s=Object(T["l"])({},i?this.shape:r.shape),Object(T["l"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(T["l"])({},this.shape);for(var c={},u=Object(T["B"])(s),h=0;h-1}function q(e,t){var n=this.__data__,r=J(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function K(e){var t=-1,n=e?e.length:0;this.clear();while(++t>1,u=23===t?P(2,-24)-P(2,-77):0,h=0,f=e<0||0===e&&1/e<0?1:0;for(e=A(e),e!=e||e===O?(i=e!=e?1:0,r=l):(r=M(R(e)/j),e*(o=P(2,-r))<1&&(r--,o*=2),e+=r+c>=1?u/o:u*P(2,1-c),e*o>=2&&(r++,o/=2),r+c>=l?(i=0,r=l):r+c>=1?(i=(e*o-1)*P(2,t),r+=c):(i=e*P(2,c-1)*P(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a}function V(e,t,n){var r,i=8*n-t-1,o=(1<>1,s=i-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return r?NaN:c?-O:O;r+=P(2,t),u-=a}return(c?-1:1)*r*P(2,u-t)}function W(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function z(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function q(e){return B(e,52,8)}function K(e){return B(e,23,4)}function G(e,t,n){m(e[w],t,{get:function(){return this[n]}})}function Y(e,t,n,r){var i=+n,o=d(i);if(o+t>e[$])throw k(_);var a=e[I]._b,s=o+e[F],l=a.slice(s,s+t);return r?l:l.reverse()}function X(e,t,n,r,i,o){var a=+n,s=d(a);if(s+t>e[$])throw k(_);for(var l=e[I]._b,c=s+e[F],u=r(+i),h=0;hee;)(Q=J[ee++])in E||s(E,Q,T[Q]);o||(Z.constructor=E)}var te=new S(new E(2)),ne=S[w].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(S[w],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else E=function(e){u(this,E,y);var t=d(e);this._b=g.call(new Array(t),0),this[$]=t},S=function(e,t,n){u(this,S,b),u(e,E,b);var r=e[$],i=h(t);if(i<0||i>r)throw k("Wrong offset!");if(n=void 0===n?r-i:f(n),i+n>r)throw k(x);this[I]=e,this[F]=i,this[$]=n},i&&(G(E,D,"_l"),G(S,L,"_b"),G(S,D,"_l"),G(S,N,"_o")),l(S[w],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return W(Y(this,4,e,arguments[1]))},getUint32:function(e){return W(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return V(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return V(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,H,t)},setUint8:function(e,t){X(this,1,e,H,t)},setInt16:function(e,t){X(this,2,e,U,t,arguments[2])},setUint16:function(e,t){X(this,2,e,U,t,arguments[2])},setInt32:function(e,t){X(this,4,e,z,t,arguments[2])},setUint32:function(e,t){X(this,4,e,z,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,K,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,q,t,arguments[2])}});v(E,y),v(S,b),s(S[w],a.VIEW,!0),t[y]=E,t[b]=S},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===typeof window&&(n=window)}e.exports=n},yQtW:function(e,t,n){(function(e,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("43KI"),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){e.nextTick(function(){c.emit("close")})}),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),o.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(t,n){c._destroyed?n():c.push(new r(e))?t():c._resumeFetch=t})},close:function(){i.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(u).catch(function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)})}catch(e){}}var h=n.body.getReader();function f(){h.read().then(function(e){if(!c._destroyed){if(e.done)return i.clearTimeout(l),void c.push(null);c.push(new r(e.value)),f()}}).catch(function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)})}f()}else{c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText;var d=t.getAllResponseHeaders().split(/\r?\n/);if(d.forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!o.overrideMimeType){var p=c.rawHeaders["mime-type"];if(p){var m=p.match(/;\s*charset=([^;])(;|$)/);m&&(c._charset=m[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{n=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(o.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n);break}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n("Q2Ig"),n("tjlA").Buffer,n("yLpj"))},yVla:function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"===typeof window||!window.document||!window.document.createElement),t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},yWgo:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"i",function(){return l}),n.d(t,"j",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"h",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"c",function(){return m});n("miYZ");var r=n("tsqr"),i=(n("wd/R"),n("+QRC")),o=n.n(i);function a(e){return document.cookie.split("; ").reduce((t,n)=>{var r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function s(){return-1!==window.navigator.userAgent.toLowerCase().indexOf("mobile")}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:525600,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=arguments.length>4?arguments[4]:void 0,o=new Date(Date.now()+6e4*n).toGMTString();document.cookie=e+"=".concat(encodeURIComponent(t),";expires=").concat(o,";path=").concat(r)+(i?";domain=".concat(i):"")}function c(e,t){try{if(localStorage.getItem("habit")){var n=localStorage.getItem("habit");n[e]=t,localStorage.setItem("habit",JSON.stringify(n))}else localStorage.setItem("habit",JSON.stringify({[e]:t}))}catch(n){localStorage.setItem("habit",JSON.stringify({[e]:t}))}}function u(e){try{if(!localStorage.getItem("habit"))return!1;var t=JSON.parse(localStorage.getItem("habit"));return t[e]}catch(e){return!1}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e=parseInt(e);var t=1024,n=1048576,r=1073741824;return e>r?(e/r).toFixed(2)+" GB":e>n?(e/n).toFixed(2)+" MB":e>t?(e/t).toFixed(2)+" KB":e<0?0:e.toFixed(2)+" B"}function f(e){o()(e),r["a"].success("\u590d\u5236\u6210\u529f")}function d(e){return window.localStorage.setItem("authorization",e)}function p(){return window.localStorage.removeItem("authorization")}function m(){return window.localStorage.getItem("authorization")}},ykC2:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("5Dmo"),n("3S7+")),a=(n("Pwec"),n("CtXQ")),s=(n("OaEy"),n("2fM7")),l=(n("5NDa"),n("5rEg")),c=n("p0pE"),u=n.n(c),h=n("q1tI"),f=n.n(h),d=n("/MKj"),p=(n("lc5D"),n("VeWa"),n("umNf"),n("8zNj"));class m extends f.a.Component{constructor(e){super(e),this.state={server:this.props.record||{tls:0,rate:1},visible:!1,childDrawer:{visible:!1}}}onShow(){this.setState({visible:!this.state.visible})}save(){var e=this.state.server;this.props.dispatch({type:"serverTrojan/save",params:e,callback:()=>{this.onShow()}})}showChildDrawer(e,t){this.setState({childDrawer:u()({},this.state.childDrawer,{visible:!this.state.childDrawer.visible,title:e,type:t})})}changeServer(e,t){this.setState({server:u()({},this.state.server,{[e]:t})})}formChange(e,t){this.setState({server:u()({},this.state.server,{[e]:t})})}render(){var e=this.state.server,t=this.props.serverTrojan.saveLoading,n=this.props.serverManage.servers,c=this.props.serverGroup.groups;return f.a.createElement(f.a.Fragment,null,f.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),f.a.createElement(r["a"],{id:"server",maskClosable:!0,title:e.id?"\u7f16\u8f91\u8282\u70b9":"\u65b0\u5efa\u8282\u70b9",width:"80%",visible:this.state.visible,onClose:()=>this.onShow()},f.a.createElement("div",null,f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"form-group col-8"},f.a.createElement("label",null,"\u8282\u70b9\u540d\u79f0"),f.a.createElement(l["a"],{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",value:e.name,onChange:e=>this.formChange("name",e.target.value)})),f.a.createElement("div",{className:"form-group col-4"},f.a.createElement("label",null,"\u500d\u7387"),f.a.createElement(l["a"],{addonAfter:"x",placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u500d\u7387",value:e.rate,onChange:e=>this.formChange("rate",e.target.value)}))),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,"\u8282\u70b9\u6807\u7b7e"),f.a.createElement(s["a"],{mode:"tags",value:e.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>this.formChange("tags",e.length>0?e:null)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,"\u6743\u9650\u7ec4 ",f.a.createElement(p["a"],null,f.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),f.a.createElement(s["a"],{mode:"multiple",value:e.group_id,placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},onChange:e=>this.formChange("group_id",e)},c.map(e=>{return f.a.createElement(s["a"].Option,{key:e.id},e.name)}))),f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"form-group col-md-12 col-xs-12"},f.a.createElement("label",null,"\u8282\u70b9\u5730\u5740"),f.a.createElement(l["a"],{placeholder:"\u5730\u5740\u6216IP",value:e.host,onChange:e=>this.formChange("host",e.target.value)}))),f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},f.a.createElement("label",null,"\u8fde\u63a5\u7aef\u53e3"),f.a.createElement(l["a"],{placeholder:"\u7528\u6237\u8fde\u63a5\u7aef\u53e3",value:e.port,onChange:e=>{this.formChange("port",e.target.value)}})),f.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},f.a.createElement("label",null,"\u670d\u52a1\u7aef\u53e3"),f.a.createElement(l["a"],{placeholder:"\u670d\u52a1\u7aef\u5f00\u653e\u7aef\u53e3",value:e.server_port,onChange:e=>{this.formChange("server_port",e.target.value)}})),f.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},f.a.createElement("label",null,f.a.createElement(o["a"],{placement:"top",title:"\u4f7f\u7528\u81ea\u7b7e\u540d\u8bc1\u4e66\u9700\u8981\u5141\u8bb8\u4e0d\u5b89\u5168\uff0c\u7528\u6237\u624d\u53ef\u4ee5\u8fde\u63a5"},"\u5141\u8bb8\u4e0d\u5b89\u5168 ",f.a.createElement(a["a"],{type:"question-circle"}))),f.a.createElement(s["a"],{value:parseInt(e.allow_insecure)?1:0,placeholder:"\u5141\u8bb8\u4e0d\u5b89\u5168",style:{width:"100%"},onChange:e=>this.formChange("allow_insecure",e)},f.a.createElement(s["a"].Option,{key:0,value:0},"\u5426"),f.a.createElement(s["a"].Option,{key:1,value:1},"\u662f")))),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,"\u670d\u52a1\u5668\u540d\u79f0\u6307\u793a(sni)"),f.a.createElement(l["a"],{placeholder:"\u5f53\u8282\u70b9\u5730\u5740\u4e0e\u8bc1\u4e66\u4e0d\u4e00\u81f4\u65f6\u7528\u4e8e\u8bc1\u4e66\u9a8c\u8bc1",value:e.server_name,onChange:e=>this.formChange("server_name",e.target.value)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,f.a.createElement(o["a"],{placement:"top"},"\u7236\u8282\u70b9 ",f.a.createElement("a",{target:"_blank",href:"https://docs.v2board.com/use/node.html#\u7236\u8282\u70b9\u4e0e\u5b50\u8282\u70b9\u5173\u7cfb",rel:"noreferrer"},"\u66f4\u591a\u89e3\u7b54"))),f.a.createElement(s["a"],{value:e.parent_id||"",onChange:e=>this.formChange("parent_id",e),style:{width:"100%"}},f.a.createElement(s["a"].Option,{value:""},"\u65e0"),n.map(t=>{if("trojan"===t.type&&t.id!==e.id)return f.a.createElement(s["a"].Option,{key:Math.random(),value:t.id},t.name)})))),f.a.createElement("div",{className:"v2board-drawer-action"},f.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.onShow()},"\u53d6\u6d88"),f.a.createElement(i["a"],{loading:t,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4"))))}}t["a"]=Object(d["c"])(e=>{var t=e.serverTrojan,n=e.serverGroup,r=e.serverManage;return{serverTrojan:t,serverGroup:n,serverManage:r}})(m)},yoD8:function(e,t,n){"use strict";var r=n("3Oj7"),i=[0,0],o=[0,0],a=new r["a"],s=new r["a"],l=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r["a"];for(n=0;n<2;n++)this._axes[n]=new r["a"];e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),t)for(var c=0;c<4;c++)n[c].transform(t);r["a"].sub(i[0],n[1],n[0]),r["a"].sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(c=0;c<2;c++)this._origin[c]=i[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,e,a,s,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(e,this,a,s,i,-1)&&(n=!1,i)?n:(i||r["a"].copy(t,n?a:s),n)},e.prototype._intersectCheckOneSide=function(e,t,n,a,s,l){for(var c=!0,u=0;u<2;u++){var h=this._axes[u];if(this._getProjMinMaxOnAxis(u,e._corners,i),this._getProjMinMaxOnAxis(u,t._corners,o),i[1]o[1]){if(c=!1,s)return c;var f=Math.abs(o[0]-i[1]),d=Math.abs(i[0]-o[1]);Math.min(f,d)>a.len()&&(f0?!0===a?r.scrollTop(t,b.top+w.top):!1===a?r.scrollTop(t,b.top+x.top):w.top<0?r.scrollTop(t,b.top+w.top):r.scrollTop(t,b.top+x.top):o||(a=void 0===a||!!a,a?r.scrollTop(t,b.top+w.top):r.scrollTop(t,b.top+x.top)),i&&(w.left<0||x.left>0?!0===s?r.scrollLeft(t,b.left+w.left):!1===s?r.scrollLeft(t,b.left+x.left):w.left<0?r.scrollLeft(t,b.left+w.left):r.scrollLeft(t,b.left+x.left):o||(s=void 0===s||!!s,s?r.scrollLeft(t,b.left+w.left):r.scrollLeft(t,b.left+x.left)))}e.exports=i},zxrt:function(e,t,n){"use strict";var r=n("WGNW"),i=n("88Vn"),o=n("yLMY"),a=n("7vYJ"),s=n("Spc3"),l=n("OsVd"),c=n("u8+u"),u=n("c0Oy").ArrayBuffer,h=n("VeyY"),f=o.ArrayBuffer,d=o.DataView,p=i.ABV&&u.isView,m=f.prototype.slice,g=i.VIEW,v="ArrayBuffer";r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!i.CONSTR,v,{isView:function(e){return p&&p(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n("wUWy")(function(){return!new f(2).slice(1,void 0).byteLength}),v,{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(h(this,f))(l(i-r)),c=new d(this),u=new d(o),p=0;while(r 0!";if(e!=this.$splits){if(e>this.$splits){while(this.$splitse)t=this.$editors[this.$splits-1],this.$container.removeChild(t.container),this.$splits--;this.resize()}},this.getSplits=function(){return this.$splits},this.getEditor=function(e){return this.$editors[e]},this.getCurrentEditor=function(){return this.$cEditor},this.focus=function(){this.$cEditor.focus()},this.blur=function(){this.$cEditor.blur()},this.setTheme=function(e){this.$editors.forEach(function(t){t.setTheme(e)})},this.setKeyboardHandler=function(e){this.$editors.forEach(function(t){t.setKeyboardHandler(e)})},this.forEach=function(e,t){this.$editors.forEach(e,t)},this.$fontSize="",this.setFontSize=function(e){this.$fontSize=e,this.forEach(function(t){t.setFontSize(e)})},this.$cloneSession=function(e){var t=new s(e.getDocument(),e.getMode()),n=e.getUndoManager();return t.setUndoManager(n),t.setTabSize(e.getTabSize()),t.setUseSoftTabs(e.getUseSoftTabs()),t.setOverwrite(e.getOverwrite()),t.setBreakpoints(e.getBreakpoints()),t.setUseWrapMode(e.getUseWrapMode()),t.setUseWorker(e.getUseWorker()),t.setWrapLimitRange(e.$wrapLimitRange.min,e.$wrapLimitRange.max),t.$foldData=e.$cloneFoldData(),t},this.setSession=function(e,t){var n;n=null==t?this.$cEditor:this.$editors[t];var r=this.$editors.some(function(t){return t.session===e});return r&&(e=this.$cloneSession(e)),n.setSession(e),e},this.getOrientation=function(){return this.$orientation},this.setOrientation=function(e){this.$orientation!=e&&(this.$orientation=e,this.resize())},this.resize=function(){var e,t=this.$container.clientWidth,n=this.$container.clientHeight;if(this.$orientation==this.BESIDE)for(var r=t/this.$splits,i=0;i=3&&":"===e[t-3]?0:t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){var r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},d="a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]",p="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|\u0440\u0444".split("|");function m(e){e.__index__=-1,e.__text_cache__=""}function g(e){return function(t,n){var r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}function v(){return function(e,t){t.normalize(e)}}function y(e){var t=e.re=n("sRdV")(e.__opts__),r=e.__tlds__.slice();function i(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||r.push(d),r.push(t.src_xn),t.src_tlds=r.join("|"),t.email_fuzzy=RegExp(i(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(i(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(i(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(i(t.tpl_host_fuzzy_test),"i");var u=[];function h(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){var n=e.__schemas__[t];if(null!==n){var r={validate:null,link:null};if(e.__compiled__[t]=r,a(n))return s(n.validate)?r.validate=g(n.validate):l(n.validate)?r.validate=n.validate:h(t,n),void(l(n.normalize)?r.normalize=n.normalize:n.normalize?h(t,n):r.normalize=v());o(n)?u.push(t):h(t,n)}}),u.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:v()};var f=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(c).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+f+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><\uff5c]|"+t.src_ZPCc+"))("+f+")","ig"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),m(e)}function b(e,t){var n=e.__index__,r=e.__last_index__,i=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=i,this.text=i,this.url=i}function w(e,t){var n=new b(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function x(e,t){if(!(this instanceof x))return new x(e,t);t||h(e)&&(t=e,e={}),this.__opts__=r({},u,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=r({},f,e),this.__compiled__={},this.__tlds__=p,this.__tlds_replaced__=!1,this.re={},y(this)}x.prototype.add=function(e,t){return this.__schemas__[e]=t,y(this),this},x.prototype.set=function(e){return this.__opts__=r(this.__opts__,e),this},x.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;var t,n,r,i,o,a,s,l,c;if(this.re.schema_test.test(e)){s=this.re.schema_search,s.lastIndex=0;while(null!==(t=s.exec(e)))if(i=this.testSchemaAt(e,t[2],s.lastIndex),i){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+i;break}}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l=0&&null!==(r=e.match(this.re.email_fuzzy))&&(o=r.index+r[1].length,a=r.index+r[0].length,(this.__index__<0||othis.__last_index__)&&(this.__schema__="mailto:",this.__index__=o,this.__last_index__=a))),this.__index__>=0},x.prototype.pretest=function(e){return this.re.pretest.test(e)},x.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},x.prototype.match=function(e){var t=0,n=[];this.__index__>=0&&this.__text_cache__===e&&(n.push(w(this,t)),t=this.__last_index__);var r=t?e.slice(t):e;while(this.test(r))n.push(w(this,t)),r=r.slice(this.__last_index__),t+=this.__last_index__;return n.length?n:null},x.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),y(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,y(this),this)},x.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},x.prototype.onCompile=function(){},e.exports=x},"+JPL":function(e,t,n){e.exports={default:n("+SFK"),__esModule:!0}},"+LrT":function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);function h(e,t,n){if("string"!==typeof t){if(u){var f=c(t);f&&f!==u&&h(e,f,n)}var d=a(t);s&&(d=d.concat(s(t)));for(var p=0;px;x++)if((f||x in y)&&(m=y[x],g=b(m,x,v),e))if(n)_[x]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return x;case 2:_.push(m)}else if(u)return!1;return h?-1:c||u?u:_}}},"+qE3":function(e,t,n){"use strict";var r,i="object"===typeof Reflect?Reflect:null,o=i&&"function"===typeof i.apply?i.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};function a(e){console&&console.warn&&console.warn(e)}r=i&&"function"===typeof i.ownKeys?i.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var s=Number.isNaN||function(e){return e!==e};function l(){l.init.call(this)}e.exports=l,e.exports.once=w,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function u(e){if("function"!==typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function h(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function f(e,t,n,r){var i,o,s;if(u(n),o=e._events,void 0===o?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),s=o[t]),void 0===s)s=o[t]=n,++e._eventsCount;else if("function"===typeof s?s=o[t]=r?[n,s]:[s,n]:r?s.unshift(n):s.push(n),i=h(e),i>0&&s.length>i&&!s.warned){s.warned=!0;var l=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");l.name="MaxListenersExceededWarning",l.emitter=e,l.type=t,l.count=s.length,a(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=d.bind(r);return i.listener=n,r.wrapFn=i,i}function m(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"===typeof i?n?[i.listener||i]:[i]:n?b(i):v(i,i.length)}function g(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"===typeof n)return 1;if(void 0!==n)return n.length}return 0}function v(e,t){for(var n=new Array(t),r=0;r0&&(a=t[0]),a instanceof Error)throw a;var s=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw s.context=a,s}var l=i[e];if(void 0===l)return!1;if("function"===typeof l)o(l,this,t);else{var c=l.length,u=v(l,c);for(n=0;n=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():y(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,r;if(n=this._events,void 0===n)return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r=0;r--)this.removeListener(e,t[r]);return this},l.prototype.listeners=function(e){return m(this,e,!0)},l.prototype.rawListeners=function(e){return m(this,e,!1)},l.listenerCount=function(e,t){return"function"===typeof e.listenerCount?e.listenerCount(t):g.call(e,t)},l.prototype.listenerCount=g,l.prototype.eventNames=function(){return this._eventsCount>0?r(this._events):[]}},"+wdc":function(e,t,n){"use strict";var r,i,o,a,s;if("undefined"===typeof window||"function"!==typeof MessageChannel){var l=null,c=null,u=function(){if(null!==l)try{var e=t.unstable_now();l(!0,e),l=null}catch(e){throw setTimeout(u,0),e}},h=Date.now();t.unstable_now=function(){return Date.now()-h},r=function(e){null!==l?setTimeout(r,0,e):(l=e,setTimeout(u,0))},i=function(e,t){c=setTimeout(e,t)},o=function(){clearTimeout(c)},a=function(){return!1},s=t.unstable_forceFrameRate=function(){}}else{var f=window.performance,d=window.Date,p=window.setTimeout,m=window.clearTimeout;if("undefined"!==typeof console){var g=window.cancelAnimationFrame;"function"!==typeof window.requestAnimationFrame&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills"),"function"!==typeof g&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://fb.me/react-polyfills")}if("object"===typeof f&&"function"===typeof f.now)t.unstable_now=function(){return f.now()};else{var v=d.now();t.unstable_now=function(){return d.now()-v}}var y=!1,b=null,w=-1,x=5,_=0;a=function(){return t.unstable_now()>=_},s=function(){},t.unstable_forceFrameRate=function(e){0>e||125>>1,i=e[r];if(!(void 0!==i&&0T(a,n))void 0!==l&&0>T(l,a)?(e[r]=l,e[s]=n,r=s):(e[r]=a,e[o]=n,r=o);else{if(!(void 0!==l&&0>T(l,n)))break e;e[r]=l,e[s]=n,r=s}}}return t}return null}function T(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}var A=[],P=[],M=1,R=null,j=3,L=!1,D=!1,N=!1;function I(e){for(var t=k(P);null!==t;){if(null===t.callback)O(P);else{if(!(t.startTime<=e))break;O(P),t.sortIndex=t.expirationTime,C(A,t)}t=k(P)}}function $(e){if(N=!1,I(e),!D)if(null!==k(A))D=!0,r(F);else{var t=k(P);null!==t&&i($,t.startTime-e)}}function F(e,n){D=!1,N&&(N=!1,o()),L=!0;var r=j;try{for(I(n),R=k(A);null!==R&&(!(R.expirationTime>n)||e&&!a());){var s=R.callback;if(null!==s){R.callback=null,j=R.priorityLevel;var l=s(R.expirationTime<=n);n=t.unstable_now(),"function"===typeof l?R.callback=l:R===k(A)&&O(A),I(n)}else O(A);R=k(A)}if(null!==R)var c=!0;else{var u=k(P);null!==u&&i($,u.startTime-n),c=!1}return c}finally{R=null,j=r,L=!1}}function B(e){switch(e){case 1:return-1;case 2:return 250;case 5:return 1073741823;case 4:return 1e4;default:return 5e3}}var V=s;t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_continueExecution=function(){D||L||(D=!0,r(F))},t.unstable_getCurrentPriorityLevel=function(){return j},t.unstable_getFirstCallbackNode=function(){return k(A)},t.unstable_next=function(e){switch(j){case 1:case 2:case 3:var t=3;break;default:t=j}var n=j;j=t;try{return e()}finally{j=n}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=V,t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=j;j=e;try{return t()}finally{j=n}},t.unstable_scheduleCallback=function(e,n,a){var s=t.unstable_now();if("object"===typeof a&&null!==a){var l=a.delay;l="number"===typeof l&&0s?(e.sortIndex=l,C(P,e),null===k(A)&&e===k(P)&&(N?o():N=!0,i($,l-s))):(e.sortIndex=a,C(A,e),D||L||(D=!0,r(F))),e},t.unstable_shouldYield=function(){var e=t.unstable_now();I(e);var n=k(A);return n!==R&&null!==R&&null!==n&&null!==n.callback&&n.startTime<=e&&n.expirationTime=0||(i[n]=e[n]);return i}var y=n("2mql"),b=n.n(y),w=n("0vxD"),x=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],_=["reactReduxForwardedRef"],E=[],S=[null,null];function C(e,t){var n=e[1];return[t.payload,n+1]}function k(e,t,n){d(function(){return e.apply(void 0,t)},n)}function O(e,t,n,r,i,o,a){e.current=r,t.current=i,n.current=!1,o.current&&(o.current=null,a())}function T(e,t,n,r,i,o,a,s,l,c){if(e){var u=!1,h=null,f=function(){if(!u){var e,n,f=t.getState();try{e=r(f,i.current)}catch(e){n=e,h=e}n||(h=null),e===o.current?a.current||l():(o.current=e,s.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=f,n.trySubscribe(),f();var d=function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,h)throw h};return d}}var A=function(){return[null,0]};function P(e,t){void 0===t&&(t={});var n=t,a=n.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=n.methodName,c=void 0===l?"connectAdvanced":l,u=n.renderCountProp,h=void 0===u?void 0:u,d=n.shouldHandleStateChanges,p=void 0===d||d,m=n.storeKey,y=void 0===m?"store":m,P=(n.withRef,n.forwardRef),M=void 0!==P&&P,R=n.context,j=void 0===R?o:R,L=v(n,x),D=j;return function(t){var n=t.displayName||t.name||"Component",o=s(n),a=g({},L,{getDisplayName:s,methodName:c,renderCountProp:h,shouldHandleStateChanges:p,storeKey:y,displayName:o,wrappedComponentName:n,WrappedComponent:t}),l=L.pure;function u(t){return e(t.dispatch,a)}var d=l?r["useMemo"]:function(e){return e()};function m(e){var n=Object(r["useMemo"])(function(){var t=e.reactReduxForwardedRef,n=v(e,_);return[e.context,t,n]},[e]),o=n[0],a=n[1],s=n[2],l=Object(r["useMemo"])(function(){return o&&o.Consumer&&Object(w["isContextConsumer"])(i.a.createElement(o.Consumer,null))?o:D},[o,D]),c=Object(r["useContext"])(l),h=Boolean(e.store)&&Boolean(e.store.getState)&&Boolean(e.store.dispatch);Boolean(c)&&Boolean(c.store);var m=h?e.store:c.store,y=Object(r["useMemo"])(function(){return u(m)},[m]),b=Object(r["useMemo"])(function(){if(!p)return S;var e=f(m,h?null:c.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]},[m,h,c]),x=b[0],P=b[1],M=Object(r["useMemo"])(function(){return h?c:g({},c,{subscription:x})},[h,c,x]),R=Object(r["useReducer"])(C,E,A),j=R[0],L=j[0],N=R[1];if(L&&L.error)throw L.error;var I=Object(r["useRef"])(),$=Object(r["useRef"])(s),F=Object(r["useRef"])(),B=Object(r["useRef"])(!1),V=d(function(){return F.current&&s===$.current?F.current:y(m.getState(),s)},[m,L,s]);k(O,[$,I,B,s,V,F,P]),k(T,[p,m,x,y,$,I,B,F,P,N],[m,x,y]);var W=Object(r["useMemo"])(function(){return i.a.createElement(t,g({},V,{ref:a}))},[a,t,V]),H=Object(r["useMemo"])(function(){return p?i.a.createElement(l.Provider,{value:M},W):W},[l,W,M]);return H}var x=l?i.a.memo(m):m;if(x.WrappedComponent=t,x.displayName=m.displayName=o,M){var P=i.a.forwardRef(function(e,t){return i.a.createElement(x,g({},e,{reactReduxForwardedRef:t}))});return P.displayName=o,P.WrappedComponent=t,b()(P,t)}return b()(x,t)}}function M(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function R(e,t){if(M(e,t))return!0;if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i=0;r--){var i=t[r](e);if(i)return i}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function te(e,t){return e===t}function ne(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?P:n,i=t.mapStateToPropsFactories,o=void 0===i?H:i,a=t.mapDispatchToPropsFactories,s=void 0===a?B:a,l=t.mergePropsFactories,c=void 0===l?G:l,u=t.selectorFactory,h=void 0===u?Z:u;return function(e,t,n,i){void 0===i&&(i={});var a=i,l=a.pure,u=void 0===l||l,f=a.areStatesEqual,d=void 0===f?te:f,p=a.areOwnPropsEqual,m=void 0===p?R:p,y=a.areStatePropsEqual,b=void 0===y?R:y,w=a.areMergedPropsEqual,x=void 0===w?R:w,_=v(a,J),E=ee(e,o,"mapStateToProps"),S=ee(t,s,"mapDispatchToProps"),C=ee(n,c,"mergeProps");return r(h,g({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:E,initMapDispatchToProps:S,initMergeProps:C,pure:u,areStatesEqual:d,areOwnPropsEqual:m,areStatePropsEqual:b,areMergedPropsEqual:x},_))}}var re=ne();var ie=n("i8i4");n.d(t,"a",function(){return m}),n.d(t,"b",function(){return o}),n.d(t,"c",function(){return re}),l(ie["unstable_batchedUpdates"])},"/Mfd":function(e,t,n){var r=n("7vYJ"),i=n("4gcQ"),o=n("WFJy"),a=n("J57/")("IE_PROTO"),s=function(){},l="prototype",c=function(){var e,t=n("SfDG")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("XI6d").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),c=e.F;while(r--)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},"/Qhy":function(e,t,n){"use strict";function r(e){return"/"===e.charAt(0)}function i(e,t){for(var n=t,r=n+1,i=e.length;r1&&void 0!==arguments[1]?arguments[1]:"",n=e&&e.split("/")||[],o=t&&t.split("/")||[],a=e&&r(e),s=t&&r(t),l=a||s;if(e&&r(e)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var u=o[o.length-1];c="."===u||".."===u||""===u}else c=!1;for(var h=0,f=o.length;f>=0;f--){var d=o[f];"."===d?i(o,f):".."===d?(i(o,f),h++):h&&(i(o,f),h--)}if(!l)for(;h--;h)o.unshift("..");!l||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}n.r(t),t["default"]=o},"/dDc":function(e,t,n){"use strict";var r={transitionstart:{transition:"transitionstart",WebkitTransition:"webkitTransitionStart",MozTransition:"mozTransitionStart",OTransition:"oTransitionStart",msTransition:"MSTransitionStart"},animationstart:{animation:"animationstart",WebkitAnimation:"webkitAnimationStart",MozAnimation:"mozAnimationStart",OAnimation:"oAnimationStart",msAnimation:"MSAnimationStart"}},i={transitionend:{transition:"transitionend",WebkitTransition:"webkitTransitionEnd",MozTransition:"mozTransitionEnd",OTransition:"oTransitionEnd",msTransition:"MSTransitionEnd"},animationend:{animation:"animationend",WebkitAnimation:"webkitAnimationEnd",MozAnimation:"mozAnimationEnd",OAnimation:"oAnimationEnd",msAnimation:"MSAnimationEnd"}},o=[],a=[];function s(){var e=document.createElement("div"),t=e.style;function n(e,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];for(var o in i)if(o in t){n.push(i[o]);break}}}"AnimationEvent"in window||(delete r.animationstart.animation,delete i.animationend.animation),"TransitionEvent"in window||(delete r.transitionstart.transition,delete i.transitionend.transition),n(r,o),n(i,a)}function l(e,t,n){e.addEventListener(t,n,!1)}function c(e,t,n){e.removeEventListener(t,n,!1)}"undefined"!==typeof window&&"undefined"!==typeof document&&s();var u={startEvents:o,addStartEventListener:function(e,t){0!==o.length?o.forEach(function(n){l(e,n,t)}):window.setTimeout(t,0)},removeStartEventListener:function(e,t){0!==o.length&&o.forEach(function(n){c(e,n,t)})},endEvents:a,addEndEventListener:function(e,t){0!==a.length?a.forEach(function(n){l(e,n,t)}):window.setTimeout(t,0)},removeEndEventListener:function(e,t){0!==a.length&&a.forEach(function(n){c(e,n,t)})}};t["a"]=u},"/gYn":function(e,t,n){var r=n("gL7N")("toPrimitive"),i=Date.prototype;r in i||n("VPOE")(i,r,n("CfL3"))},"/mWb":function(e,t,n){"use strict";var r=n("WGNW"),i=n("il4q"),o=n("8BMt"),a=n("BFt8"),s=n("15BC").f;n("8Z/V")&&r(r.P+n("OJuA"),"Object",{__lookupGetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.get}while(n=a(n))}})},"/sWw":function(e,t,n){var r=n("c0Oy"),i=n("bV5f"),o=n("FqPH"),a=n("zKnh"),s=n("V5/1").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},0:function(e,t){},"03ni":function(e,t,n){"use strict";var r=n("AUWw"),i=n("ZDr/");e.exports=function(e){var t=String(i(this)),n="",o=r(e);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(n+=t);return n}},"08Qx":function(e,t,n){var r=n("c0Oy"),i=r.navigator;e.exports=i&&i.userAgent||""},"0Wa5":function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.namespace||s,n=e.only,l=void 0===n?[]:n,c=e.except,u=void 0===c?[]:c;if(l.length>0&&u.length>0)throw Error("It is ambiguous to configurate `only` and `except` items at the same time.");var h={global:!1,models:{},effects:{}},f=r({},t,function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,n=arguments.length>1?arguments[1]:void 0,s=n.type,l=n.payload,c=l||{},u=c.namespace,f=c.actionType;switch(s){case o:e=i({},t,{global:!0,models:i({},t.models,r({},u,!0)),effects:i({},t.effects,r({},f,!0))});break;case a:var d=i({},t.effects,r({},f,!1)),p=i({},t.models,r({},u,Object.keys(d).some(function(e){var t=e.split("/")[0];return t===u&&d[e]}))),m=Object.keys(p).some(function(e){return p[e]});e=i({},t,{global:m,models:p,effects:d});break;default:e=t;break}return e});function d(e,t,n,r){var i=t.put,s=n.namespace;return 0===l.length&&0===u.length||l.length>0&&-1!==l.indexOf(r)||u.length>0&&-1===u.indexOf(r)?regeneratorRuntime.mark(function t(){var n=arguments;return regeneratorRuntime.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,i({type:o,payload:{namespace:s,actionType:r}});case 2:return t.next=4,e.apply(void 0,n);case 4:return t.next=6,i({type:a,payload:{namespace:s,actionType:r}});case 6:case"end":return t.stop()}},t)}):e}return{extraReducers:f,onEffect:d}}e.exports=l},"0hpf":function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e=0===e?0:e,e)}},r)},"0vxD":function(e,t,n){"use strict";e.exports=n("DUzY")},"0wlq":function(e,t,n){"use strict";var r=n("WGNW"),i=n("8H45"),o=n("il4q"),a=n("OsVd"),s=n("wYm8"),l=n("17jC");r(r.P,"Array",{flatMap:function(e){var t,n,r=o(this);return s(e),t=a(r.length),n=l(r,0),i(n,r,r,t,0,1,e,arguments[1]),n}}),n("DIcO")("flatMap")},1:function(e,t,n){e.exports=n("KyW6")},"11+Y":function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("2qtc"),n("kLXV")),a=(n("5NDa"),n("5rEg")),s=(n("g9YV"),n("wCAj")),l=(n("+L6B"),n("2/Rp")),c=(n("/zsF"),n("PArb")),u=(n("Pwec"),n("CtXQ")),h=n("p0pE"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("Bl7J"),g=n("/MKj"),v=n("8zNj"),y=n("v32e");class b extends p.a.Component{constructor(e){super(e),this.state={group:[],submit:{},visible:!1}}componentDidMount(){this.props.dispatch({type:"serverGroup/fetch"})}save(){var e=f()({},this.state.submit);this.props.dispatch({type:"serverGroup/save",params:e,callback:()=>{this.modalVisible()}})}drop(e){this.props.dispatch({type:"serverGroup/drop",id:e})}edit(e){var t=this.props.serverGroup.groups;this.setState({submit:f()({},t[e]),visible:!0})}modalVisible(){this.setState({visible:!this.state.visible,submit:{}})}render(){var e=this.props.serverGroup,t=e.groups,n=e.fetchLoading,r=[{title:"\u7ec4ID",dataIndex:"id",key:"id"},{title:"\u7ec4\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u7528\u6237\u6570\u91cf",dataIndex:"user_count",key:"user_count",render:e=>{return p.a.createElement(p.a.Fragment,null,p.a.createElement(u["a"],{type:"user",style:{cursor:"move"}})," ",e)}},{title:"\u8282\u70b9\u6570\u91cf",dataIndex:"server_count",key:"server_count",render:e=>{return p.a.createElement(p.a.Fragment,null,p.a.createElement(u["a"],{type:"database",style:{cursor:"move"}})," ",e)}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",render:(e,t,n)=>{return p.a.createElement("div",null,p.a.createElement(v["a"],{record:t,key:t.id},p.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.edit(n)},"\u7f16\u8f91")),p.a.createElement(c["a"],{type:"vertical"}),p.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.drop(t.id)},"\u5220\u9664"))}}];return p.a.createElement(m["a"],i()({},this.props,{title:"\u6743\u9650\u7ec4\u7ba1\u7406"}),p.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),p.a.createElement(y["a"],{loading:n},p.a.createElement("div",{className:"block block-rounded"},p.a.createElement("div",{className:"bg-white"},p.a.createElement("div",{style:{padding:15}},p.a.createElement(v["a"],null,p.a.createElement(l["a"],{onClick:()=>this.modalVisible()},p.a.createElement(u["a"],{type:"plus"})," \u6dfb\u52a0\u6743\u9650\u7ec4"))),p.a.createElement(s["a"],{tableLayout:"auto",columns:r,dataSource:t,pagination:!1})))),p.a.createElement(o["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u7ec4":"\u521b\u5efa\u7ec4"),visible:this.state.visible,onCancel:()=>this.modalVisible(),onOk:()=>n||this.save(),okText:n?p.a.createElement(u["a"],{type:"loading"}):"\u63d0\u4ea4",cancelText:"\u53d6\u6d88"},p.a.createElement("div",null,p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u7ec4\u540d"),p.a.createElement(a["a"],{placeholder:"\u8bf7\u8f93\u5165\u7ec4\u540d",value:this.state.submit.name,onChange:e=>{this.setState({submit:f()({},this.state.submit,{name:e.target.value})})}})))))}}t["default"]=Object(g["c"])(e=>{var t=e.serverGroup;return{serverGroup:t}})(b)},"15BC":function(e,t,n){var r=n("LsAW"),i=n("pQGJ"),o=n("OeOC"),a=n("8BMt"),s=n("oxo0"),l=n("A7R+"),c=Object.getOwnPropertyDescriptor;t.f=n("8Z/V")?c:function(e,t){if(e=o(e),t=a(t,!0),l)try{return c(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},"16Al":function(e,t,n){"use strict";var r=n("WbBG");function i(){}function o(){}o.resetWarningCache=i,e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:o,resetWarningCache:i};return n.PropTypes=n,n}},"17jC":function(e,t,n){var r=n("3FhE");e.exports=function(e,t){return new(r(e))(t)}},"17x9":function(e,t,n){e.exports=n("16Al")()},"198K":function(e,t){function n(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}e.exports=n},"1AkM":function(e,t,n){"use strict";n.d(t,"a",function(){return h}),n.d(t,"b",function(){return m});var r=n("Xnb7"),i=n("bYtY"),o=n("6GrX"),a=/\{([a-zA-Z0-9_]+)\|([^}]*)\}/g;function s(e,t,n,r,i){if(!t)return"";var o=(e+"").split("\n");i=l(t,n,r,i);for(var a=0,s=o.length;a=l;u++)c-=l;var h=Object(o["f"])(n,t);return h>c&&(n="",h=0),c=e-h,a.ellipsis=n,a.ellipsisWidth=h,a.contentWidth=c,a.containerWidth=e,a}function c(e,t){var n=t.containerWidth,r=t.font,i=t.contentWidth;if(!n)return"";var a=Object(o["f"])(e,r);if(a<=n)return e;for(var s=0;;s++){if(a<=i||s>=t.maxIterations){e+=t.ellipsis;break}var l=0===s?u(e,i,t.ascCharWidth,t.cnCharWidth):a>0?Math.floor(e.length*i/a):0;e=e.substr(0,l),a=Object(o["f"])(e,r)}return""===e&&(e=t.placeholder),e}function u(e,t,n,r){for(var i=0,o=0,a=e.length;ov&&p){var y=Math.floor(v/f);n=n.slice(0,y)}if(e&&u&&null!=m)for(var b=l(m,s,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),x=0;xd&&g(n,e.substring(d,m),t,f),g(n,l[2],t,f,l[1]),d=a.lastIndex}du){T>0?(C.tokens=C.tokens.slice(0,T),E(C,O,k),n.lines=n.lines.slice(0,S+1)):n.lines=n.lines.slice(0,S);break e}var D=P.width,N=null==D||"auto"===D;if("string"===typeof D&&"%"===D.charAt(D.length-1))A.percentWidth=D,v.push(A),A.contentWidth=Object(o["f"])(A.text,j);else{if(N){var I=P.backgroundColor,$=I&&I.image;$&&($=r["b"]($),r["c"]($)&&(A.width=Math.max(A.width,$.width*L/$.height)))}var F=x&&null!=c?c-O:null;null!=F&&F0&&v+r.accumWidth>r.width&&(a=t.split("\n"),p=!0),r.accumWidth=v}else{var y=w(t,h,r.width,r.breakAll,r.accumWidth);r.accumWidth=y.accumWidth+g,s=y.linesWidths,a=y.lines}}else a=t.split("\n");for(var b=0;b=33&&t<=383}var y=Object(i["I"])(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function b(e){return!v(e)||!!y[e]}function w(e,t,n,r,i){for(var a=[],s=[],l="",c="",u=0,h=0,f=0;fn:i+h+p>n)?h?(l||c)&&(m?(l||(l=c,c="",u=0,h=u),a.push(l),s.push(h-u),c+=d,u+=p,l="",h=u):(c&&(l+=c,c="",u=0),a.push(l),s.push(h),l=d,h=p)):m?(a.push(c),s.push(u),c=d,u=p):(a.push(d),s.push(p)):(h+=p,m?(c+=d,u+=p):(c&&(l+=c,c="",u=0),l+=d))}else c&&(l+=c,h+=u),a.push(l),s.push(h),l="",c="",u=0,h=0}return a.length||l||(l=e,c="",u=0),c&&(l+=c),l&&(a.push(l),s.push(h)),1===a.length&&(h+=i),{accumWidth:h,lines:a,linesWidths:s}}},"1EPD":function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}n.d(t,"a",function(){return i})},"1Jh7":function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("T6xi"),a=function(){function e(){this.points=null,this.percent=1,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!1)},t}(i["b"]);s.prototype.type="polyline",t["a"]=s},"1MYJ":function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type="compound",t}return Object(r["a"])(t,e),t.prototype._updatePathDirty=function(){for(var e=this.shape.paths,t=this.shapeChanged(),n=0;n=this._maxSize&&a>0){var l=n.head;n.remove(l),delete i[l.key],o=l.value,this._lastRemovedEntry=l}s?s.value=t:s=new r(t),s.key=e,n.insertEntry(s),i[e]=s}return o},e.prototype.get=function(e){var t=this._map[e],n=this._list;if(null!=t)return t!==n.tail&&(n.remove(t),n.insertEntry(t)),t.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e}();t["a"]=o},"1W/9":function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("i8i4"),a=n.n(o),s=n("17x9"),l=n.n(s),c=n("VCL8"),u=n("PIAm"),h=n("QC+M"),f=n("qx4F");function d(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.element,r=void 0===n?document.body:n,i={},o=Object.keys(e);return o.forEach(function(e){i[e]=r.style[e]}),o.forEach(function(t){r.style[t]=e[t]}),i}var p=d;function m(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var g={},v=function(e){if(m()||e){var t="ant-scrolling-effect",n=new RegExp("".concat(t),"g"),r=document.body.className;if(e){if(!n.test(r))return;return p(g),g={},void(document.body.className=r.replace(n,"").trim())}var i=Object(f["a"])();if(i&&(g=p({position:"relative",width:"calc(100% - ".concat(i,"px)")}),!n.test(r))){var o="".concat(r," ").concat(t);document.body.className=o.trim()}}};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};return n(b(b(b({},t),s),{},{ref:e.savePortal}))},getContainer:this.getContainer,forceRender:r},function(t){var n=t.renderComponent,r=t.removeContainer;return e.renderComponent=n,e.removeContainer=r,null})}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,i=e.visible,o=e.getContainer;if(n){var a=n.visible,s=n.getContainer;i!==a&&(R=i&&!a?R+1:R-1);var l="function"===typeof o&&"function"===typeof s;(l?o.toString()!==s.toString():o!==s)&&r.removeCurrentContainer(!1)}return{prevProps:e}}}]),n}(i.a.Component);N.propTypes={wrapperClassName:l.a.string,forceRender:l.a.bool,getContainer:l.a.any,children:l.a.func,visible:l.a.bool};t["a"]=Object(c["polyfill"])(N)},"1bdT":function(e,t,n){"use strict";var r=n("hYLj"),i=n("Bq2U"),o=n("mFDi"),a=n("b9Ot"),s=n("6GrX"),l=n("bYtY"),c=n("LPTA"),u=n("Qe9p"),h=n("S8SX"),f="__zr_normal__",d=r["a"].concat(["ignore"]),p=Object(l["I"])(r["a"],function(e,t){return e[t]=!0,e},{ignore:!1}),m={},g=new o["a"](0,0,0,0),v=function(){function e(e){this.id=Object(l["n"])(),this.animators=[],this.currentStates=[],this.states={},this._init(e)}return e.prototype._init=function(e){this.attr(e)},e.prototype.drift=function(e,t,n){switch(this.draggable){case"horizontal":t=0;break;case"vertical":e=0;break}var r=this.transform;r||(r=this.transform=[1,0,0,1,0,0]),r[4]+=e,r[5]+=t,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(e){var t=this._textContent;if(t&&(!t.ignore||e)){this.textConfig||(this.textConfig={});var n=this.textConfig,r=n.local,i=t.innerTransformable,o=void 0,a=void 0,l=!1;i.parent=r?this:null;var c=!1;if(i.copyTransform(t),null!=n.position){var u=g;n.layoutRect?u.copy(n.layoutRect):u.copy(this.getBoundingRect()),r||u.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(m,n,u):Object(s["c"])(m,n,u),i.x=m.x,i.y=m.y,o=m.align,a=m.verticalAlign;var f=n.origin;if(f&&null!=n.rotation){var d=void 0,p=void 0;"center"===f?(d=.5*u.width,p=.5*u.height):(d=Object(s["g"])(f[0],u.width),p=Object(s["g"])(f[1],u.height)),c=!0,i.originX=-i.x+d+(r?0:u.x),i.originY=-i.y+p+(r?0:u.y)}}null!=n.rotation&&(i.rotation=n.rotation);var v=n.offset;v&&(i.x+=v[0],i.y+=v[1],c||(i.originX=-v[0],i.originY=-v[1]));var y=null==n.inside?"string"===typeof n.position&&n.position.indexOf("inside")>=0:n.inside,b=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),w=void 0,x=void 0,_=void 0;y&&this.canBeInsideText()?(w=n.insideFill,x=n.insideStroke,null!=w&&"auto"!==w||(w=this.getInsideTextFill()),null!=x&&"auto"!==x||(x=this.getInsideTextStroke(w),_=!0)):(w=n.outsideFill,x=n.outsideStroke,null!=w&&"auto"!==w||(w=this.getOutsideFill()),null!=x&&"auto"!==x||(x=this.getOutsideStroke(w),_=!0)),w=w||"#000",w===b.fill&&x===b.stroke&&_===b.autoStroke&&o===b.align&&a===b.verticalAlign||(l=!0,b.fill=w,b.stroke=x,b.autoStroke=_,b.align=o,b.verticalAlign=a,t.setDefaultTextStyle(b)),t.__dirty|=h["a"],l&&t.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(e){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?c["d"]:c["a"]},e.prototype.getOutsideStroke=function(e){var t=this.__zr&&this.__zr.getBackgroundColor(),n="string"===typeof t&&Object(u["d"])(t);n||(n=[255,255,255,1]);for(var r=n[3],i=this.__zr.isDarkMode(),o=0;o<3;o++)n[o]=n[o]*r+(i?0:255)*(1-r);return n[3]=1,Object(u["e"])(n,"rgba")},e.prototype.traverse=function(e,t){},e.prototype.attrKV=function(e,t){"textConfig"===e?this.setTextConfig(t):"textContent"===e?this.setTextContent(t):"clipPath"===e?this.setClipPath(t):"extra"===e?(this.extra=this.extra||{},Object(l["l"])(this.extra,t)):this[e]=t},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(e,t){if("string"===typeof e)this.attrKV(e,t);else if(Object(l["x"])(e))for(var n=e,r=Object(l["B"])(n),i=0;i0},e.prototype.getState=function(e){return this.states[e]},e.prototype.ensureState=function(e){var t=this.states;return t[e]||(t[e]={}),t[e]},e.prototype.clearStates=function(e){this.useState(f,!1,e)},e.prototype.useState=function(e,t,n,r){var i=e===f,o=this.hasState();if(o||!i){var a=this.currentStates,s=this.stateTransition;if(!(Object(l["p"])(a,e)>=0)||!t&&1!==a.length){var c;if(this.stateProxy&&!i&&(c=this.stateProxy(e)),c||(c=this.states&&this.states[e]),c||i){i||this.saveCurrentToNormalState(c);var u=!!(c&&c.hoverLayer||r);u&&this._toggleHoverLayerFlag(!0),this._applyStateObj(e,c,this._normalState,t,!n&&!this.__inHover&&s&&s.duration>0,s);var d=this._textContent,p=this._textGuide;return d&&d.useState(e,t,n,u),p&&p.useState(e,t,n,u),i?(this.currentStates=[],this._normalState={}):t?this.currentStates.push(e):this.currentStates=[e],this._updateAnimationTargets(),this.markRedraw(),!u&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"]),c}Object(l["C"])("State "+e+" not exists.")}}},e.prototype.useStates=function(e,t,n){if(e.length){var r=[],i=this.currentStates,o=e.length,a=o===i.length;if(a)for(var s=0;s0,p);var m=this._textContent,g=this._textGuide;m&&m.useStates(e,t,f),g&&g.useStates(e,t,f),this._updateAnimationTargets(),this.currentStates=e.slice(),this.markRedraw(),!f&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~h["a"])}else this.clearStates()},e.prototype._updateAnimationTargets=function(){for(var e=0;e=0){var n=this.currentStates.slice();n.splice(t,1),this.useStates(n)}},e.prototype.replaceState=function(e,t,n){var r=this.currentStates.slice(),i=Object(l["p"])(r,e),o=Object(l["p"])(r,t)>=0;i>=0?o?r.splice(i,1):r[i]=t:n&&!o&&r.push(t),this.useStates(r)},e.prototype.toggleState=function(e,t){t?this.useState(e,!0):this.removeState(e)},e.prototype._mergeStates=function(e){for(var t,n={},r=0;r=0&&t.splice(n,1)}),this.animators.push(e),n&&n.animation.addAnimator(e),n&&n.wakeUp()},e.prototype.updateDuringAnimation=function(e){this.markRedraw()},e.prototype.stopAnimation=function(e,t){for(var n=this.animators,r=n.length,i=[],o=0;o0&&n.during&&o[0].during(function(e,t){n.during(t)});for(var f=0;f0||o.force&&!s.length){var A=void 0,P=void 0,M=void 0;if(c){P={},p&&(A={});for(C=0;Ce.serverManage);case 4:return l=n.sent,c=l.servers,re.serverManage);case 5:return o=e.sent,a=o.servers,e.next=9,Object(s["b"])("/admin/server/manage/sort",{sorts:a.map(e=>({key:e.type,value:e.id}))});case 9:return l=e.sent,e.next=12,r({type:"setState",payload:{fetchLoading:!1}});case 12:if(200===l.code){e.next=14;break}return e.abrupt("return");case 14:return e.next=16,r({type:"getNodes"});case 16:case"end":return e.stop()}},e)})()}}}},"1dGX":function(e,t,n){"use strict";t.Any=n("y8fO"),t.Cc=n("p7ys"),t.Cf=n("b9EY"),t.P=n("fKCf"),t.Z=n("T8I8")},"1dM+":function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("+L6B"),n("2/Rp")),a=(n("Znn+"),n("ZTPi")),s=(n("BoS7"),n("Sdc0")),l=n("p0pE"),c=n.n(l),u=n("q1tI"),h=n.n(u),f=n("Bl7J"),d=n("/MKj");class p extends h.a.Component{render(){return h.a.createElement("div",{className:"row ".concat(this.props.isChildren?"v2board-config-children":""),style:{padding:"20px",borderBottom:"1px solid #eee"}},h.a.createElement("div",{className:"col-lg-6"},h.a.createElement("div",{style:{fontWeight:"bold",marginBottom:5}},this.props.title),h.a.createElement("div",{style:{fontSize:12,marginBottom:5,color:"#666"}},this.props.description)),h.a.createElement("div",{className:"col-lg-6 text-right"},this.props.children))}}class m extends h.a.Component{componentDidMount(){this.props.dispatch({type:"config/fetch"}),this.props.dispatch({type:"plan/fetch"}),this.props.dispatch({type:"config/getEmailTemplate"}),this.props.dispatch({type:"config/getThemeTemplate"})}set(e,t,n){var r=this.props.config;this.props.dispatch({type:"config/setState",payload:{[e]:c()({},r[e],{[t]:n})}}),this.inputDelayTimer&&clearTimeout(this.inputDelayTimer),this.inputDelayTimer=setTimeout(function(){this.inputDelayTimer=null,this.props.dispatch({type:"config/save",parentKey:e})}.bind(this),1500)}render(){var e=this.props.config,t=e.site,n=e.invite,r=e.subscribe,l=e.frontend,c=e.server,u=e.tabs,d=e.fetchLoading,m=e.emailTemplate,g=(e.themeTemplate,e.email),v=e.telegram,y=e.setTelegramWebhookLoading,b=e.app,w=e.testSendMailLoading,x=this.props.plan.plans;return console.log(t),h.a.createElement(f["a"],i()({},this.props,{title:"\u7cfb\u7edf\u914d\u7f6e"}),h.a.createElement("div",{className:"mb-0 block border-bottom ".concat(d?"block-mode-loading":"")},h.a.createElement(a["a"],{onChange:e=>this.setState({tabs:e}),defaultActiveKey:u,size:"large"},h.a.createElement(a["a"].TabPane,{tab:"\u7ad9\u70b9",key:"site"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u7ad9\u70b9\u540d\u79f0",description:"\u7528\u4e8e\u663e\u793a\u9700\u8981\u7ad9\u70b9\u540d\u79f0\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7ad9\u70b9\u540d\u79f0",defaultValue:t.app_name,onChange:e=>this.set("site","app_name",e.target.value)})),h.a.createElement(p,{title:"\u7ad9\u70b9\u63cf\u8ff0",description:"\u7528\u4e8e\u663e\u793a\u9700\u8981\u7ad9\u70b9\u63cf\u8ff0\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7ad9\u70b9\u63cf\u8ff0",defaultValue:t.app_description,onChange:e=>this.set("site","app_description",e.target.value)})),h.a.createElement(p,{title:"\u7ad9\u70b9\u7f51\u5740",description:"\u5f53\u524d\u7f51\u7ad9\u6700\u65b0\u7f51\u5740\uff0c\u5c06\u4f1a\u5728\u90ae\u4ef6\u7b49\u9700\u8981\u7528\u4e8e\u7f51\u5740\u5904\u4f53\u73b0\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7ad9\u70b9URL\uff0c\u672b\u5c3e\u4e0d\u8981/",defaultValue:t.app_url,onChange:e=>this.set("site","app_url",e.target.value)})),h.a.createElement(p,{title:"\u5f3a\u5236HTTPS",description:"\u5f53\u7ad9\u70b9\u6ca1\u6709\u4f7f\u7528HTTPS\uff0cCDN\u6216\u53cd\u4ee3\u5f00\u542f\u5f3a\u5236HTTPS\u65f6\u9700\u8981\u5f00\u542f\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.force_https),onChange:e=>this.set("site","force_https",e?1:0)})),h.a.createElement(p,{title:"LOGO",description:"\u7528\u4e8e\u663e\u793a\u9700\u8981LOGO\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165LOGO URL\uff0c\u672b\u5c3e\u4e0d\u8981/",defaultValue:t.logo,onChange:e=>this.set("site","logo",e.target.value)})),h.a.createElement(p,{title:"\u8ba2\u9605URL",description:"\u7528\u4e8e\u8ba2\u9605\u6240\u4f7f\u7528\uff0c\u7559\u7a7a\u5219\u4e3a\u7ad9\u70b9URL\u3002\u5982\u9700\u591a\u4e2a\u8ba2\u9605URL\u968f\u673a\u83b7\u53d6\u8bf7\u4f7f\u7528\u9017\u53f7\u8fdb\u884c\u5206\u5272\u3002"},h.a.createElement("textarea",{rows:"4",type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u8ba2\u9605URL\uff0c\u672b\u5c3e\u4e0d\u8981/\u3002\u9017\u53f7\u5206\u5272\u652f\u6301\u591a\u57df\u540d",defaultValue:t.subscribe_url,onChange:e=>this.set("site","subscribe_url",e.target.value)})),h.a.createElement(p,{title:"\u7528\u6237\u6761\u6b3e(TOS)URL",description:"\u7528\u4e8e\u8df3\u8f6c\u5230\u7528\u6237\u6761\u6b3e(TOS)"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u6761\u6b3eURL\uff0c\u672b\u5c3e\u4e0d\u8981/",defaultValue:t.tos_url,onChange:e=>this.set("site","tos_url",e.target.value)})),h.a.createElement(p,{title:"\u5b89\u5168\u6a21\u5f0f",description:"\u5f00\u542f\u540e\u9664\u4e86\u7ad9\u70b9URL\u4ee5\u5916\u7684\u7ed1\u5b9a\u672c\u7ad9\u70b9\u7684\u57df\u540d\u8bbf\u95ee\u90fd\u5c06\u4f1a\u88ab403\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.safe_mode_enable),onChange:e=>this.set("site","safe_mode_enable",e?1:0)})),h.a.createElement(p,{title:"\u505c\u6b62\u65b0\u7528\u6237\u6ce8\u518c",description:"\u5f00\u542f\u540e\u4efb\u4f55\u4eba\u90fd\u5c06\u65e0\u6cd5\u8fdb\u884c\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.stop_register),onChange:e=>this.set("site","stop_register",e?1:0)})),h.a.createElement(p,{title:"\u90ae\u7bb1\u9a8c\u8bc1",description:"\u5f00\u542f\u540e\u5c06\u4f1a\u5f3a\u5236\u8981\u6c42\u7528\u6237\u8fdb\u884c\u90ae\u7bb1\u9a8c\u8bc1\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.email_verify),onChange:e=>this.set("site","email_verify",e?1:0)})),h.a.createElement(p,{title:"\u7981\u6b62\u4f7f\u7528Gmail\u591a\u522b\u540d",description:"\u5f00\u542f\u540eGmail\u591a\u522b\u540d\u5c06\u65e0\u6cd5\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.email_gmail_limit_enable),onChange:e=>this.set("site","email_gmail_limit_enable",e?1:0)})),h.a.createElement(p,{title:"\u6ce8\u518c\u8bd5\u7528",description:"\u9009\u62e9\u9700\u8981\u8bd5\u7528\u7684\u8ba2\u9605\uff0c\u5982\u679c\u6ca1\u6709\u9009\u9879\u8bf7\u5148\u524d\u5f80\u8ba2\u9605\u7ba1\u7406\u6dfb\u52a0\u3002"},h.a.createElement("select",{onChange:e=>this.set("site","try_out_plan_id",e.target.value),className:"form-control",value:t.try_out_plan_id,placeholder:"\u8bf7\u9009\u62e9\u8bd5\u7528\u8ba2\u9605"},h.a.createElement("option",{value:0},"\u5173\u95ed"),x.map(e=>{return h.a.createElement("option",{key:Math.random(),value:e.id},e.name)}))),0===t.try_out_plan_id||h.a.createElement(p,{isChildren:!0,title:"\u8bd5\u7528\u65f6\u95f4(\u5c0f\u65f6)"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.try_out_hour,onChange:e=>this.set("site","try_out_hour",e.target.value)})),h.a.createElement(p,{title:"\u90ae\u7bb1\u540e\u7f00\u767d\u540d\u5355",description:"\u5f00\u542f\u540e\u5728\u540d\u5355\u4e2d\u7684\u90ae\u7bb1\u540e\u7f00\u624d\u5141\u8bb8\u8fdb\u884c\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.email_whitelist_enable),onChange:e=>this.set("site","email_whitelist_enable",e?1:0)})),t.email_whitelist_enable?h.a.createElement(p,{isChildren:!0,title:"\u767d\u540d\u5355\u540e\u7f00",description:"\u8bf7\u4f7f\u7528\u9017\u53f7\u8fdb\u884c\u5206\u5272\uff0c\u5982\uff1aqq.com,gmail.com\u3002"},h.a.createElement("textarea",{rows:"4",type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u540e\u7f00\u57df\u540d\uff0c\u9017\u53f7\u5206\u5272 \u5982\uff1aqq.com,gmail.com",defaultValue:t.email_whitelist_suffix,onChange:e=>this.set("site","email_whitelist_suffix",e.target.value.split(","))})):"",h.a.createElement(p,{title:"\u9632\u673a\u5668\u4eba",description:"\u5f00\u542f\u540e\u5c06\u4f1a\u4f7f\u7528Google reCAPTCHA\u9632\u6b62\u673a\u5668\u4eba\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.recaptcha_enable),onChange:e=>this.set("site","recaptcha_enable",e?1:0)})),t.recaptcha_enable?h.a.createElement(h.a.Fragment,null,h.a.createElement(p,{isChildren:!0,title:"\u5bc6\u94a5",description:"\u5728Google reCAPTCHA\u7533\u8bf7\u7684\u5bc6\u94a5\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.recaptcha_key,onChange:e=>this.set("site","recaptcha_key",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u7f51\u7ad9\u5bc6\u94a5",description:"\u5728Google reCAPTCH\u7533\u8bf7\u7684\u7f51\u7ad9\u5bc6\u94a5\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.recaptcha_site_key,onChange:e=>this.set("site","recaptcha_site_key",e.target.value)}))):"",h.a.createElement(p,{title:"IP\u6ce8\u518c\u9650\u5236",description:"\u5f00\u542f\u540e\u5982\u679cIP\u6ce8\u518c\u8d26\u6237\u8fbe\u5230\u89c4\u5219\u8981\u6c42\u5c06\u4f1a\u88ab\u9650\u5236\u6ce8\u518c\uff0c\u8bf7\u6ce8\u610fIP\u5224\u65ad\u53ef\u80fd\u56e0\u4e3aCDN\u6216\u524d\u7f6e\u4ee3\u7406\u5bfc\u81f4\u95ee\u9898\u3002"},h.a.createElement(s["a"],{checked:parseInt(t.register_limit_by_ip_enable),onChange:e=>this.set("site","register_limit_by_ip_enable",e?1:0)})),t.register_limit_by_ip_enable?h.a.createElement(h.a.Fragment,null,h.a.createElement(p,{isChildren:!0,title:"\u6b21\u6570",description:"\u8fbe\u5230\u6ce8\u518c\u6b21\u6570\u540e\u5f00\u542f\u60e9\u7f5a\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.register_limit_count,onChange:e=>this.set("site","register_limit_count",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u60e9\u7f5a\u65f6\u95f4(\u5206\u949f)",description:"\u9700\u8981\u7b49\u5f85\u60e9\u7f5a\u65f6\u95f4\u8fc7\u540e\u624d\u53ef\u4ee5\u518d\u6b21\u6ce8\u518c\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:t.register_limit_expire,onChange:e=>this.set("site","register_limit_expire",e.target.value)}))):"",h.a.createElement(p,{title:"\u8d27\u5e01\u5355\u4f4d",description:"\u4ec5\u7528\u4e8e\u5c55\u793a\u4f7f\u7528\uff0c\u66f4\u6539\u540e\u7cfb\u7edf\u4e2d\u6240\u6709\u7684\u8d27\u5e01\u5355\u4f4d\u90fd\u5c06\u53d1\u751f\u53d8\u66f4\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"CNY",defaultValue:t.currency,onChange:e=>this.set("site","currency",e.target.value)})),h.a.createElement(p,{title:"\u8d27\u5e01\u7b26\u53f7",description:"\u4ec5\u7528\u4e8e\u5c55\u793a\u4f7f\u7528\uff0c\u66f4\u6539\u540e\u7cfb\u7edf\u4e2d\u6240\u6709\u7684\u8d27\u5e01\u5355\u4f4d\u90fd\u5c06\u53d1\u751f\u53d8\u66f4\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\xa5",defaultValue:t.currency_symbol,onChange:e=>this.set("site","currency_symbol",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"\u8ba2\u9605",key:"subscribe"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u5141\u8bb8\u7528\u6237\u66f4\u6539\u8ba2\u9605",description:"\u5f00\u542f\u540e\u7528\u6237\u5c06\u4f1a\u53ef\u4ee5\u5bf9\u8ba2\u9605\u8ba1\u5212\u8fdb\u884c\u53d8\u66f4\u3002"},h.a.createElement(s["a"],{checked:parseInt(r.plan_change_enable),onChange:e=>this.set("subscribe","plan_change_enable",e?1:0)})),h.a.createElement(p,{title:"\u6708\u6d41\u91cf\u91cd\u7f6e\u65b9\u5f0f",description:"\u5168\u5c40\u6d41\u91cf\u91cd\u7f6e\u65b9\u5f0f\uff0c\u9ed8\u8ba4\u6bcf\u67081\u53f7\u3002\u53ef\u4ee5\u5728\u8ba2\u9605\u7ba1\u7406\u4e3a\u8ba2\u9605\u5355\u72ec\u8bbe\u7f6e\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","reset_traffic_method",e.target.value),className:"form-control",value:r.reset_traffic_method,placeholder:"\u8bf7\u9009\u62e9\u8ba2\u9605\u91cd\u7f6e\u65b9\u5f0f"},h.a.createElement("option",{value:0},"\u6bcf\u67081\u53f7"),h.a.createElement("option",{value:1},"\u6309\u6708\u91cd\u7f6e"),h.a.createElement("option",{value:2},"\u4e0d\u91cd\u7f6e"),h.a.createElement("option",{value:3},"\u6bcf\u5e741\u67081\u65e5"),h.a.createElement("option",{value:4},"\u6309\u5e74\u91cd\u7f6e"))),h.a.createElement(p,{title:"\u5f00\u542f\u6298\u62b5\u65b9\u6848",description:"\u5f00\u542f\u540e\u7528\u6237\u66f4\u6362\u8ba2\u9605\u5c06\u4f1a\u7531\u7cfb\u7edf\u5bf9\u539f\u6709\u8ba2\u9605\u8fdb\u884c\u6298\u62b5\uff0c\u65b9\u6848\u53c2\u8003\u6587\u6863\u3002"},h.a.createElement(s["a"],{checked:parseInt(r.surplus_enable),onChange:e=>this.set("subscribe","surplus_enable",e?1:0)})),h.a.createElement(p,{title:"\u5f53\u8ba2\u9605\u65b0\u8d2d\u65f6\u89e6\u53d1\u4e8b\u4ef6",description:"\u65b0\u8d2d\u8ba2\u9605\u5b8c\u6210\u65f6\u5c06\u89e6\u53d1\u8be5\u4efb\u52a1\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","new_order_event_id",e.target.value),className:"form-control",value:r.new_order_event_id,placeholder:"\u8bf7\u9009\u62e9\u4e8b\u4ef6"},h.a.createElement("option",{value:0},"\u4e0d\u6267\u884c\u4efb\u4f55\u52a8\u4f5c"),h.a.createElement("option",{value:1},"\u91cd\u7f6e\u7528\u6237\u6d41\u91cf"))),h.a.createElement(p,{title:"\u5f53\u8ba2\u9605\u7eed\u8d39\u65f6\u89e6\u53d1\u4e8b\u4ef6",description:"\u7eed\u8d39\u8ba2\u9605\u5b8c\u6210\u65f6\u5c06\u89e6\u53d1\u8be5\u4efb\u52a1\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","renew_order_event_id",e.target.value),className:"form-control",value:r.renew_order_event_id,placeholder:"\u8bf7\u9009\u62e9\u4e8b\u4ef6"},h.a.createElement("option",{value:0},"\u4e0d\u6267\u884c\u4efb\u4f55\u52a8\u4f5c"),h.a.createElement("option",{value:1},"\u91cd\u7f6e\u7528\u6237\u6d41\u91cf"))),h.a.createElement(p,{title:"\u5f53\u8ba2\u9605\u53d8\u66f4\u65f6\u89e6\u53d1\u4e8b\u4ef6",description:"\u53d8\u66f4\u8ba2\u9605\u5b8c\u6210\u65f6\u5c06\u89e6\u53d1\u8be5\u4efb\u52a1\u3002"},h.a.createElement("select",{onChange:e=>this.set("subscribe","change_order_event_id",e.target.value),className:"form-control",value:r.change_order_event_id,placeholder:"\u8bf7\u9009\u62e9\u4e8b\u4ef6"},h.a.createElement("option",{value:0},"\u4e0d\u6267\u884c\u4efb\u4f55\u52a8\u4f5c"),h.a.createElement("option",{value:1},"\u91cd\u7f6e\u7528\u6237\u6d41\u91cf"))),h.a.createElement(p,{title:"\u5728\u8ba2\u9605\u4e2d\u5c55\u793a\u8ba2\u9605\u4fe1\u606f",description:"\u5f00\u542f\u540e\u5c06\u4f1a\u5728\u7528\u6237\u8ba2\u9605\u8282\u70b9\u65f6\u8f93\u51fa\u8ba2\u9605\u4fe1\u606f\u3002"},h.a.createElement(s["a"],{checked:parseInt(r.show_info_to_server_enable),onChange:e=>this.set("subscribe","show_info_to_server_enable",e?1:0)})))),h.a.createElement(a["a"].TabPane,{tab:"\u9080\u8bf7&\u4f63\u91d1",key:"invite"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u5f00\u542f\u5f3a\u5236\u9080\u8bf7",description:"\u5f00\u542f\u540e\u53ea\u6709\u88ab\u9080\u8bf7\u7684\u7528\u6237\u624d\u53ef\u4ee5\u8fdb\u884c\u6ce8\u518c\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.invite_force),onChange:e=>this.set("invite","invite_force",e?1:0)})),h.a.createElement(p,{title:"\u9080\u8bf7\u4f63\u91d1\u767e\u5206\u6bd4",description:"\u9ed8\u8ba4\u5168\u5c40\u7684\u4f63\u91d1\u5206\u914d\u6bd4\u4f8b\uff0c\u4f60\u53ef\u4ee5\u5728\u7528\u6237\u7ba1\u7406\u5355\u72ec\u914d\u7f6e\u5355\u4e2a\u6bd4\u4f8b\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:n.invite_commission,onChange:e=>this.set("invite","invite_commission",parseInt(e.target.value))})),h.a.createElement(p,{title:"\u7528\u6237\u53ef\u521b\u5efa\u9080\u8bf7\u7801\u4e0a\u9650"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:n.invite_gen_limit,onChange:e=>this.set("invite","invite_gen_limit",parseInt(e.target.value))})),h.a.createElement(p,{title:"\u9080\u8bf7\u7801\u6c38\u4e0d\u5931\u6548",description:"\u5f00\u542f\u540e\u9080\u8bf7\u7801\u88ab\u4f7f\u7528\u540e\u5c06\u4e0d\u4f1a\u5931\u6548\uff0c\u5426\u5219\u4f7f\u7528\u8fc7\u540e\u5373\u5931\u6548\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.invite_never_expire),onChange:e=>this.set("invite","invite_never_expire",e?1:0)})),h.a.createElement(p,{title:"\u4f63\u91d1\u4ec5\u9996\u6b21\u53d1\u653e",description:"\u5f00\u542f\u540e\u88ab\u9080\u8bf7\u4eba\u9996\u6b21\u652f\u4ed8\u65f6\u624d\u4f1a\u4ea7\u751f\u4f63\u91d1\uff0c\u53ef\u4ee5\u5728\u7528\u6237\u7ba1\u7406\u5bf9\u7528\u6237\u8fdb\u884c\u5355\u72ec\u914d\u7f6e\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.commission_first_time_enable),onChange:e=>this.set("invite","commission_first_time_enable",e?1:0)})),h.a.createElement(p,{title:"\u4f63\u91d1\u81ea\u52a8\u786e\u8ba4",description:"\u5f00\u542f\u540e\u4f63\u91d1\u5c06\u4f1a\u5728\u8ba2\u5355\u5b8c\u62103\u65e5\u540e\u81ea\u52a8\u8fdb\u884c\u786e\u8ba4\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.commission_auto_check_enable),onChange:e=>this.set("invite","commission_auto_check_enable",e?1:0)})),h.a.createElement(p,{title:"\u63d0\u73b0\u5355\u7533\u8bf7\u95e8\u69db(\u5143)",description:"\u5c0f\u4e8e\u95e8\u69db\u91d1\u989d\u7684\u63d0\u73b0\u5355\u5c06\u4e0d\u4f1a\u88ab\u63d0\u4ea4\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:n.commission_withdraw_limit,onChange:e=>this.set("invite","commission_withdraw_limit",e.target.value)})),h.a.createElement(p,{title:"\u63d0\u73b0\u65b9\u5f0f",description:"\u53ef\u4ee5\u652f\u6301\u7684\u63d0\u73b0\u65b9\u5f0f\u3002"},h.a.createElement("textarea",{rows:"4",type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u540e\u7f00\u57df\u540d\uff0c\u9017\u53f7\u5206\u5272 \u5982\uff1a\u652f\u4ed8\u5b9d,USDT,\u8d1d\u5b9d",defaultValue:n.commission_withdraw_method,onChange:e=>this.set("invite","commission_withdraw_method",e.target.value.split(","))})),h.a.createElement(p,{title:"\u5173\u95ed\u63d0\u73b0",description:"\u5173\u95ed\u540e\u5c06\u7981\u6b62\u7528\u6237\u7533\u8bf7\u63d0\u73b0\uff0c\u4e14\u9080\u8bf7\u4f63\u91d1\u5c06\u4f1a\u76f4\u63a5\u8fdb\u5165\u7528\u6237\u4f59\u989d\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.withdraw_close_enable),onChange:e=>this.set("invite","withdraw_close_enable",e?1:0)})),h.a.createElement(p,{title:"\u4e09\u7ea7\u5206\u9500",description:"\u5f00\u542f\u540e\u5c06\u4f63\u91d1\u5c06\u6309\u7167\u8bbe\u7f6e\u76843\u6210\u6bd4\u4f8b\u8fdb\u884c\u5206\u6210\uff0c\u4e09\u6210\u6bd4\u4f8b\u5408\u8ba1\u8bf7\u4e0d\u8981>100%\u3002"},h.a.createElement(s["a"],{checked:parseInt(n.commission_distribution_enable),onChange:e=>this.set("invite","commission_distribution_enable",e?1:0)})),parseInt(n.commission_distribution_enable)?h.a.createElement(h.a.Fragment,null,h.a.createElement(p,{isChildren:!0,title:"\u4e00\u7ea7\u9080\u8bf7\u4eba\u6bd4\u4f8b"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u6bd4\u4f8b\u5982\uff1a50",defaultValue:n.commission_distribution_l1,onChange:e=>this.set("invite","commission_distribution_l1",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u4e8c\u7ea7\u9080\u8bf7\u4eba\u6bd4\u4f8b"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u6bd4\u4f8b\u5982\uff1a30",defaultValue:n.commission_distribution_l2,onChange:e=>this.set("invite","commission_distribution_l2",e.target.value)})),h.a.createElement(p,{isChildren:!0,title:"\u4e09\u7ea7\u9080\u8bf7\u4eba\u6bd4\u4f8b"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165\u6bd4\u4f8b\u5982\uff1a20",defaultValue:n.commission_distribution_l3,onChange:e=>this.set("invite","commission_distribution_l3",e.target.value)}))):"")),h.a.createElement(a["a"].TabPane,{tab:"\u4e2a\u6027\u5316",key:"frontend"},h.a.createElement("div",{className:"block-content"},h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-lg-12"},h.a.createElement("div",{className:"alert alert-warning",role:"alert"},h.a.createElement("p",{className:"mb-0"},"\u5982\u679c\u4f60\u91c7\u7528\u524d\u540e\u5206\u79bb\u7684\u65b9\u5f0f\u90e8\u7f72V2board\u7ba1\u7406\u7aef\uff0c\u90a3\u4e48\u672c\u9875\u914d\u7f6e\u5c06\u4e0d\u4f1a\u751f\u6548\u3002\u4e86\u89e3",h.a.createElement("b",null,h.a.createElement("a",{href:"https://docs.v2board.com/use/advanced.html#%E5%89%8D%E7%AB%AF%E5%88%86%E7%A6%BB"},"\u524d\u540e\u5206\u79bb"))))))),h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u540e\u53f0\u8def\u5f84",description:"\u540e\u53f0\u7ba1\u7406\u754c\u9762\u8def\u5f84\uff0c\u4fee\u6539\u540e\u5c06\u4f1a\u6539\u53d8\u539f\u6709\u7684admin\u8def\u5f84"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"admin",defaultValue:l.frontend_admin_path,onChange:e=>this.set("frontend","frontend_admin_path",e.target.value)})),h.a.createElement(p,{title:"\u8fb9\u680f\u98ce\u683c"},h.a.createElement(s["a"],{checkedChildren:"\u4eae",unCheckedChildren:"\u6697",checked:"light"===l.frontend_theme_sidebar?1:0,onChange:e=>this.set("site","frontend_theme_sidebar",e?"light":"dark")})),h.a.createElement(p,{title:"\u5934\u90e8\u98ce\u683c"},h.a.createElement(s["a"],{checkedChildren:"\u4eae",unCheckedChildren:"\u6697",checked:"light"===l.frontend_theme_header?1:0,onChange:e=>this.set("site","frontend_theme_header",e?"light":"dark")})),h.a.createElement(p,{title:"\u4e3b\u9898\u8272"},h.a.createElement("select",{className:"form-control",defaultValue:l.frontend_theme_color,onChange:e=>this.set("frontend","frontend_theme_color",e.target.value)},h.a.createElement("option",{value:"default"},"\u9ed8\u8ba4"),h.a.createElement("option",{value:"black"},"\u9ed1\u8272"),h.a.createElement("option",{value:"darkblue"},"\u6697\u84dd\u8272"),h.a.createElement("option",{value:"green"},"\u5976\u7eff\u8272"))),h.a.createElement(p,{title:"\u80cc\u666f",description:"\u5c06\u4f1a\u5728\u540e\u53f0\u767b\u5f55\u9875\u9762\u8fdb\u884c\u5c55\u793a\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"https://xxxxx.com/wallpaper.png",defaultValue:l.frontend_background_url,onChange:e=>this.set("frontend","frontend_background_url",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"\u670d\u52a1\u7aef",key:"server"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u901a\u8baf\u5bc6\u94a5",description:"V2board\u4e0e\u670d\u52a1\u7aef\u901a\u8baf\u7684\u5bc6\u94a5\uff0c\u4ee5\u4fbf\u6570\u636e\u4e0d\u4f1a\u88ab\u4ed6\u4eba\u83b7\u53d6\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_token,onChange:e=>this.set("server","server_token",e.target.value)})),h.a.createElement(p,{title:"\u6388\u6743\u6587\u4ef6",description:"\u4f60\u4f7f\u7528\u7684\u670d\u52a1\u7aef\u5982\u679c\u8981\u6c42\u4f60\u4f7f\u7528\u6388\u6743\u6587\u4ef6\uff0c\u4f60\u53ef\u4ee5\u5728\u6b64\u586b\u5165\u3002"},h.a.createElement("textarea",{rows:4,type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_license,onChange:e=>this.set("server","server_license",e.target.value)})),h.a.createElement(p,{title:"\u8bb0\u5f55\u65e5\u5fd7",description:"\u670d\u52a1\u7aef\u662f\u5426\u8bb0\u5f55\u65e5\u5fd7\uff0c\u5173\u95ed\u53ef\u907f\u514d\u65e5\u5fd7\u5360\u7528\u78c1\u76d8\u7a7a\u95f4\u8fc7\u5927\u3002"},h.a.createElement(s["a"],{checked:parseInt(c.server_log_enable),onChange:e=>this.set("server","server_log_enable",e?1:0)})),h.a.createElement(p,{title:"V2ray\u5168\u5c40\u57df\u540d\u8fc7\u6ee4\u5668",description:"\u6b64\u5904\u7684\u89c4\u5219\u5c06\u4f1a\u4e0e\u8282\u70b9\u914d\u7f6e\u7684\u89c4\u5219\u5408\u5e76\u8fdb\u884c\u8fc7\u6ee4\uff0c\u4e00\u884c\u4e00\u6761\u3002"},h.a.createElement("textarea",{rows:4,type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_v2ray_domain,onChange:e=>this.set("server","server_v2ray_domain",e.target.value)})),h.a.createElement(p,{title:"V2ray\u5168\u5c40\u534f\u8bae\u8fc7\u6ee4\u5668",description:"\u6b64\u5904\u7684\u89c4\u5219\u5c06\u4f1a\u4e0e\u8282\u70b9\u914d\u7f6e\u7684\u89c4\u5219\u5408\u5e76\u8fdb\u884c\u8fc7\u6ee4\uff0c\u4e00\u884c\u4e00\u6761\u3002"},h.a.createElement("textarea",{rows:4,type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:c.server_v2ray_protocol,onChange:e=>this.set("server","server_v2ray_protocol",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"\u90ae\u4ef6",key:"email"},h.a.createElement("div",{className:"block-content"},h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-lg-12"},h.a.createElement("div",{className:"alert alert-warning",role:"alert"},h.a.createElement("p",{className:"mb-0"},"\u5982\u679c\u4f60\u66f4\u6539\u4e86\u672c\u9875\u914d\u7f6e\uff0c\u9700\u8981\u5bf9\u961f\u5217\u670d\u52a1\u8fdb\u884c\u91cd\u542f\u3002\u53e6\u5916\u672c\u9875\u914d\u7f6e\u4f18\u5148\u7ea7\u9ad8\u4e8e.env\u4e2d\u90ae\u4ef6\u914d\u7f6e\u3002"))))),h.a.createElement("div",{className:""},h.a.createElement(p,{title:"SMTP\u670d\u52a1\u5668\u5730\u5740",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u670d\u52a1\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_host,onChange:e=>this.set("email","email_host",e.target.value)})),h.a.createElement(p,{title:"SMTP\u670d\u52a1\u7aef\u53e3",description:"\u5e38\u89c1\u7684\u7aef\u53e3\u670925, 465, 587"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_port,onChange:e=>this.set("email","email_port",e.target.value)})),h.a.createElement(p,{title:"SMTP\u52a0\u5bc6\u65b9\u5f0f",description:"465\u7aef\u53e3\u52a0\u5bc6\u65b9\u5f0f\u4e00\u822c\u4e3aSSL\uff0c587\u7aef\u53e3\u52a0\u5bc6\u65b9\u5f0f\u4e00\u822c\u4e3aTLS"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_encryption,onChange:e=>this.set("email","email_encryption",e.target.value)})),h.a.createElement(p,{title:"SMTP\u8d26\u53f7",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u8d26\u53f7"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_username,onChange:e=>this.set("email","email_username",e.target.value)})),h.a.createElement(p,{title:"SMTP\u5bc6\u7801",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u5bc6\u7801"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_password,onChange:e=>this.set("email","email_password",e.target.value)})),h.a.createElement(p,{title:"\u53d1\u4ef6\u5730\u5740",description:"\u7531\u90ae\u4ef6\u670d\u52a1\u5546\u63d0\u4f9b\u7684\u53d1\u4ef6\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"\u8bf7\u8f93\u5165",defaultValue:g.email_from_address,onChange:e=>this.set("email","email_from_address",e.target.value)})),h.a.createElement(p,{title:"\u90ae\u4ef6\u6a21\u677f",description:"\u4f60\u53ef\u4ee5\u5728\u6587\u6863\u67e5\u770b\u5982\u4f55\u81ea\u5b9a\u4e49\u90ae\u4ef6\u6a21\u677f"},h.a.createElement("select",{onChange:e=>this.set("email","email_template",e.target.value),className:"form-control",value:g.email_template},m.map(e=>{return h.a.createElement("option",{key:Math.random(),value:e},e)}))),h.a.createElement(p,{title:"\u53d1\u9001\u6d4b\u8bd5\u90ae\u4ef6",description:"\u90ae\u4ef6\u5c06\u4f1a\u53d1\u9001\u5230\u5f53\u524d\u767b\u9646\u7528\u6237\u90ae\u7bb1"},h.a.createElement(o["a"],{loading:w,type:"primary",onClick:()=>this.props.dispatch({type:"config/testSendMail"})},"\u53d1\u9001\u6d4b\u8bd5\u90ae\u4ef6")))),h.a.createElement(a["a"].TabPane,{tab:"Telegram",key:"telegram"},h.a.createElement("div",{className:""},h.a.createElement(p,{title:"\u673a\u5668\u4ebaToken",description:"\u8bf7\u8f93\u5165\u7531Botfather\u63d0\u4f9b\u7684token\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"0000000000:xxxxxxxxx_xxxxxxxxxxxxxxx",defaultValue:v.telegram_bot_token,onChange:e=>this.set("telegram","telegram_bot_token",e.target.value)})),v.telegram_bot_token&&h.a.createElement(p,{title:"\u8bbe\u7f6eWebhook",description:"\u5bf9\u673a\u5668\u4eba\u8fdb\u884cWebhook\u8bbe\u7f6e\uff0c\u4e0d\u8bbe\u7f6e\u5c06\u65e0\u6cd5\u6536\u5230Telegram\u901a\u77e5\u3002"},h.a.createElement(o["a"],{type:"primary",onClick:()=>{this.props.dispatch({type:"config/setTelegramWebhook"})},loading:y,disabled:y},"\u4e00\u952e\u8bbe\u7f6e")),h.a.createElement(p,{title:"\u5f00\u542f\u673a\u5668\u4eba\u901a\u77e5",description:"\u5f00\u542f\u540ebot\u5c06\u4f1a\u5bf9\u7ed1\u5b9a\u4e86telegram\u7684\u7ba1\u7406\u5458\u548c\u7528\u6237\u8fdb\u884c\u57fa\u7840\u901a\u77e5\u3002"},h.a.createElement(s["a"],{checked:parseInt(v.telegram_bot_enable),onChange:e=>this.set("telegram","telegram_bot_enable",e?1:0)})),h.a.createElement(p,{title:"\u7fa4\u7ec4\u5730\u5740",description:"\u586b\u5199\u540e\u5c06\u4f1a\u5728\u7528\u6237\u7aef\u5c55\u793a\uff0c\u6216\u8005\u88ab\u7528\u4e8e\u9700\u8981\u7684\u5730\u65b9\u3002"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"https://t.me/xxxxxx",defaultValue:v.telegram_discuss_link,onChange:e=>this.set("telegram","telegram_discuss_link",e.target.value)})))),h.a.createElement(a["a"].TabPane,{tab:"APP",key:"app"},h.a.createElement("div",{className:"block-content"},h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"col-lg-12"},h.a.createElement("div",{className:"alert alert-warning",role:"alert"},h.a.createElement("p",{className:"mb-0"},"\u7528\u4e8e\u81ea\u6709\u5ba2\u6237\u7aef(APP)\u7684\u7248\u672c\u7ba1\u7406\u53ca\u66f4\u65b0"))))),h.a.createElement("div",{className:""},h.a.createElement(p,{title:"Windows",description:"Windows\u7aef\u7248\u672c\u53f7\u53ca\u4e0b\u8f7d\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"1.0.0",defaultValue:b.windows_version,onChange:e=>this.set("app","windows_version",e.target.value)}),h.a.createElement("input",{type:"text",className:"form-control mt-1",placeholder:"https://xxxx.com/xxx.exe",defaultValue:b.windows_download_url,onChange:e=>this.set("app","windows_download_url",e.target.value)})),h.a.createElement(p,{title:"macOS",description:"macOS\u7aef\u7248\u672c\u53f7\u53ca\u4e0b\u8f7d\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"1.0.0",defaultValue:b.macos_version,onChange:e=>this.set("app","macos_version",e.target.value)}),h.a.createElement("input",{type:"text",className:"form-control mt-1",placeholder:"https://xxxx.com/xxx.dmg",defaultValue:b.macos_download_url,onChange:e=>this.set("app","macos_download_url",e.target.value)})),h.a.createElement(p,{title:"Android",description:"Android\u7aef\u7248\u672c\u53f7\u53ca\u4e0b\u8f7d\u5730\u5740"},h.a.createElement("input",{type:"text",className:"form-control",placeholder:"1.0.0",defaultValue:b.android_version,onChange:e=>this.set("app","android_version",e.target.value)}),h.a.createElement("input",{type:"text",className:"form-control mt-1",placeholder:"https://xxxx.com/xxx.apk",defaultValue:b.android_download_url,onChange:e=>this.set("app","android_download_url",e.target.value)})))))))}}t["default"]=Object(d["c"])(e=>{var t=e.plan,n=e.config;return{plan:t,config:n}})(m)},"1j5w":function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("xI0J"),a=n("4IlW"),s=n("2GS6"),l=n("Gytx"),c=n.n(l),u=n("TSYQ"),h=n.n(u);function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function d(e){for(var t=1;t0&&setTimeout(function(){e.onMotionEnd({deadline:!0})},i)}})},e.nextFrame=function(t){e.cancelNextFrame(),e.raf=pe()(t)},e.cancelNextFrame=function(){e.raf&&(pe.a.cancel(e.raf),e.raf=null)},e.state={status:ke,statusActive:!1,newStatus:!1,statusStyle:null},e.$cacheEle=null,e.node=null,e.raf=null,e}return le()(t,e),ie()(t,[{key:"componentDidMount",value:function(){this.onDomUpdate()}},{key:"componentDidUpdate",value:function(){this.onDomUpdate()}},{key:"componentWillUnmount",value:function(){this._destroyed=!0,this.removeEventListener(this.$cacheEle),this.cancelNextFrame()}},{key:"render",value:function(){var e,t=this.state,n=t.status,i=t.statusActive,o=t.statusStyle,a=this.props,s=a.children,l=a.motionName,c=a.visible,u=a.removeOnLeave,f=a.leavedClassName,d=a.eventProps;return s?n!==ke&&r(this.props)?s(ee()({},d,{className:h()((e={},Z()(e,Ce(l,n),n!==ke),Z()(e,Ce(l,n+"-active"),n!==ke&&i),Z()(e,l,"string"===typeof l),e)),style:o}),this.setNodeRef):c?s(ee()({},d),this.setNodeRef):u?null:s(ee()({},d,{className:f}),this.setNodeRef):null}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,i=t.status;if(!r(e))return{};var o=e.visible,a=e.motionAppear,s=e.motionEnter,l=e.motionLeave,c=e.motionLeaveImmediately,u={prevProps:e};return(i===Oe&&!a||i===Te&&!s||i===Ae&&!l)&&(u.status=ke,u.statusActive=!1,u.newStatus=!1),!n&&o&&a&&(u.status=Oe,u.statusActive=!1,u.newStatus=!0),n&&!n.visible&&o&&s&&(u.status=Te,u.statusActive=!1,u.newStatus=!0),(n&&n.visible&&!o&&l||!n&&c&&!o&&l)&&(u.status=Ae,u.statusActive=!1,u.newStatus=!0),u}}]),t}(i.a.Component);return o.propTypes=ee()({},Pe,{internalRef:ue.a.oneOfType([ue.a.object,ue.a.func])}),o.defaultProps={visible:!0,motionEnter:!0,motionAppear:!0,motionLeave:!0,removeOnLeave:!0},Object(he["polyfill"])(o),n?i.a.forwardRef(function(e,t){return i.a.createElement(o,ee()({internalRef:t},e))}):o}var Re=Me(Se),je={adjustX:1,adjustY:1},Le={topLeft:{points:["bl","tl"],overflow:je,offset:[0,-7]},bottomLeft:{points:["tl","bl"],overflow:je,offset:[0,7]},leftTop:{points:["tr","tl"],overflow:je,offset:[-4,0]},rightTop:{points:["tl","tr"],overflow:je,offset:[4,0]}},De=Le;function Ne(e){return Ne="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ne(e)}function Ie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $e(e,t){for(var n=0;n=n.subMenuTitle.offsetWidth||(e.style.minWidth="".concat(n.subMenuTitle.offsetWidth,"px"))}},n.saveSubMenuTitle=function(e){n.subMenuTitle=e};var r=e.store,i=e.eventKey,o=r.getState(),s=o.defaultActiveFirst;n.isRootMenu=!1;var l=!1;return s&&(l=s[i]),Xe(r,i,l),n}return He(t,e),Fe(t,[{key:"componentDidMount",value:function(){this.componentDidUpdate()}},{key:"componentDidUpdate",value:function(){var e=this,t=this.props,n=t.mode,r=t.parentMenu,i=t.manualRef;i&&i(this),"horizontal"===n&&r.isRootMenu&&this.props.isOpen&&(this.minWidthTimeout=setTimeout(function(){return e.adjustWidth()},0))}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.onDestroy,n=e.eventKey;t&&t(n),this.minWidthTimeout&&clearTimeout(this.minWidthTimeout),this.mouseenterTimeout&&clearTimeout(this.mouseenterTimeout)}},{key:"renderChildren",value:function(e){var t=this,n=this.props,i={mode:"horizontal"===n.mode?"vertical":n.mode,visible:this.props.isOpen,level:n.level+1,inlineIndent:n.inlineIndent,focusable:!1,onClick:this.onSubMenuClick,onSelect:this.onSelect,onDeselect:this.onDeselect,onDestroy:this.onDestroy,selectedKeys:n.selectedKeys,eventKey:"".concat(n.eventKey,"-menu-"),openKeys:n.openKeys,motion:n.motion,onOpenChange:this.onOpenChange,subMenuOpenDelay:n.subMenuOpenDelay,parentMenu:this,subMenuCloseDelay:n.subMenuCloseDelay,forceSubMenuRender:n.forceSubMenuRender,triggerSubMenuAction:n.triggerSubMenuAction,builtinPlacements:n.builtinPlacements,defaultActiveFirst:n.store.getState().defaultActiveFirst[B(n.eventKey)],multiple:n.multiple,prefixCls:n.rootPrefixCls,id:this.internalMenuId,manualRef:this.saveMenuInstance,itemIcon:n.itemIcon,expandIcon:n.expandIcon},o=this.haveRendered;if(this.haveRendered=!0,this.haveOpened=this.haveOpened||i.visible||i.forceSubMenuRender,!this.haveOpened)return r["createElement"]("div",null);var a=qe({},n.motion,{leavedClassName:"".concat(n.rootPrefixCls,"-hidden"),removeOnLeave:!1,motionAppear:o||!i.visible||"inline"!==i.mode});return r["createElement"](Re,Object.assign({visible:i.visible},a),function(n){var o=n.className,a=n.style,s=h()("".concat(i.prefixCls,"-sub"),o);return r["createElement"](Ht,Object.assign({},i,{id:t.internalMenuId,className:s,style:a}),e)})}},{key:"render",value:function(){var e,t=qe({},this.props),n=t.isOpen,i=this.getPrefixCls(),o="inline"===t.mode,a=h()(i,"".concat(i,"-").concat(t.mode),(e={},Ke(e,t.className,!!t.className),Ke(e,this.getOpenClassName(),n),Ke(e,this.getActiveClassName(),t.active||n&&!o),Ke(e,this.getDisabledClassName(),t.disabled),Ke(e,this.getSelectedClassName(),this.isChildrenSelected()),e));this.internalMenuId||(t.eventKey?this.internalMenuId="".concat(t.eventKey,"$Menu"):(Ge+=1,this.internalMenuId="$__$".concat(Ge,"$Menu")));var s={},l={},c={};t.disabled||(s={onMouseLeave:this.onMouseLeave,onMouseEnter:this.onMouseEnter},l={onClick:this.onTitleClick},c={onMouseEnter:this.onTitleMouseEnter,onMouseLeave:this.onTitleMouseLeave});var u={};o&&(u.paddingLeft=t.inlineIndent*t.level);var f={};this.props.isOpen&&(f={"aria-owns":this.internalMenuId});var d=null;"horizontal"!==t.mode&&(d=this.props.expandIcon,"function"===typeof this.props.expandIcon&&(d=r["createElement"](this.props.expandIcon,qe({},this.props))));var p=r["createElement"]("div",Object.assign({ref:this.saveSubMenuTitle,style:u,className:"".concat(i,"-title")},c,l,{"aria-expanded":n},f,{"aria-haspopup":"true",title:"string"===typeof t.title?t.title:void 0}),t.title,d||r["createElement"]("i",{className:"".concat(i,"-arrow")})),m=this.renderChildren(t.children),g=t.parentMenu.isRootMenu?t.parentMenu.props.getPopupContainer:function(e){return e.parentNode},v=Ye[t.mode],y=t.popupOffset?{offset:t.popupOffset}:{},b="inline"===t.mode?"":t.popupClassName,w=t.disabled,x=t.triggerSubMenuAction,_=t.subMenuOpenDelay,E=t.forceSubMenuRender,S=t.subMenuCloseDelay,C=t.builtinPlacements;return H.forEach(function(e){return delete t[e]}),delete t.onClick,r["createElement"]("li",Object.assign({},t,s,{className:a,role:"menuitem"}),o&&p,o&&m,!o&&r["createElement"](X["a"],{prefixCls:i,popupClassName:"".concat(i,"-popup ").concat(b),getPopupContainer:g,builtinPlacements:Object.assign({},De,C),popupPlacement:v,popupVisible:n,popupAlign:y,popup:m,action:w?[]:[x],mouseEnterDelay:_,mouseLeaveDelay:S,onPopupVisibleChange:this.onPopupVisibleChange,forceRender:E},p))}}]),t}(r["Component"]);Qe.defaultProps={onMouseEnter:$,onMouseLeave:$,onTitleMouseEnter:$,onTitleMouseLeave:$,onTitleClick:$,manualRef:$,mode:"vertical",title:""};var Ze=Object(o["connect"])(function(e,t){var n=e.openKeys,r=e.activeKey,i=e.selectedKeys,o=t.eventKey,a=t.subMenuKey;return{isOpen:n.indexOf(o)>-1,active:r[a]===o,selectedKeys:i}})(Qe);Ze.isSubMenu=!0;var Je=Ze;function et(e){return et="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},et(e)}function tt(e){return it(e)||rt(e)||nt()}function nt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function rt(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function it(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function ct(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function ut(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ht(e,t){for(var n=0;n=0});o.forEach(function(e){z(e,"display","inline-block")}),e.menuItemSizes=i.map(function(e){return U(e)}),o.forEach(function(e){z(e,"display","none")}),e.overflowedIndicatorWidth=U(t.children[t.children.length-1]),e.originalTotalWidth=e.menuItemSizes.reduce(function(e,t){return e+t},0),e.handleResize(),z(r,"display","none")}}}},e.handleResize=function(){if("horizontal"===e.props.mode){var t=K["findDOMNode"](mt(e));if(t){var n=U(t);e.overflowedItems=[];var r,i=0;e.originalTotalWidth>n+wt&&(r=-1,e.menuItemSizes.forEach(function(t){i+=t,i+e.overflowedIndicatorWidth<=n&&(r+=1)})),e.setState({lastVisibleIndex:r})}}},e}return gt(t,e),ft(t,[{key:"componentDidMount",value:function(){var e=this;if(this.setChildrenWidthAndResize(),1===this.props.level&&"horizontal"===this.props.mode){var t=K["findDOMNode"](this);if(!t)return;this.resizeObserver=new Y["default"](function(t){t.forEach(e.setChildrenWidthAndResize)}),[].slice.call(t.children).concat(t).forEach(function(t){e.resizeObserver.observe(t)}),"undefined"!==typeof MutationObserver&&(this.mutationObserver=new MutationObserver(function(){e.resizeObserver.disconnect(),[].slice.call(t.children).concat(t).forEach(function(t){e.resizeObserver.observe(t)}),e.setChildrenWidthAndResize()}),this.mutationObserver.observe(t,{attributes:!1,childList:!0,subTree:!1}))}}},{key:"componentWillUnmount",value:function(){this.resizeObserver&&this.resizeObserver.disconnect(),this.mutationObserver&&this.mutationObserver.disconnect()}},{key:"renderChildren",value:function(e){var t=this,n=this.state.lastVisibleIndex;return(e||[]).reduce(function(i,o,a){var s=o;if("horizontal"===t.props.mode){var l=t.getOverflowedSubMenuItem(o.props.eventKey,[]);void 0!==n&&-1!==t.props.className.indexOf("".concat(t.props.prefixCls,"-root"))&&(a>n&&(s=r["cloneElement"](o,{style:{display:"none"},eventKey:"".concat(o.props.eventKey,"-hidden"),className:"".concat(bt)})),a===n+1&&(t.overflowedItems=e.slice(n+1).map(function(e){return r["cloneElement"](e,{key:e.props.eventKey,mode:"vertical-left"})}),l=t.getOverflowedSubMenuItem(o.props.eventKey,t.overflowedItems)));var c=[].concat(tt(i),[l,s]);return a===e.length-1&&c.push(t.getOverflowedSubMenuItem(o.props.eventKey,[],!0)),c}return[].concat(tt(i),[s])},[])}},{key:"render",value:function(){var e=this.props,t=(e.visible,e.prefixCls,e.overflowedIndicator,e.mode,e.level,e.tag),n=e.children,i=(e.theme,lt(e,["visible","prefixCls","overflowedIndicator","mode","level","tag","children","theme"])),o=t;return r["createElement"](o,Object.assign({},i),this.renderChildren(n))}}]),t}(r["Component"]);xt.defaultProps={tag:"div",className:""};var _t=xt;function Et(e){return Et="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Et(e)}function St(){return St=Object.assign||function(e){for(var t=1;t1?n-1:0);for(var r=1;r2?r-2:0);for(var i=2;i",'"',"`"," ","\r","\n","\t"],l=["{","}","|","\\","^","`"].concat(s),c=["'"].concat(l),u=["%","/","?",";","#"].concat(c),h=["/","?","#"],f=255,d=/^[+a-z0-9A-Z_-]{0,63}$/,p=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function v(e,t){if(e&&e instanceof r)return e;var n=new r;return n.parse(e,t),n}r.prototype.parse=function(e,t){var n,r,o,s,l,c=e;if(c=c.trim(),!t&&1===e.split("#").length){var v=a.exec(c);if(v)return this.pathname=v[1],v[2]&&(this.search=v[2]),this}var y=i.exec(c);if(y&&(y=y[0],o=y.toLowerCase(),this.protocol=y,c=c.substr(y.length)),(t||y||c.match(/^\/\/[^@\/]+@[^@\/]+/))&&(l="//"===c.substr(0,2),!l||y&&m[y]||(c=c.substr(2),this.slashes=!0)),!m[y]&&(l||y&&!g[y])){var b,w,x=-1;for(n=0;n127?k+="x":k+=C[O];if(!k.match(d)){var A=S.slice(0,n),P=S.slice(n+1),M=C.match(p);M&&(A.push(M[1]),P.unshift(M[2])),P.length&&(c=P.join(".")+c),this.hostname=A.join(".");break}}}}this.hostname.length>f&&(this.hostname=""),E&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}var R=c.indexOf("#");-1!==R&&(this.hash=c.substr(R),c=c.slice(0,R));var j=c.indexOf("?");return-1!==j&&(this.search=c.substr(j),c=c.slice(0,j)),c&&(this.pathname=c),g[o]&&this.hostname&&!this.pathname&&(this.pathname=""),this},r.prototype.parseHost=function(e){var t=o.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)},e.exports=v},"2mql":function(e,t,n){"use strict";var r=n("TOwV"),i={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function c(e){return r.isMemo(e)?s:l[e["$$typeof"]]||i}l[r.ForwardRef]=a,l[r.Memo]=s;var u=Object.defineProperty,h=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function g(e,t,n){if("string"!==typeof t){if(m){var r=p(t);r&&r!==m&&g(e,r,n)}var i=h(t);f&&(i=i.concat(f(t)));for(var a=c(e),s=c(t),l=0;ll,n),i=void 0;return i=t.yearl?e.nextDecade:P.bind(e,t.year),u.a.createElement("td",{role:"gridcell",title:t.title,key:t.content,onClick:i,className:g()(r)},u.a.createElement("a",{className:c+"-year"},t.content))});return u.a.createElement("tr",{key:n,role:"row"},r)}),f=i&&i("year");return u.a.createElement("div",{className:this.prefixCls},u.a.createElement("div",null,u.a.createElement("div",{className:c+"-header"},u.a.createElement("a",{className:c+"-prev-decade-btn",role:"button",onClick:this.previousDecade,title:r.previousDecade}),u.a.createElement("a",{className:c+"-decade-select",role:"button",onClick:t.onDecadePanelShow,title:r.decadeSelect},u.a.createElement("span",{className:c+"-decade-select-content"},s,"-",l),u.a.createElement("span",{className:c+"-decade-select-arrow"},"x")),u.a.createElement("a",{className:c+"-next-decade-btn",role:"button",onClick:this.nextDecade,title:r.nextDecade})),u.a.createElement("div",{className:c+"-body"},u.a.createElement("table",{className:c+"-table",cellSpacing:"0",role:"grid"},u.a.createElement("tbody",{className:c+"-tbody"},h))),f&&u.a.createElement("div",{className:c+"-footer"},f)))},t}(u.a.Component),R=M;M.propTypes={rootPrefixCls:f.a.string,value:f.a.object,defaultValue:f.a.object,renderFooter:f.a.func},M.defaultProps={onSelect:function(){}};var j=4,L=3;function D(e){var t=this.state.value.clone();t.add(e,"years"),this.setState({value:t})}function N(e,t){var n=this.state.value.clone();n.year(e),n.month(this.state.value.month()),this.props.onSelect(n),t.preventDefault()}var I=function(e){function t(n){i()(this,t);var r=a()(this,e.call(this,n));return r.state={value:n.value||n.defaultValue},r.prefixCls=n.rootPrefixCls+"-decade-panel",r.nextCentury=D.bind(r,100),r.previousCentury=D.bind(r,-100),r}return l()(t,e),t.prototype.render=function(){for(var e=this,t=this.state.value,n=this.props,r=n.locale,i=n.renderFooter,o=t.year(),a=100*parseInt(o/100,10),s=a-10,l=a+99,c=[],h=0,f=this.prefixCls,d=0;dl,h=(n={},n[f+"-cell"]=1,n[f+"-selected-cell"]=r<=o&&o<=i,n[f+"-last-century-cell"]=s,n[f+"-next-century-cell"]=c,n),d=r+"-"+i,p=void 0;return p=s?e.previousCentury:c?e.nextCentury:N.bind(e,r),u.a.createElement("td",{key:r,onClick:p,role:"gridcell",className:g()(h)},u.a.createElement("a",{className:f+"-decade"},d))});return u.a.createElement("tr",{key:n,role:"row"},r)});return u.a.createElement("div",{className:this.prefixCls},u.a.createElement("div",{className:f+"-header"},u.a.createElement("a",{className:f+"-prev-century-btn",role:"button",onClick:this.previousCentury,title:r.previousCentury}),u.a.createElement("div",{className:f+"-century"},a,"-",l),u.a.createElement("a",{className:f+"-next-century-btn",role:"button",onClick:this.nextCentury,title:r.nextCentury})),u.a.createElement("div",{className:f+"-body"},u.a.createElement("table",{className:f+"-table",cellSpacing:"0",role:"grid"},u.a.createElement("tbody",{className:f+"-tbody"},b))),y&&u.a.createElement("div",{className:f+"-footer"},y))},t}(u.a.Component),$=I;function F(e){var t=this.props.value.clone();t.add(e,"months"),this.props.onValueChange(t)}function B(e){var t=this.props.value.clone();t.add(e,"years"),this.props.onValueChange(t)}function V(e,t){return e?t:null}I.propTypes={locale:f.a.object,value:f.a.object,defaultValue:f.a.object,rootPrefixCls:f.a.string,renderFooter:f.a.func},I.defaultProps={onSelect:function(){}};var W=function(e){function t(n){i()(this,t);var r=a()(this,e.call(this,n));return H.call(r),r.nextMonth=F.bind(r,1),r.previousMonth=F.bind(r,-1),r.nextYear=B.bind(r,1),r.previousYear=B.bind(r,-1),r.state={yearPanelReferer:null},r}return l()(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.prefixCls,r=t.locale,i=t.mode,o=t.value,a=t.showTimePicker,s=t.enableNext,l=t.enablePrev,c=t.disabledMonth,h=t.renderFooter,f=null;return"month"===i&&(f=u.a.createElement(k,{locale:r,value:o,rootPrefixCls:n,onSelect:this.onMonthSelect,onYearPanelShow:function(){return e.showYearPanel("month")},disabledDate:c,cellRender:t.monthCellRender,contentRender:t.monthCellContentRender,renderFooter:h,changeYear:this.changeYear})),"year"===i&&(f=u.a.createElement(R,{locale:r,defaultValue:o,rootPrefixCls:n,onSelect:this.onYearSelect,onDecadePanelShow:this.showDecadePanel,renderFooter:h})),"decade"===i&&(f=u.a.createElement($,{locale:r,defaultValue:o,rootPrefixCls:n,onSelect:this.onDecadeSelect,renderFooter:h})),u.a.createElement("div",{className:n+"-header"},u.a.createElement("div",{style:{position:"relative"}},V(l&&!a,u.a.createElement("a",{className:n+"-prev-year-btn",role:"button",onClick:this.previousYear,title:r.previousYear})),V(l&&!a,u.a.createElement("a",{className:n+"-prev-month-btn",role:"button",onClick:this.previousMonth,title:r.previousMonth})),this.monthYearElement(a),V(s&&!a,u.a.createElement("a",{className:n+"-next-month-btn",onClick:this.nextMonth,title:r.nextMonth})),V(s&&!a,u.a.createElement("a",{className:n+"-next-year-btn",onClick:this.nextYear,title:r.nextYear}))),f)},t}(u.a.Component);W.propTypes={prefixCls:f.a.string,value:f.a.object,onValueChange:f.a.func,showTimePicker:f.a.bool,onPanelChange:f.a.func,locale:f.a.object,enablePrev:f.a.any,enableNext:f.a.any,disabledMonth:f.a.func,renderFooter:f.a.func,onMonthSelect:f.a.func},W.defaultProps={enableNext:1,enablePrev:1,onPanelChange:function(){},onValueChange:function(){}};var H=function(){var e=this;this.onMonthSelect=function(t){e.props.onPanelChange(t,"date"),e.props.onMonthSelect?e.props.onMonthSelect(t):e.props.onValueChange(t)},this.onYearSelect=function(t){var n=e.state.yearPanelReferer;e.setState({yearPanelReferer:null}),e.props.onPanelChange(t,n),e.props.onValueChange(t)},this.onDecadeSelect=function(t){e.props.onPanelChange(t,"year"),e.props.onValueChange(t)},this.changeYear=function(t){t>0?e.nextYear():e.previousYear()},this.monthYearElement=function(t){var n=e.props,r=n.prefixCls,i=n.locale,o=n.value,a=o.localeData(),s=i.monthBeforeYear,l=r+"-"+(s?"my-select":"ym-select"),c=t?" "+r+"-time-status":"",h=u.a.createElement("a",{className:r+"-year-select"+c,role:"button",onClick:t?null:function(){return e.showYearPanel("date")},title:t?null:i.yearSelect},o.format(i.yearFormat)),f=u.a.createElement("a",{className:r+"-month-select"+c,role:"button",onClick:t?null:e.showMonthPanel,title:t?null:i.monthSelect},i.monthFormat?o.format(i.monthFormat):a.monthsShort(o)),p=void 0;t&&(p=u.a.createElement("a",{className:r+"-day-select"+c,role:"button"},o.format(i.dayFormat)));var m=[];return m=s?[f,p,h]:[h,f,p],u.a.createElement("span",{className:l},Object(d["a"])(m))},this.showMonthPanel=function(){e.props.onPanelChange(null,"month")},this.showYearPanel=function(t){e.setState({yearPanelReferer:t}),e.props.onPanelChange(null,"year")},this.showDecadePanel=function(){e.props.onPanelChange(null,"decade")}};t["a"]=W},3:function(e,t){},"330p":function(e,t,n){"use strict";var r=n("7tNx"),i=RegExp.prototype.exec,o=String.prototype.replace,a=i,s="lastIndex",l=function(){var e=/a/,t=/b*/g;return i.call(e,"a"),i.call(t,"a"),0!==e[s]||0!==t[s]}(),c=void 0!==/()??/.exec("")[1],u=l||c;u&&(a=function(e){var t,n,a,u,h=this;return c&&(n=new RegExp("^"+h.source+"$(?!\\s)",r.call(h))),l&&(t=h[s]),a=i.call(h,e),l&&a&&(h[s]=h.global?a.index+a[0].length:t),c&&a&&a.length>1&&o.call(a[0],n,function(){for(u=1;u=0;r--){var i=e[r];"."===i?e.splice(r,1):".."===i?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}function r(e){"string"!==typeof e&&(e+="");var t,n=0,r=-1,i=!0;for(t=e.length-1;t>=0;--t)if(47===e.charCodeAt(t)){if(!i){n=t+1;break}}else-1===r&&(i=!1,r=t+1);return-1===r?"":e.slice(n,r)}function i(e,t){if(e.filter)return e.filter(t);for(var n=[],r=0;r=-1&&!r;o--){var a=o>=0?arguments[o]:e.cwd();if("string"!==typeof a)throw new TypeError("Arguments to path.resolve must be strings");a&&(t=a+"/"+t,r="/"===a.charAt(0))}return t=n(i(t.split("/"),function(e){return!!e}),!r).join("/"),(r?"/":"")+t||"."},t.normalize=function(e){var r=t.isAbsolute(e),a="/"===o(e,-1);return e=n(i(e.split("/"),function(e){return!!e}),!r).join("/"),e||r||(e="."),e&&a&&(e+="/"),(r?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!==typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,n){function r(e){for(var t=0;t=0;n--)if(""!==e[n])break;return t>n?[]:e.slice(t,n-t+1)}e=t.resolve(e).substr(1),n=t.resolve(n).substr(1);for(var i=r(e.split("/")),o=r(n.split("/")),a=Math.min(i.length,o.length),s=a,l=0;l=1;--o)if(t=e.charCodeAt(o),47===t){if(!i){r=o;break}}else i=!1;return-1===r?n?"/":".":n&&1===r?"/":e.slice(0,r)},t.basename=function(e,t){var n=r(e);return t&&n.substr(-1*t.length)===t&&(n=n.substr(0,n.length-t.length)),n},t.extname=function(e){"string"!==typeof e&&(e+="");for(var t=-1,n=0,r=-1,i=!0,o=0,a=e.length-1;a>=0;--a){var s=e.charCodeAt(a);if(47!==s)-1===r&&(i=!1,r=a+1),46===s?-1===t?t=a:1!==o&&(o=1):-1!==t&&(o=-1);else if(!i){n=a+1;break}}return-1===t||-1===r||0===o||1===o&&t===r-1&&t===n+1?"":e.slice(t,r)};var o="b"==="ab".substr(-1)?function(e,t,n){return e.substr(t,n)}:function(e,t,n){return t<0&&(t=e.length+t),e.substr(t,n)}}).call(this,n("Q2Ig"))},"3BRs":function(e,t,n){"use strict";(function(t,r){var i=n("lm0R");function o(e){var t=this;this.next=null,this.entry=null,this.finish=function(){N(t,e)}}e.exports=b;var a,s=!t.browser&&["v0.10","v0.9."].indexOf(t.version.slice(0,5))>-1?setImmediate:i.nextTick;b.WritableState=y;var l=Object.create(n("Onz0"));l.inherits=n("P7XM");var c={deprecate:n("t9FE")},u=n("QpuX"),h=n("hwdV").Buffer,f=r.Uint8Array||function(){};function d(e){return h.from(e)}function p(e){return h.isBuffer(e)||e instanceof f}var m,g=n("RoFp");function v(){}function y(e,t){a=a||n("sZro"),e=e||{};var r=t instanceof a;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.writableObjectMode);var i=e.highWaterMark,s=e.writableHighWaterMark,l=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(s||0===s)?s:l,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var c=!1===e.decodeStrings;this.decodeStrings=!c,this.defaultEncoding=e.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(e){O(t,e)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new o(this)}function b(e){if(a=a||n("sZro"),!m.call(b,this)&&!(this instanceof a))return new b(e);this._writableState=new y(e,this),this.writable=!0,e&&("function"===typeof e.write&&(this._write=e.write),"function"===typeof e.writev&&(this._writev=e.writev),"function"===typeof e.destroy&&(this._destroy=e.destroy),"function"===typeof e.final&&(this._final=e.final)),u.call(this)}function w(e,t){var n=new Error("write after end");e.emit("error",n),i.nextTick(t,n)}function x(e,t,n,r){var o=!0,a=!1;return null===n?a=new TypeError("May not write null values to stream"):"string"===typeof n||void 0===n||t.objectMode||(a=new TypeError("Invalid non-string/buffer chunk")),a&&(e.emit("error",a),i.nextTick(r,a),o=!1),o}function _(e,t,n){return e.objectMode||!1===e.decodeStrings||"string"!==typeof t||(t=h.from(t,n)),t}function E(e,t,n,r,i,o){if(!n){var a=_(t,r,i);r!==a&&(n=!0,i="buffer",r=a)}var s=t.objectMode?1:r.length;t.length+=s;var l=t.length-1))throw new TypeError("Unknown encoding: "+e);return this._writableState.defaultEncoding=e,this},Object.defineProperty(b.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),b.prototype._write=function(e,t,n){n(new Error("_write() is not implemented"))},b.prototype._writev=null,b.prototype.end=function(e,t,n){var r=this._writableState;"function"===typeof e?(n=e,e=null,t=null):"function"===typeof t&&(n=t,t=null),null!==e&&void 0!==e&&this.write(e,t),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||D(this,r,n)},Object.defineProperty(b.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(e){this._writableState&&(this._writableState.destroyed=e)}}),b.prototype.destroy=g.destroy,b.prototype._undestroy=g.undestroy,b.prototype._destroy=function(e,t){this.end(),t(e)}}).call(this,n("Q2Ig"),n("yLpj"))},"3CBa":function(e,t,n){"use strict";var r=n("einR"),i=n("y+Vt"),o=n("Dagg"),a=n("6GrX"),s=n("3U8f"),l=Math.sin,c=Math.cos,u=Math.PI,h=2*Math.PI,f=180/u,d=function(){function e(){}return e.prototype.reset=function(e){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,e||4)},e.prototype.moveTo=function(e,t){this._add("M",e,t)},e.prototype.lineTo=function(e,t){this._add("L",e,t)},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){this._add("C",e,t,n,r,i,o)},e.prototype.quadraticCurveTo=function(e,t,n,r){this._add("Q",e,t,n,r)},e.prototype.arc=function(e,t,n,r,i,o){this.ellipse(e,t,n,n,0,r,i,o)},e.prototype.ellipse=function(e,t,n,i,o,a,s,d){var p=s-a,m=!d,g=Math.abs(p),v=Object(r["j"])(g-h)||(m?p>=h:-p>=h),y=p>0?p%h:p%h+h,b=!1;b=!!v||!Object(r["j"])(g)&&y>=u===!!m;var w=e+n*c(a),x=t+i*l(a);this._start&&this._add("M",w,x);var _=Math.round(o*f);if(v){var E=1/this._p,S=(m?1:-1)*(h-E);this._add("A",n,i,_,1,+m,e+n*c(a+S),t+i*l(a+S)),E>.01&&this._add("A",n,i,_,0,+m,w,x)}else{var C=e+n*c(s),k=t+i*l(s);this._add("A",n,i,_,+b,+m,C,k)}},e.prototype.rect=function(e,t,n,r){this._add("M",e,t),this._add("l",n,0),this._add("l",0,r),this._add("l",-n,0),this._add("Z")},e.prototype.closePath=function(){this._d.length>0&&this._add("Z")},e.prototype._add=function(e,t,n,r,i,o,a,s,l){for(var c=[],u=this._p,h=1;h"}function R(e){return""}function j(e,t){t=t||{};var n=t.newline?"\n":"";function r(e){var t=e.children,i=e.tag,o=e.attrs;return M(i,o)+Object(S["a"])(e.text)+(t?""+n+Object(g["D"])(t,function(e){return r(e)}).join(n)+n:"")+R(i)}return r(e)}function L(e,t,n){n=n||{};var r=n.newline?"\n":"",i=" {"+r,o=r+"}",a=Object(g["D"])(Object(g["B"])(e),function(t){return t+i+Object(g["D"])(Object(g["B"])(e[t]),function(n){return n+":"+e[t][n]+";"}).join(r)+o}).join(r),s=Object(g["D"])(Object(g["B"])(t),function(e){return"@keyframes "+e+i+Object(g["D"])(Object(g["B"])(t[e]),function(n){return n+i+Object(g["D"])(Object(g["B"])(t[e][n]),function(r){var i=t[e][n][r];return"d"===r&&(i='path("'+i+'")'),r+":"+i+";"}).join(r)+o}).join(r)+o}).join(r);return a||s?[""].join(r):""}function D(e){return{zrId:e,shadowCache:{},patternCache:{},gradientCache:{},clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssClassIdx:0,cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function N(e,t,n,r){return P("svg","root",{width:e,height:t,xmlns:C,"xmlns:xlink":k,version:"1.1",baseProfile:"full",viewBox:!!r&&"0 0 "+e+" "+t},n)}var I=n("Xnb7"),$=n("hYLj"),F=n("IMiH"),B=n("1MYJ"),V=n("s2Iz"),W={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},H="transform-origin";function U(e,t,n){var i=Object(g["l"])({},e.shape);Object(g["l"])(i,t),e.buildPath(n,i);var o=new p;return o.reset(Object(r["f"])(e)),n.rebuildPath(o,1),o.generateStr(),o.getStr()}function z(e,t){var n=t.originX,r=t.originY;(n||r)&&(e[H]=n+"px "+r+"px")}var q={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function K(e,t){var n=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[n]=e,n}function G(e,t,n){var r,i,o=e.shape.paths,a={};if(Object(g["j"])(o,function(e){var t=D(n.zrId);t.animation=!0,X(e,{},t,!0);var o=t.cssAnims,s=t.cssNodes,l=Object(g["B"])(o),c=l.length;if(c){i=l[c-1];var u=o[i];for(var h in u){var f=u[h];a[h]=a[h]||{d:""},a[h].d+=f.d||""}for(var d in s){var p=s[d].animation;p.indexOf(i)>=0&&(r=p)}}}),r){t.d=!1;var s=K(a,n);return r.replace(i,s)}}function Y(e){return Object(g["y"])(e)?W[e]?"cubic-bezier("+W[e]+")":Object(V["a"])(e)?e:"":""}function X(e,t,n,i){var o=e.animators,a=o.length,s=[];if(e instanceof B["a"]){var l=G(e,t,n);if(l)s.push(l);else if(!a)return}else if(!a)return;for(var c={},u=0;u0}).length){var M=K(h,n);return M+" "+o[0]+" both"}}for(var y in c){l=v(c[y]);l&&s.push(l)}if(s.length){var b=n.zrId+"-cls-"+n.cssClassIdx++;n.cssNodes["."+b]={animation:s.join(",")},t["class"]=b}}var Q=n("dqUG"),Z=n("cm6r"),J=Math.round;function ee(e){return e&&Object(g["y"])(e.src)}function te(e){return e&&Object(g["u"])(e.toDataURL)}function ne(e,t,n,i){E(function(o,a){var s="fill"===o||"stroke"===o;s&&Object(r["k"])(a)?ge(t,e,o,i):s&&Object(r["n"])(a)?ve(n,e,o,i):e[o]=a},t,n,!1),me(n,e,i)}function re(e){return Object(r["j"])(e[0]-1)&&Object(r["j"])(e[1])&&Object(r["j"])(e[2])&&Object(r["j"])(e[3]-1)}function ie(e){return Object(r["j"])(e[4])&&Object(r["j"])(e[5])}function oe(e,t,n){if(t&&(!ie(t)||!re(t))){var i=n?10:1e4;e.transform=re(t)?"translate("+J(t[4]*i)/i+" "+J(t[5]*i)/i+")":Object(r["e"])(t)}}function ae(e,t,n){for(var r=e.points,i=[],o=0;oc?(a=null==n[f+1]?null:n[f+1].elm,Le(e,a,n,l,f)):De(e,t,s,c))}function $e(e,t){var n=t.elm=e.elm,r=e.children,i=t.children;e!==t&&(Ne(e,t),Ae(t.text)?Pe(r)&&Pe(i)?r!==i&&Ie(n,r,i):Pe(i)?(Pe(e.text)&&Ce(n,""),Le(n,null,i,0,i.length-1)):Pe(r)?De(n,r,0,r.length-1):Pe(e.text)&&Ce(n,""):e.text!==t.text&&(Pe(r)&&De(n,r,0,r.length-1),Ce(n,t.text)))}function Fe(e,t){if(Re(e,t))$e(e,t);else{var n=e.elm,r=Ee(n);je(t),null!==r&&(we(r,t.elm,Se(n)),De(r,[e],0,0))}return t}var Be=n("NDc/"),Ve=0,We=function(){function e(e,t,n){if(this.type="svg",this.refreshHover=He("refreshHover"),this.configLayer=He("configLayer"),this.storage=t,this._opts=n=Object(g["l"])({},n),this.root=e,this._id="zr"+Ve++,this._oldVNode=N(n.width,n.height),e&&!n.ssr){var r=this._viewport=document.createElement("div");r.style.cssText="position:relative;overflow:hidden";var i=this._svgDom=this._oldVNode.elm=A("svg");Ne(null,this._oldVNode),r.appendChild(i),e.appendChild(r)}this.resize(n.width,n.height)}return e.prototype.getType=function(){return this.type},e.prototype.getViewportRoot=function(){return this._viewport},e.prototype.getViewportRootOffset=function(){var e=this.getViewportRoot();if(e)return{offsetLeft:e.offsetLeft||0,offsetTop:e.offsetTop||0}},e.prototype.getSvgDom=function(){return this._svgDom},e.prototype.refresh=function(){if(this.root){var e=this.renderToVNode({willUpdate:!0});e.attrs.style="position:absolute;left:0;top:0;user-select:none",Fe(this._oldVNode,e),this._oldVNode=e}},e.prototype.renderOneToVNode=function(e){return pe(e,D(this._id))},e.prototype.renderToVNode=function(e){e=e||{};var t=this.storage.getDisplayList(!0),n=this._backgroundColor,i=this._width,o=this._height,a=D(this._id);a.animation=e.animation,a.willUpdate=e.willUpdate,a.compress=e.compress;var s=[];if(n&&"none"!==n){var l=Object(r["p"])(n),c=l.color,u=l.opacity;this._bgVNode=P("rect","bg",{width:i,height:o,x:"0",y:"0",id:"0",fill:c,"fill-opacity":u}),s.push(this._bgVNode)}else this._bgVNode=null;var h=e.compress?null:this._mainVNode=P("g","main",{},[]);this._paintList(t,a,h?h.children:s),h&&s.push(h);var f=Object(g["D"])(Object(g["B"])(a.defs),function(e){return a.defs[e]});if(f.length&&s.push(P("defs","defs",{},f)),e.animation){var d=L(a.cssNodes,a.cssAnims,{newline:!0});if(d){var p=P("style","stl",{},[],d);s.push(p)}}return N(i,o,s,e.useViewBox)},e.prototype.renderToString=function(e){return e=e||{},j(this.renderToVNode({animation:Object(g["K"])(e.cssAnimation,!0),willUpdate:!1,compress:!0,useViewBox:Object(g["K"])(e.useViewBox,!0)}),{newline:!0})},e.prototype.setBackgroundColor=function(e){this._backgroundColor=e;var t=this._bgVNode;if(t&&t.elm){var n=Object(r["p"])(e),i=n.color,o=n.opacity;t.elm.setAttribute("fill",i),o<1&&t.elm.setAttribute("fill-opacity",o)}},e.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},e.prototype._paintList=function(e,t,n){for(var r,i,o=e.length,a=[],s=0,l=0,c=0;c=0;p--)if(h&&i&&h[p]===i[p])break;for(var m=d-1;m>p;m--)s--,r=a[s-1];for(var g=p+1;g0},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.createStyle=function(e){return Object(s["g"])(c,e)},t.prototype.setBoundingRect=function(e){this._rect=e},t.prototype.getBoundingRect=function(){var e=this.style;if(!this._rect){var t=e.text;null!=t?t+="":t="";var n=Object(o["d"])(t,e.font,e.textAlign,e.textBaseline);if(n.x+=e.x||0,n.y+=e.y||0,this.hasStroke()){var r=e.lineWidth;n.x-=r/2,n.y-=r/2,n.width+=r,n.height+=r}this._rect=n}return this._rect},t.initDefaultProps=function(){var e=t.prototype;e.dirtyRectTolerance=10}(),t}(i["c"]);u.prototype.type="tspan",t["a"]=u},"3a4m":function(e,t,n){e.exports=n("usdK").default},"3e3G":function(e,t,n){"use strict";var r=n("mrSG"),i=n("QuXc"),o=function(e){function t(t,n,r,i,o){var a=e.call(this,i)||this;return a.x=null==t?.5:t,a.y=null==n?.5:n,a.r=null==r?.5:r,a.type="radial",a.global=o||!1,a}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},"3m+/":function(e,t,n){n("/sWw")("asyncIterator")},"3moC":function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={orders:[],fetchLoading:!1,assignLoading:!1,pagination:{pageSize:10,current:0},filter:[]};t["default"]={name:"order",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)},empty(e){return a()({},e,l)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r,o,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,r=t.select,e.next=3,r(e=>e.order);case 3:return o=e.sent,e.next=6,n({type:"setState",payload:{fetchLoading:!0}});case 6:return e.next=8,Object(s["a"])("/admin/order/fetch",a()({filter:o.filter},o.pagination));case 8:return l=e.sent,e.next=11,n({type:"setState",payload:{fetchLoading:!1}});case 11:if(200===l.code){e.next=13;break}return e.abrupt("return");case 13:return e.next=15,n({type:"setState",payload:{orders:l.data}});case 15:return e.next=17,n({type:"setState",payload:{pagination:a()({},o.pagination,{total:l.total})}});case 17:case"end":return e.stop()}},e)})()},filter(e,t){return i.a.mark(function n(){var r,o,a,s,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.filter,o=t.put,a=t.select,n.next=4,a(e=>e.order);case 4:return s=n.sent,l=s.pagination,l["current"]=1,n.next=9,o({type:"setState",payload:{filter:r}});case 9:return n.next=11,o({type:"fetch"});case 11:case"end":return n.stop()}},n)})()},addFilter(e,t){return i.a.mark(function n(){var r,o,a,s,l,c,u,h,f;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:if(r=e.key,o=e.condition,a=e.value,s=e.clear,l=t.put,c=t.select,!s){n.next=5;break}return n.next=5,l({filter:[]});case 5:return n.next=7,c(e=>e.order);case 7:return u=n.sent,h=u.filter,f=u.pagination,h.push({key:r,condition:o,value:a}),f["current"]=1,n.next=14,l({type:"setState",payload:{filter:h,pagination:f}});case 14:return n.next=16,l({type:"fetch"});case 16:case"end":return n.stop()}},n)})()},update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.tradeNo,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/order/update",{trade_no:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},paid(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.tradeNo,o=t.put,n.next=4,Object(s["b"])("/admin/order/paid",{trade_no:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},cancel(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.tradeNo,o=t.put,n.next=4,Object(s["b"])("/admin/order/cancel",{trade_no:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},assign(e,t){return i.a.mark(function n(){var r,o,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,l=t.put,n.next=4,l({type:"setState",payload:{assignLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/order/assign",a()({},r,{total_amount:100*r.total_amount}));case 6:return c=n.sent,n.next=9,l({type:"setState",payload:{assignLoading:!1}});case 9:if(200===c.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,l({type:"fetch"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()},changeTable(e,t){return i.a.mark(function n(){var r,o,s,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,o=t.select,s=t.put,n.next=4,o(e=>e.order);case 4:return l=n.sent,n.next=7,s({type:"setState",payload:{pagination:a()({},l.pagination,r)}});case 7:return n.next=9,s({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},4:function(e,t){},"43KI":function(e,t,n){t=e.exports=n("rXFu"),t.Stream=t,t.Readable=t,t.Writable=n("3BRs"),t.Duplex=n("sZro"),t.Transform=n("J78i"),t.PassThrough=n("eA/Y")},"48Dx":function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},"49sm":function(e,t){e.exports=Array.isArray||function(e){return"[object Array]"==Object.prototype.toString.call(e)}},"4IlW":function(e,t,n){"use strict";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}}};t["a"]=r},"4JlD":function(e,t,n){"use strict";var r=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,n,s){return t=t||"&",n=n||"=",null===e&&(e=void 0),"object"===typeof e?o(a(e),function(a){var s=encodeURIComponent(r(a))+n;return i(e[a])?o(e[a],function(e){return s+encodeURIComponent(r(e))}).join(t):s+encodeURIComponent(r(e[a]))}).join(t):s?encodeURIComponent(r(s))+n+encodeURIComponent(r(e)):""};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function o(e,t){if(e.map)return e.map(t);for(var n=[],r=0;rl)r.f(e,n=a[l++],t[n]);return e}},"4mN7":function(e,t,n){"use strict";n.d(t,"d",function(){return d}),n.d(t,"c",function(){return p}),n.d(t,"b",function(){return v}),n.d(t,"e",function(){return y}),n.d(t,"a",function(){return b});var r=n("QBsz"),i=n("Sj9i"),o=Math.min,a=Math.max,s=Math.sin,l=Math.cos,c=2*Math.PI,u=r["d"](),h=r["d"](),f=r["d"]();function d(e,t,n){if(0!==e.length){for(var r=e[0],i=r[0],s=r[0],l=r[1],c=r[1],u=1;u1e-4)return p[0]=e-n,p[1]=t-i,m[0]=e+n,void(m[1]=t+i);if(u[0]=l(o)*n+e,u[1]=s(o)*i+t,h[0]=l(a)*n+e,h[1]=s(a)*i+t,g(p,u,h),v(m,u,h),o%=c,o<0&&(o+=c),a%=c,a<0&&(a+=c),o>a&&!d?a+=c:oo&&(f[0]=l(w)*n+e,f[1]=s(w)*i+t,g(p,f,p),v(m,f,m))}},"4nmR":function(e,t,n){"use strict";var r=n("vpQ4"),i=n("ANjH"),o=n("7bO/"),a=n("QLaP"),s=n.n(a),l=n("U8pU"),c=n("+0iv"),u=n.n(c),h=n("KQm4");function f(e){if(Array.isArray(e))return e}var d=n("25BE"),p=n("BsWD");function m(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function g(e){return f(e)||Object(d["a"])(e)||Object(p["a"])(e)||m()}var v=n("myn2"),y=n.n(v),b=n("1OyB"),w=n("vuIU"),x=n("QTEQ"),_=n.n(x);n("vgmO");function E(e,t){var n=null==e?null:"undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done);a=!0)if(o.push(r.value),t&&o.length===t)break}catch(e){s=!0,i=e}finally{try{a||null==n["return"]||n["return"]()}finally{if(s)throw i}}return o}}function S(e,t){return f(e)||E(e,t)||Object(p["a"])(e,t)||m()}var C=n("o0o1"),k=n.n(C);n.d(t,"a",function(){return oe}),n.d(t,"b",function(){return R});var O=Array.isArray.bind(Array),T=function(e){return"function"===typeof e},A=function(e){return e},P=function(){},M=function(e,t){for(var n=0,r=e.length;n-1&&(t[n]=e[n]),t},{})}var $=function(){function e(){Object(b["a"])(this,e),this._handleActions=null,this.hooks=N.reduce(function(e,t){return e[t]=[],e},{})}return Object(w["a"])(e,[{key:"use",value:function(e){s()(u()(e),"plugin.use: plugin should be plain object");var t=this.hooks;for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(s()(t[n],"plugin.use: unknown plugin property: ".concat(n)),"_handleActions"===n?this._handleActions=e[n]:"extraEnhancers"===n?t[n]=e[n]:t[n].push(e[n]))}},{key:"apply",value:function(e,t){var n=this.hooks,r=["onError","onHmr"];s()(r.indexOf(e)>-1,"plugin.apply: hook ".concat(e," cannot be applied"));var i=n[e];return function(){if(i.length){var e=!0,n=!1,r=void 0;try{for(var o,a=i[Symbol.iterator]();!(e=(o=a.next()).done);e=!0){var s=o.value;s.apply(void 0,arguments)}}catch(e){n=!0,r=e}finally{try{e||null==a.return||a.return()}finally{if(n)throw r}}}else t&&t.apply(void 0,arguments)}}},{key:"get",value:function(e){var t=this.hooks;return s()(e in t,"plugin.get: hook ".concat(e," cannot be got")),"extraReducers"===e?F(t[e]):"onReducer"===e?B(t[e]):t[e]}}]),e}();function F(e){var t={},n=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var l=a.value;t=Object(r["a"])({},t,l)}}catch(e){i=!0,o=e}finally{try{n||null==s.return||s.return()}finally{if(i)throw o}}return t}function B(e){return function(t){var n=!0,r=!1,i=void 0;try{for(var o,a=e[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;t=s(t)}}catch(e){r=!0,i=e}finally{try{n||null==a.return||a.return()}finally{if(r)throw i}}return t}}function V(e){var t=e.reducers,n=e.initialState,r=e.plugin,o=e.sagaMiddleware,a=e.promiseMiddleware,c=e.createOpts.setupMiddlewares,u=void 0===c?A:c,f=r.get("extraEnhancers");s()(O(f),"[app.start] extraEnhancers should be array, but got ".concat(Object(l["a"])(f)));var d=r.get("onAction"),p=u([a,o].concat(Object(h["a"])(_()(d)))),m=i["c"],g=[i["a"].apply(void 0,Object(h["a"])(p))].concat(Object(h["a"])(f));return Object(i["d"])(t,n,m.apply(void 0,Object(h["a"])(g)))}function W(e,t){var n="".concat(t.namespace).concat(j).concat(e),r=n.replace(/\/@@[^/]+?$/,""),i=Array.isArray(t.reducers)?t.reducers[0][r]:t.reducers&&t.reducers[r];return i||t.effects&&t.effects[r]?n:e}function H(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};return k.a.mark(function a(){var s;return k.a.wrap(function(a){while(1)switch(a.prev=a.next){case 0:a.t0=k.a.keys(e);case 1:if((a.t1=a.t0()).done){a.next=7;break}if(s=a.t1.value,!Object.prototype.hasOwnProperty.call(e,s)){a.next=5;break}return a.delegateYield(k.a.mark(function a(){var l,c;return k.a.wrap(function(a){while(1)switch(a.prev=a.next){case 0:return l=U(s,e[s],t,n,r,i),a.next=3,o["b"].fork(l);case 3:return c=a.sent,a.next=6,o["b"].fork(k.a.mark(function e(){return k.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,o["b"].take("".concat(t.namespace,"/@@CANCEL_EFFECTS"));case 2:return e.next=4,o["b"].cancel(c);case 4:case"end":return e.stop()}},e)}));case 6:case"end":return a.stop()}},a)})(),"t2",5);case 5:a.next=1;break;case 7:case"end":return a.stop()}},a)})}function U(e,t,n,r,i,a){var l,c,u=k.a.mark(v),f=t,d="takeEvery";if(Array.isArray(t)){var p=S(t,1);f=p[0];var m=t[1];m&&m.type&&(d=m.type,"throttle"===d&&(s()(m.ms,"app.start: opts.ms should be defined if type is throttle"),l=m.ms),"poll"===d&&(s()(m.delay,"app.start: opts.delay should be defined if type is poll"),c=m.delay)),s()(["watcher","takeEvery","takeLatest","throttle","poll"].indexOf(d)>-1,"app.start: effect type should be takeEvery, takeLatest, throttle, poll or watcher")}function g(){}function v(){var t,i,s,l,c,d,p,m,v,y=arguments;return k.a.wrap(function(u){while(1)switch(u.prev=u.next){case 0:for(t=y.length,i=new Array(t),s=0;s0?i[0]:{},c=l.__dva_resolve,d=void 0===c?g:c,p=l.__dva_reject,m=void 0===p?g:p,u.prev=2,u.next=5,o["b"].put({type:"".concat(e).concat(j,"@@start")});case 5:return u.next=7,f.apply(void 0,Object(h["a"])(i.concat(z(n,a))));case 7:return v=u.sent,u.next=10,o["b"].put({type:"".concat(e).concat(j,"@@end")});case 10:d(v),u.next=17;break;case 13:u.prev=13,u.t0=u["catch"](2),r(u.t0,{key:e,effectArgs:i}),u.t0._dontReject||m(u.t0);case 17:case"end":return u.stop()}},u,null,[[2,13]])}var y=q(i,v,n,e);switch(d){case"watcher":return v;case"takeLatest":return k.a.mark(function t(){return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["b"].takeLatest(e,y);case 2:case"end":return t.stop()}},t)});case"throttle":return k.a.mark(function t(){return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["b"].throttle(l,e,y);case 2:case"end":return t.stop()}},t)});case"poll":return k.a.mark(function t(){var n,r,i,a,s,l,u;return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:i=function(e,t){var i;return k.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:i=e.call;case 1:return n.next=4,i(y,t);case 4:return n.next=6,i(r,c);case 6:n.next=1;break;case 8:case"end":return n.stop()}},n)},r=function(e){return new Promise(function(t){return setTimeout(t,e)})},n=k.a.mark(i),a=o["b"].call,s=o["b"].take,l=o["b"].race;case 4:return t.next=7,s("".concat(e,"-start"));case 7:return u=t.sent,t.next=10,l([a(i,o["b"],u),s("".concat(e,"-stop"))]);case 10:t.next=4;break;case 12:case"end":return t.stop()}},t)});default:return k.a.mark(function t(){return k.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,o["b"].takeEvery(e,y);case 2:case"end":return t.stop()}},t)})}}function z(e,t){function n(n,r){s()(n,"dispatch: action should be a plain Object with type");var i=t.namespacePrefixWarning,o=void 0===i||i;o&&y()(0!==n.indexOf("".concat(e.namespace).concat(j)),"[".concat(r,"] ").concat(n," should not be prefixed with namespace ").concat(e.namespace))}function i(t){var i=t.type;return n(i,"sagaEffects.put"),o["b"].put(Object(r["a"])({},t,{type:W(i,e)}))}function a(t){var i=t.type;return n(i,"sagaEffects.put.resolve"),o["b"].put.resolve(Object(r["a"])({},t,{type:W(i,e)}))}function l(t){return"string"===typeof t?(n(t,"sagaEffects.take"),o["b"].take(W(t,e))):Array.isArray(t)?o["b"].take(t.map(function(t){return"string"===typeof t?(n(t,"sagaEffects.take"),W(t,e)):t})):o["b"].take(t)}return i.resolve=a,Object(r["a"])({},o["b"],{put:i,take:l})}function q(e,t,n,r){var i=!0,a=!1,s=void 0;try{for(var l,c=e[Symbol.iterator]();!(i=(l=c.next()).done);i=!0){var u=l.value;t=u(t,o["b"],n,r)}}catch(e){a=!0,s=e}finally{try{i||null==c.return||c.return()}finally{if(a)throw s}}return t}function K(e){return e}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:K;return function(n,r){var i=r.type;return s()(i,"dispatch: action should be a plain Object with type"),e===i?t(n,r):n}}function Y(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:t,n=arguments.length>1?arguments[1]:void 0;return r(e,n)}}function Q(e,t,n){return Array.isArray(e)?e[1]((n||X)(e[0],t)):(n||X)(e||{},t)}function Z(e){return function(){return function(e){return function(n){var i=n.type;return t(i)?new Promise(function(t,i){e(Object(r["a"])({__dva_resolve:t,__dva_reject:i},n))}):e(n)}}};function t(t){if(!t||"string"!==typeof t)return!1;var n=t.split(j),r=S(n,1),i=r[0],o=e._models.filter(function(e){return e.namespace===i})[0];return!!(o&&o.effects&&o.effects[t])}}function J(e,t){return function(n){var i=n.type;return s()(i,"dispatch: action should be a plain Object with type"),y()(0!==i.indexOf("".concat(t.namespace).concat(j)),"dispatch: ".concat(i," should not be prefixed with namespace ").concat(t.namespace)),e(Object(r["a"])({},n,{type:W(i,t)}))}}function ee(e,t,n,r){var i=[],o=[];for(var a in e)if(Object.prototype.hasOwnProperty.call(e,a)){var s=e[a],l=s({dispatch:J(n._store.dispatch,t),history:n._history},r);T(l)?i.push(l):o.push(a)}return{funcs:i,nonFuncs:o}}function te(e,t){if(e[t]){var n=e[t],r=n.funcs,i=n.nonFuncs;y()(0===i.length,"[app.unmodel] subscription should return unlistener function, check these subscriptions ".concat(i.join(", ")));var o=!0,a=!1,s=void 0;try{for(var l,c=r[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var u=l.value;u()}}catch(e){a=!0,s=e}finally{try{o||null==c.return||c.return()}finally{if(a)throw s}}delete e[t]}}var ne=P,re=M,ie={namespace:"@@dva",state:0,reducers:{UPDATE:function(e){return e+1}}};function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.initialReducer,a=t.setupApp,l=void 0===a?ne:a,c=new $;c.use(I(e));var u={_models:[D(Object(r["a"])({},ie))],_store:null,_plugin:c,use:c.use.bind(c),model:h,start:m};return u;function h(e){var t=D(Object(r["a"])({},e));return u._models.push(t),t}function f(t,n,r,i){i=h(i);var o=u._store;o.asyncReducers[i.namespace]=Q(i.reducers,i.state,c._handleActions),o.replaceReducer(t()),i.effects&&o.runSaga(u._getSaga(i.effects,i,n,c.get("onEffect"),e)),i.subscriptions&&(r[i.namespace]=ee(i.subscriptions,i,u,n))}function d(e,t,n,r){var i=u._store;delete i.asyncReducers[r],delete t[r],i.replaceReducer(e()),i.dispatch({type:"@@dva/UPDATE"}),i.dispatch({type:"".concat(r,"/@@CANCEL_EFFECTS")}),te(n,r),u._models=u._models.filter(function(e){return e.namespace!==r})}function p(e,t,n,r,i){var o=u._store,a=i.namespace,s=re(u._models,function(e){return e.namespace===a});~s&&(o.dispatch({type:"".concat(a,"/@@CANCEL_EFFECTS")}),delete o.asyncReducers[a],delete t[a],te(n,a),u._models.splice(s,1)),u.model(i),o.dispatch({type:"@@dva/UPDATE"})}function m(){var a=function(e,t){e&&("string"===typeof e&&(e=new Error(e)),e.preventDefault=function(){e._dontReject=!0},c.apply("onError",function(e){throw new Error(e.stack||e)})(e,u._store.dispatch,t))},h=Object(o["a"])(),m=Z(u);u._getSaga=H.bind(null);var g=[],v=Object(r["a"])({},n),y=!0,b=!1,w=void 0;try{for(var x,_=u._models[Symbol.iterator]();!(y=(x=_.next()).done);y=!0){var E=x.value;v[E.namespace]=Q(E.reducers,E.state,c._handleActions),E.effects&&g.push(u._getSaga(E.effects,E,a,c.get("onEffect"),e))}}catch(e){b=!0,w=e}finally{try{y||null==_.return||_.return()}finally{if(b)throw w}}var S=c.get("onReducer"),C=c.get("extraReducers");s()(Object.keys(C).every(function(e){return!(e in v)}),"[app.start] extraReducers is conflict with other reducers, reducers list: ".concat(Object.keys(v).join(", "))),u._store=V({reducers:W(),initialState:e.initialState||{},plugin:c,createOpts:t,sagaMiddleware:h,promiseMiddleware:m});var k=u._store;k.runSaga=h.run,k.asyncReducers={};var O=c.get("onStateChange"),T=!0,A=!1,P=void 0;try{for(var M,R=function(){var e=M.value;k.subscribe(function(){e(k.getState())})},j=O[Symbol.iterator]();!(T=(M=j.next()).done);T=!0)R()}catch(e){A=!0,P=e}finally{try{T||null==j.return||j.return()}finally{if(A)throw P}}g.forEach(h.run),l(u);var L={},D=!0,N=!1,I=void 0;try{for(var $,F=this._models[Symbol.iterator]();!(D=($=F.next()).done);D=!0){var B=$.value;B.subscriptions&&(L[B.namespace]=ee(B.subscriptions,B,u,a))}}catch(e){N=!0,I=e}finally{try{D||null==F.return||F.return()}finally{if(N)throw I}}function W(){return S(Object(i["b"])(Object(r["a"])({},v,C,u._store?u._store.asyncReducers:{})))}u.model=f.bind(u,W,a,L),u.unmodel=d.bind(u,W,v,L),u.replaceModel=p.bind(u,W,v,L,a)}}},"4o36":function(e,t,n){var r=n("wHrr"),i=n("69SZ"),o=n("ULMT"),a=n("7vYJ"),s=n("OsVd"),l=n("BnQZ"),c={},u={};t=e.exports=function(e,t,n,h,f){var d,p,m,g,v=f?function(){return e}:l(e),y=r(n,h,t?2:1),b=0;if("function"!=typeof v)throw TypeError(e+" is not iterable!");if(o(v)){for(d=s(e.length);d>b;b++)if(g=t?y(a(p=e[b])[0],p[1]):y(e[b]),g===c||g===u)return g}else for(m=v.call(e);!(p=m.next()).done;)if(g=i(m,y,p.value,t),g===c||g===u)return g};t.BREAK=c,t.RETURN=u},5:function(e,t){},"57TA":function(e,t,n){"use strict";var r={childContextTypes:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},o=Object.defineProperty,a=Object.getOwnPropertyNames,s=Object.getOwnPropertySymbols,l=Object.getOwnPropertyDescriptor,c=Object.getPrototypeOf,u=c&&c(Object);function h(e,t,n){if("string"!==typeof t){if(u){var f=c(t);f&&f!==u&&h(e,f,n)}var d=a(t);s&&(d=d.concat(s(t)));for(var p=0;p0?b({},t,{},n):null}}]),t}(r["Component"]);T(M,"propTypes",{prefixCls:a.a.string,clearText:a.a.string,value:a.a.object,defaultOpenValue:a.a.object,inputReadOnly:a.a.bool,disabled:a.a.bool,allowEmpty:a.a.bool,defaultValue:a.a.object,open:a.a.bool,defaultOpen:a.a.bool,align:a.a.object,placement:a.a.any,transitionName:a.a.string,getPopupContainer:a.a.func,placeholder:a.a.string,format:a.a.string,showHour:a.a.bool,showMinute:a.a.bool,showSecond:a.a.bool,style:a.a.object,className:a.a.string,popupClassName:a.a.string,popupStyle:a.a.object,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,hideDisabledOptions:a.a.bool,onChange:a.a.func,onAmPmChange:a.a.func,onOpen:a.a.func,onClose:a.a.func,onFocus:a.a.func,onBlur:a.a.func,addon:a.a.func,name:a.a.string,autoComplete:a.a.string,use12Hours:a.a.bool,hourStep:a.a.number,minuteStep:a.a.number,secondStep:a.a.number,focusOnOpen:a.a.bool,onKeyDown:a.a.func,autoFocus:a.a.bool,id:a.a.string,inputIcon:a.a.node,clearIcon:a.a.node}),T(M,"defaultProps",{clearText:"clear",prefixCls:"rc-time-picker",defaultOpen:!1,inputReadOnly:!1,style:{},className:"",popupClassName:"",popupStyle:{},align:{},defaultOpenValue:c()(),allowEmpty:!0,showHour:!0,showMinute:!0,showSecond:!0,disabledHours:A,disabledMinutes:A,disabledSeconds:A,hideDisabledOptions:!1,placement:"bottomLeft",onChange:A,onAmPmChange:A,onOpen:A,onClose:A,onFocus:A,onBlur:A,addon:A,use12Hours:!1,focusOnOpen:!1,onKeyDown:A}),Object(u["polyfill"])(M);t["a"]=M},"5vMV":function(e,t,n){var r=n("B+OT"),i=n("NsO/"),o=n("W070")(!1),a=n("VVlx")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},6:function(e,t){},"6+eU":function(e,t,n){"use strict";var r=n("YEIV"),i=n.n(r),o=n("QbLZ"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("V7oC"),u=n.n(c),h=n("FYw3"),f=n.n(h),d=n("mRg0"),p=n.n(d),m=n("q1tI"),g=n.n(m),v=n("TSYQ"),y=n.n(v),b=n("17x9"),w=n.n(b),x=function(e){var t,n=e.rootPrefixCls+"-item",r=y()(n,n+"-"+e.page,(t={},i()(t,n+"-active",e.active),i()(t,e.className,!!e.className),i()(t,n+"-disabled",!e.page),t)),o=function(){e.onClick(e.page)},a=function(t){e.onKeyPress(t,e.onClick,e.page)};return g.a.createElement("li",{title:e.showTitle?e.page:null,className:r,onClick:o,onKeyPress:a,tabIndex:"0"},e.itemRender(e.page,"page",g.a.createElement("a",null,e.page)))};x.propTypes={page:w.a.number,active:w.a.bool,last:w.a.bool,locale:w.a.object,className:w.a.string,showTitle:w.a.bool,rootPrefixCls:w.a.string,onClick:w.a.func,onKeyPress:w.a.func,itemRender:w.a.func};var _=x,E={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},S=function(e){function t(){var e,n,r,i;l()(this,t);for(var o=arguments.length,a=Array(o),s=0;s=0||e.relatedTarget.className.indexOf(o+"-next")>=0)||i(r.getValidValue())},r.go=function(e){var t=r.state.goInputText;""!==t&&(e.keyCode!==E.ENTER&&"click"!==e.type||(r.setState({goInputText:""}),r.props.quickGo(r.getValidValue())))},i=n,f()(r,i)}return p()(t,e),u()(t,[{key:"getValidValue",value:function(){var e=this.state,t=e.goInputText,n=e.current;return!t||isNaN(t)?n:Number(t)}},{key:"render",value:function(){var e=this,t=this.props,n=t.pageSize,r=t.pageSizeOptions,i=t.locale,o=t.rootPrefixCls,a=t.changeSize,s=t.quickGo,l=t.goButton,c=t.selectComponentClass,u=t.buildOptionText,h=t.selectPrefixCls,f=t.disabled,d=this.state.goInputText,p=o+"-options",m=c,v=null,y=null,b=null;if(!a&&!s)return null;if(a&&m){var w=r.map(function(t,n){return g.a.createElement(m.Option,{key:n,value:t},(u||e.buildOptionText)(t))});v=g.a.createElement(m,{disabled:f,prefixCls:h,showSearch:!1,className:p+"-size-changer",optionLabelProp:"children",dropdownMatchSelectWidth:!1,value:(n||r[0]).toString(),onChange:this.changeSize,getPopupContainer:function(e){return e.parentNode}},w)}return s&&(l&&(b="boolean"===typeof l?g.a.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:f},i.jump_to_confirm):g.a.createElement("span",{onClick:this.go,onKeyUp:this.go},l)),y=g.a.createElement("div",{className:p+"-quick-jumper"},i.jump_to,g.a.createElement("input",{disabled:f,type:"text",value:d,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur}),i.page,b)),g.a.createElement("li",{className:""+p},v,y)}}]),t}(g.a.Component);S.propTypes={disabled:w.a.bool,changeSize:w.a.func,quickGo:w.a.func,selectComponentClass:w.a.func,current:w.a.number,pageSizeOptions:w.a.arrayOf(w.a.string),pageSize:w.a.number,buildOptionText:w.a.func,locale:w.a.object,rootPrefixCls:w.a.string,selectPrefixCls:w.a.string,goButton:w.a.oneOfType([w.a.bool,w.a.node])},S.defaultProps={pageSizeOptions:["10","20","30","40"]};var C=S,k=n("N2Kk"),O=n("VCL8");function T(){}function A(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e}function P(e,t,n){return n}function M(e,t,n){var r=e;return"undefined"===typeof r&&(r=t.pageSize),Math.floor((n.total-1)/r)+1}var R=function(e){function t(e){l()(this,t);var n=f()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));j.call(n);var r=e.onChange!==T,i="current"in e;i&&!r&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var o=e.defaultCurrent;"current"in e&&(o=e.current);var a=e.defaultPageSize;return"pageSize"in e&&(a=e.pageSize),o=Math.min(o,M(a,void 0,e)),n.state={current:o,currentInputValue:o,pageSize:a},n}return p()(t,e),u()(t,[{key:"componentDidUpdate",value:function(e,t){var n=this.props.prefixCls;if(t.current!==this.state.current&&this.paginationNode){var r=this.paginationNode.querySelector("."+n+"-item-"+t.current);r&&document.activeElement===r&&r.blur()}}},{key:"getValidValue",value:function(e){var t=e.target.value,n=M(void 0,this.state,this.props),r=this.state.currentInputValue,i=void 0;return i=""===t?t:isNaN(Number(t))?r:t>=n?n:Number(t),i}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.disabled;if(!0===this.props.hideOnSinglePage&&this.props.total<=this.state.pageSize)return null;var o=this.props,s=o.locale,l=M(void 0,this.state,this.props),c=[],u=null,h=null,f=null,d=null,p=null,m=o.showQuickJumper&&o.showQuickJumper.goButton,v=o.showLessItems?1:2,b=this.state,w=b.current,x=b.pageSize,E=w-1>0?w-1:0,S=w+1=2*v&&3!==w&&(c[0]=g.a.cloneElement(c[0],{className:t+"-item-after-jump-prev"}),c.unshift(u)),l-w>=2*v&&w!==l-2&&(c[c.length-1]=g.a.cloneElement(c[c.length-1],{className:t+"-item-before-jump-next"}),c.push(h)),1!==D&&c.unshift(f),N!==l&&c.push(d)}var F=null;o.showTotal&&(F=g.a.createElement("li",{className:t+"-total-text"},o.showTotal(o.total,[0===o.total?0:(w-1)*x+1,w*x>o.total?o.total:w*x])));var B=!this.hasPrev()||!l,V=!this.hasNext()||!l;return g.a.createElement("ul",a()({className:y()(t,n,i()({},t+"-disabled",r)),style:o.style,unselectable:"unselectable",ref:this.savePaginationNode},k),F,g.a.createElement("li",{title:o.showTitle?s.prev_page:null,onClick:this.prev,tabIndex:B?null:0,onKeyPress:this.runIfEnterPrev,className:(B?t+"-disabled":"")+" "+t+"-prev","aria-disabled":B},o.itemRender(E,"prev",this.getItemIcon(o.prevIcon))),c,g.a.createElement("li",{title:o.showTitle?s.next_page:null,onClick:this.next,tabIndex:V?null:0,onKeyPress:this.runIfEnterNext,className:(V?t+"-disabled":"")+" "+t+"-next","aria-disabled":V},o.itemRender(S,"next",this.getItemIcon(o.nextIcon))),g.a.createElement(C,{disabled:r,locale:o.locale,rootPrefixCls:t,selectComponentClass:o.selectComponentClass,selectPrefixCls:o.selectPrefixCls,changeSize:this.props.showSizeChanger?this.changePageSize:null,current:this.state.current,pageSize:this.state.pageSize,pageSizeOptions:this.props.pageSizeOptions,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:m}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};if("current"in e&&(n.current=e.current,e.current!==t.current&&(n.currentInputValue=n.current)),"pageSize"in e&&e.pageSize!==t.pageSize){var r=t.current,i=M(e.pageSize,t,e);r=r>i?i:r,"current"in e||(n.current=r,n.currentInputValue=r),n.pageSize=e.pageSize}return n}}]),t}(g.a.Component);R.propTypes={disabled:w.a.bool,prefixCls:w.a.string,className:w.a.string,current:w.a.number,defaultCurrent:w.a.number,total:w.a.number,pageSize:w.a.number,defaultPageSize:w.a.number,onChange:w.a.func,hideOnSinglePage:w.a.bool,showSizeChanger:w.a.bool,showLessItems:w.a.bool,onShowSizeChange:w.a.func,selectComponentClass:w.a.func,showPrevNextJumpers:w.a.bool,showQuickJumper:w.a.oneOfType([w.a.bool,w.a.object]),showTitle:w.a.bool,pageSizeOptions:w.a.arrayOf(w.a.string),showTotal:w.a.func,locale:w.a.object,style:w.a.object,itemRender:w.a.func,prevIcon:w.a.oneOfType([w.a.func,w.a.node]),nextIcon:w.a.oneOfType([w.a.func,w.a.node]),jumpPrevIcon:w.a.oneOfType([w.a.func,w.a.node]),jumpNextIcon:w.a.oneOfType([w.a.func,w.a.node])},R.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:T,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showSizeChanger:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:T,locale:k["a"],style:{},itemRender:P};var j=function(){var e=this;this.getJumpPrevPage=function(){return Math.max(1,e.state.current-(e.props.showLessItems?3:5))},this.getJumpNextPage=function(){return Math.min(M(void 0,e.state,e.props),e.state.current+(e.props.showLessItems?3:5))},this.getItemIcon=function(t){var n=e.props.prefixCls,r=t||g.a.createElement("a",{className:n+"-item-link"});return"function"===typeof t&&(r=g.a.createElement(t,a()({},e.props))),r},this.savePaginationNode=function(t){e.paginationNode=t},this.isValid=function(t){return A(t)&&t!==e.state.current},this.shouldDisplayQuickJumper=function(){var t=e.props,n=t.showQuickJumper,r=t.pageSize,i=t.total;return!(i<=r)&&n},this.handleKeyDown=function(e){e.keyCode!==E.ARROW_UP&&e.keyCode!==E.ARROW_DOWN||e.preventDefault()},this.handleKeyUp=function(t){var n=e.getValidValue(t),r=e.state.currentInputValue;n!==r&&e.setState({currentInputValue:n}),t.keyCode===E.ENTER?e.handleChange(n):t.keyCode===E.ARROW_UP?e.handleChange(n-1):t.keyCode===E.ARROW_DOWN&&e.handleChange(n+1)},this.changePageSize=function(t){var n=e.state.current,r=M(t,e.state,e.props);n=n>r?r:n,0===r&&(n=e.state.current),"number"===typeof t&&("pageSize"in e.props||e.setState({pageSize:t}),"current"in e.props||e.setState({current:n,currentInputValue:n})),e.props.onShowSizeChange(n,t)},this.handleChange=function(t){var n=e.props.disabled,r=t;if(e.isValid(r)&&!n){var i=M(void 0,e.state,e.props);r>i?r=i:r<1&&(r=1),"current"in e.props||e.setState({current:r,currentInputValue:r});var o=e.state.pageSize;return e.props.onChange(r,o),r}return e.state.current},this.prev=function(){e.hasPrev()&&e.handleChange(e.state.current-1)},this.next=function(){e.hasNext()&&e.handleChange(e.state.current+1)},this.jumpPrev=function(){e.handleChange(e.getJumpPrevPage())},this.jumpNext=function(){e.handleChange(e.getJumpNextPage())},this.hasPrev=function(){return e.state.current>1},this.hasNext=function(){return e.state.current2?n-2:0),i=2;i=0?parseFloat(e)/100*t:parseFloat(e):e}function p(e,t,n){var r=t.position||"inside",i=null!=t.distance?t.distance:5,o=n.height,a=n.width,s=o/2,l=n.x,c=n.y,u="left",h="top";if(r instanceof Array)l+=d(r[0],n.width),c+=d(r[1],n.height),u=null,h=null;else switch(r){case"left":l-=i,c+=s,u="right",h="middle";break;case"right":l+=i+a,c+=s,h="middle";break;case"top":l+=a/2,c-=i,u="center",h="bottom";break;case"bottom":l+=a/2,c+=o+i,u="center";break;case"inside":l+=a/2,c+=s,u="center",h="middle";break;case"insideLeft":l+=i,c+=s,h="middle";break;case"insideRight":l+=a-i,c+=s,u="right",h="middle";break;case"insideTop":l+=a/2,c+=i,u="center";break;case"insideBottom":l+=a/2,c+=o-i,u="center",h="bottom";break;case"insideTopLeft":l+=i,c+=i;break;case"insideTopRight":l+=a-i,c+=i,u="right";break;case"insideBottomLeft":l+=i,c+=o-i,h="bottom";break;case"insideBottomRight":l+=a-i,c+=o-i,u="right",h="bottom";break}return e=e||{},e.x=l,e.y=c,e.align=u,e.verticalAlign=h,e}},"6Ogq":function(e,t,n){"use strict";var r,i;Object.defineProperty(t,"__esModule",{value:!0});var o={position:"absolute",top:"-9999px",width:"50px",height:"50px"};function a(e){var t=e.direction,n=void 0===t?"vertical":t,a=e.prefixCls;if("undefined"===typeof document||"undefined"===typeof window)return 0;var s="vertical"===n;if(s&&r)return r;if(!s&&i)return i;var l=document.createElement("div");Object.keys(o).forEach(function(e){l.style[e]=o[e]}),l.className="".concat(a,"-hide-scrollbar scroll-div-append-to-body"),s?l.style.overflowY="scroll":l.style.overflowX="scroll",document.body.appendChild(l);var c=0;return s?(c=l.offsetWidth-l.clientWidth,r=c):(c=l.offsetHeight-l.clientHeight,i=c),document.body.removeChild(l),c}function s(e,t,n){var r;function i(){for(var i=arguments.length,o=new Array(i),a=0;a=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},"6lKK":function(e,t,n){"use strict";n.r(t);n("2qtc");var r=n("kLXV"),i=(n("miYZ"),n("tsqr")),o=n("d6i3"),a=n.n(o),s=n("p0pE"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("t3Un"),f={invite:{},site:{},subscribe:{},frontend:{},server:{},email:{},telegram:{},app:{},tabs:"site",fetchLoading:!1,emailTemplate:[],themeTemplate:[],setTelegramWebhookLoading:!1};t["default"]={name:"config",state:l()({},f),reducers:{setState(e,t){var n=t.payload;return l()({},e,n)}},effects:{fetch(e,t){return a.a.mark(function n(){var r,i,o,s,c;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return o=e.key,s=t.put,n.next=4,s({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,Object(h["a"])("/admin/config/fetch",{key:o});case 6:return c=n.sent,n.next=9,s({type:"setState",payload:{fetchLoading:!1}});case 9:if(200===c.code){n.next=11;break}return n.abrupt("return");case 11:return"string"===typeof(null===(r=c.data.invite)||void 0===r?void 0:r.commission_withdraw_method)&&(c.data.invite.commission_withdraw_method=c.data.invite.commission_withdraw_method.split(",")),"string"===typeof(null===(i=c.data.site)||void 0===i?void 0:i.email_whitelist_suffix)&&(c.data.site.email_whitelist_suffix=c.data.site.email_whitelist_suffix.split(",")),n.next=15,s({type:"setState",payload:l()({},c.data)});case 15:case"end":return n.stop()}},n)})()},save(e,t){return a.a.mark(function n(){var r,o,s,c,u;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.parentKey,o=t.put,s=t.select,n.next=4,s(e=>e.config);case 4:return c=n.sent,n.next=7,Object(h["b"])("/admin/config/save",l()({},c[r]));case 7:if(u=n.sent,200===u.code){n.next=10;break}return n.abrupt("return");case 10:return i["a"].success("\u4fdd\u5b58\u6210\u529f"),n.next=13,o({type:"fetch"});case 13:case"end":return n.stop()}},n)})()},getEmailTemplate(e,t){return a.a.mark(function e(){var n,r;return a.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(h["a"])("/admin/config/getEmailTemplate");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"setState",payload:{emailTemplate:r.data}});case 8:case"end":return e.stop()}},e)})()},getThemeTemplate(e,t){return a.a.mark(function e(){var n,r;return a.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(h["a"])("/admin/config/getThemeTemplate");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"setState",payload:{themeTemplate:r.data}});case 8:case"end":return e.stop()}},e)})()},setTelegramWebhook(e,t){return a.a.mark(function n(){var r,o,s;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.token,o=t.put,t.select,n.next=4,o({type:"setState",payload:{setTelegramWebhookLoading:!0}});case 4:return n.next=6,Object(h["b"])("/admin/config/setTelegramWebhook",{telegram_bot_token:r});case 6:return s=n.sent,n.next=9,o({type:"setState",payload:{setTelegramWebhookLoading:!1}});case 9:if(200===s.code){n.next=11;break}return n.abrupt("return");case 11:i["a"].success("webhook \u8bbe\u7f6e\u6210\u529f");case 12:case"end":return n.stop()}},n)})()},testSendMail(e,t){return a.a.mark(function e(){var n,i,o,s,l,c,f,d,p,m,g;return a.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return m=t.put,e.next=3,m({type:"setState",payload:{testSendMailLoading:!0}});case 3:return e.next=5,Object(h["b"])("/admin/config/testSendMail");case 5:return g=e.sent,e.next=8,m({type:"setState",payload:{testSendMailLoading:!1}});case 8:if(200===g.code){e.next=10;break}return e.abrupt("return");case 10:r["a"][(null===g||void 0===g?void 0:null===(n=g.log)||void 0===n?void 0:n.error)?"error":"success"]({title:(null===g||void 0===g?void 0:null===(i=g.log)||void 0===i?void 0:i.error)?"\u53d1\u9001\u5931\u8d25":"\u53d1\u9001\u6210\u529f",content:u.a.createElement("div",null,(null===g||void 0===g?void 0:null===(o=g.log)||void 0===o?void 0:o.error)&&u.a.createElement("div",null,u.a.createElement("span",null,"\u5931\u8d25\u539f\u56e0:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(s=g.log)||void 0===s?void 0:s.error)),u.a.createElement("div",null,u.a.createElement("span",null,"\u6536\u4fe1\u5730\u5740:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(l=g.log)||void 0===l?void 0:l.email)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u670d\u52a1\u5668:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(c=g.log)||void 0===c?void 0:c.config.host)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u7aef\u53e3:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(f=g.log)||void 0===f?void 0:f.config.port)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u52a0\u5bc6\u65b9\u5f0f:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(d=g.log)||void 0===d?void 0:d.config.encryption)),u.a.createElement("div",null,u.a.createElement("span",null,"\u53d1\u4fe1\u7528\u6237\u540d:"),u.a.createElement("span",null,null===g||void 0===g?void 0:null===(p=g.log)||void 0===p?void 0:p.config.username)))}),console.log(g);case 12:case"end":return e.stop()}},e)})()}}}},"6tYh":function(e,t,n){var r=n("93I4"),i=n("5K7Z"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("2GTP")(Function.call,n("vwuL").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"7Cbv":function(e,t,n){"use strict";var r,i=new Uint8Array(16);function o(){if(!r&&(r="undefined"!==typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!==typeof msCrypto&&"function"===typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto),!r))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return r(i)}var a=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function s(e){return"string"===typeof e&&a.test(e)}for(var l=s,c=[],u=0;u<256;++u)c.push((u+256).toString(16).substr(1));function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[e[t+15]]).toLowerCase();if(!l(n))throw TypeError("Stringified UUID is invalid");return n}var f=h;function d(e,t,n){e=e||{};var r=e.random||(e.rng||o)();if(r[6]=15&r[6]|64,r[8]=63&r[8]|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return f(r)}t["a"]=d},"7ICb":function(e,t,n){"use strict";function r(e){return e.clone().startOf("month")}function i(e){return e.clone().endOf("month")}function o(e,t,n){return e.clone().add(t,n)}function a(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2];return e.some(function(e){return e.isSame(t,n)})}n.d(t,"b",function(){return r}),n.d(t,"a",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"d",function(){return a})},"7Inb":function(e,t,n){"use strict";var r=n("W6Rk")["default"];n(6),t=e.exports=r,t["default"]=t},"7RDE":function(e,t,n){"use strict";var r,i=n("c0Oy"),o=n("+o5p")(0),a=n("rKIl"),s=n("+y51"),l=n("lFUy"),c=n("2Os2"),u=n("u8+u"),h=n("Jc7p"),f=n("Jc7p"),d=!i.ActiveXObject&&"ActiveXObject"in i,p="WeakMap",m=s.getWeak,g=Object.isExtensible,v=c.ufstore,y=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},b={get:function(e){if(u(e)){var t=m(e);return!0===t?v(h(this,p)).get(e):t?t[this._i]:void 0}},set:function(e,t){return c.def(h(this,p),e,t)}},w=e.exports=n("nWMQ")(p,y,b,c,!0,!0);f&&d&&(r=c.getConstructor(y,p),l(r.prototype,b),s.NEED=!0,o(["delete","has","get","set"],function(e){var t=w.prototype,n=t[e];a(t,e,function(t,i){if(u(t)&&!g(t)){this._f||(this._f=new r);var o=this._f[e](t,i);return"set"==e?this:o}return n.call(this,t,i)})}))},"7Uk0":function(e,t,n){"use strict";var r=n("il4q"),i=n("Spc3"),o=n("OsVd");e.exports=function(e){var t=r(this),n=o(t.length),a=arguments.length,s=i(a>1?arguments[1]:void 0,n),l=a>2?arguments[2]:void 0,c=void 0===l?n:i(l,n);while(c>s)t[s++]=e;return t}},"7ixt":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r={adjustX:1,adjustY:1},i=[0,0],o={left:{points:["cr","cl"],overflow:r,offset:[-4,0],targetOffset:i},right:{points:["cl","cr"],overflow:r,offset:[4,0],targetOffset:i},top:{points:["bc","tc"],overflow:r,offset:[0,-4],targetOffset:i},bottom:{points:["tc","bc"],overflow:r,offset:[0,4],targetOffset:i},topLeft:{points:["bl","tl"],overflow:r,offset:[0,-4],targetOffset:i},leftTop:{points:["tr","tl"],overflow:r,offset:[-4,0],targetOffset:i},topRight:{points:["br","tr"],overflow:r,offset:[0,-4],targetOffset:i},rightTop:{points:["tl","tr"],overflow:r,offset:[4,0],targetOffset:i},bottomRight:{points:["tr","br"],overflow:r,offset:[0,4],targetOffset:i},rightBottom:{points:["bl","br"],overflow:r,offset:[4,0],targetOffset:i},bottomLeft:{points:["tl","bl"],overflow:r,offset:[0,4],targetOffset:i},leftBottom:{points:["br","bl"],overflow:r,offset:[-4,0],targetOffset:i}}},"7tDr":function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o);t["default"]={name:"layout",state:{showNav:!1},reducers:{save(e,t){return a()({},e,t.payload)}},effects:{showNav(e,t){return i.a.mark(function n(){var r,o,s,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.show,o=t.put,s=t.select,n.next=4,s(e=>e.layout);case 4:return l=n.sent,n.next=7,o({type:"save",payload:a()({},l,{showNav:"undefined"!==typeof r?r:!l.showNav})});case 7:case"end":return n.stop()}},n)})()}}}},"7tNx":function(e,t,n){"use strict";var r=n("7vYJ");e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},"7tlc":function(e,t,n){(function(e){var r=Object.getOwnPropertyDescriptors||function(e){for(var t=Object.keys(e),n={},r=0;r=o)return e;switch(e){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(e){return"[Circular]"}default:return e}}),l=r[n];n=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),y(n)?r.showHidden=n:n&&t._extend(r,n),S(r.showHidden)&&(r.showHidden=!1),S(r.depth)&&(r.depth=2),S(r.colors)&&(r.colors=!1),S(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=l),h(r,e,r.depth)}function l(e,t){var n=s.styles[t];return n?"\x1b["+s.colors[n][0]+"m"+e+"\x1b["+s.colors[n][1]+"m":e}function c(e,t){return e}function u(e){var t={};return e.forEach(function(e,n){t[e]=!0}),t}function h(e,n,r){if(e.customInspect&&n&&A(n.inspect)&&n.inspect!==t.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,e);return _(i)||(i=h(e,i,r)),i}var o=f(e,n);if(o)return o;var a=Object.keys(n),s=u(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(n)),T(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(A(n)){var l=n.name?": "+n.name:"";return e.stylize("[Function"+l+"]","special")}if(C(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(O(n))return e.stylize(Date.prototype.toString.call(n),"date");if(T(n))return d(n)}var c,y="",b=!1,w=["{","}"];if(v(n)&&(b=!0,w=["[","]"]),A(n)){var x=n.name?": "+n.name:"";y=" [Function"+x+"]"}return C(n)&&(y=" "+RegExp.prototype.toString.call(n)),O(n)&&(y=" "+Date.prototype.toUTCString.call(n)),T(n)&&(y=" "+d(n)),0!==a.length||b&&0!=n.length?r<0?C(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special"):(e.seen.push(n),c=b?p(e,n,r,s,a):a.map(function(t){return m(e,n,r,s,t,b)}),e.seen.pop(),g(c,y,w)):w[0]+y+w[1]}function f(e,t){if(S(t))return e.stylize("undefined","undefined");if(_(t)){var n="'"+JSON.stringify(t).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(n,"string")}return x(t)?e.stylize(""+t,"number"):y(t)?e.stylize(""+t,"boolean"):b(t)?e.stylize("null","null"):void 0}function d(e){return"["+Error.prototype.toString.call(e)+"]"}function p(e,t,n,r,i){for(var o=[],a=0,s=t.length;a-1&&(s=o?s.split("\n").map(function(e){return" "+e}).join("\n").substr(2):"\n"+s.split("\n").map(function(e){return" "+e}).join("\n"))):s=e.stylize("[Circular]","special")),S(a)){if(o&&i.match(/^\d+$/))return s;a=JSON.stringify(""+i),a.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=e.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=e.stylize(a,"string"))}return a+": "+s}function g(e,t,n){var r=e.reduce(function(e,t){return 0,t.indexOf("\n")>=0&&0,e+t.replace(/\u001b\[\d\d?m/g,"").length+1},0);return r>60?n[0]+(""===t?"":t+"\n ")+" "+e.join(",\n ")+" "+n[1]:n[0]+t+" "+e.join(", ")+" "+n[1]}function v(e){return Array.isArray(e)}function y(e){return"boolean"===typeof e}function b(e){return null===e}function w(e){return null==e}function x(e){return"number"===typeof e}function _(e){return"string"===typeof e}function E(e){return"symbol"===typeof e}function S(e){return void 0===e}function C(e){return k(e)&&"[object RegExp]"===M(e)}function k(e){return"object"===typeof e&&null!==e}function O(e){return k(e)&&"[object Date]"===M(e)}function T(e){return k(e)&&("[object Error]"===M(e)||e instanceof Error)}function A(e){return"function"===typeof e}function P(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function M(e){return Object.prototype.toString.call(e)}function R(e){return e<10?"0"+e.toString(10):e.toString(10)}t.debuglog=function(n){if(S(o)&&(o=Object({NODE_ENV:"production"}).NODE_DEBUG||""),n=n.toUpperCase(),!a[n])if(new RegExp("\\b"+n+"\\b","i").test(o)){var r=e.pid;a[n]=function(){var e=t.format.apply(t,arguments);console.error("%s %d: %s",n,r,e)}}else a[n]=function(){};return a[n]},t.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},t.isArray=v,t.isBoolean=y,t.isNull=b,t.isNullOrUndefined=w,t.isNumber=x,t.isString=_,t.isSymbol=E,t.isUndefined=S,t.isRegExp=C,t.isObject=k,t.isDate=O,t.isError=T,t.isFunction=A,t.isPrimitive=P,t.isBuffer=n("j/1Z");var j=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function L(){var e=new Date,t=[R(e.getHours()),R(e.getMinutes()),R(e.getSeconds())].join(":");return[e.getDate(),j[e.getMonth()],t].join(" ")}function D(e,t){return Object.prototype.hasOwnProperty.call(e,t)}t.log=function(){console.log("%s - %s",L(),t.format.apply(t,arguments))},t.inherits=n("FfBw"),t._extend=function(e,t){if(!t||!k(t))return e;var n=Object.keys(t),r=n.length;while(r--)e[n[r]]=t[n[r]];return e};var N="undefined"!==typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(e,t){if(!e){var n=new Error("Promise was rejected with a falsy value");n.reason=e,e=n}return t(e)}function $(t){if("function"!==typeof t)throw new TypeError('The "original" argument must be of type Function');function n(){for(var n=[],r=0;r0)g=l(e,t,p,o(p.length),g,h-1)-1;else{if(g>=9007199254740991)throw TypeError();e[g]=p}g++}v++}return g}e.exports=l},"8Z/V":function(e,t,n){e.exports=!n("wUWy")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"8drl":function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=n("d6i3"),a=n.n(o),s=n("1l/V"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("Bl7J"),f=n("/MKj"),d=(n("2qtc"),n("kLXV")),p=(n("5NDa"),n("5rEg")),m=(n("OaEy"),n("2fM7")),g=(n("miYZ"),n("tsqr"));class v extends u.a.Component{constructor(e){super(e),this.state={params:{},visible:!1}}setParams(e,t){var n=this.state.params;n[e]=t,this.setState({params:n})}show(){this.setState({visible:!0}),this.getConfig()}hidden(){this.setState({visible:!1,params:{}})}getConfig(){var e=this.props.keyName;this.props.dispatch({type:"theme/getThemeConfig",name:e,complete:e=>{this.setState({params:e})}})}saveThemeConfig(){var e=this.props.keyName;this.props.dispatch({type:"theme/saveThemeConfig",config:window.btoa(unescape(encodeURIComponent(JSON.stringify(this.state.params)))),name:e,complete:e=>{g["a"].success("\u4fdd\u5b58\u6210\u529f")}})}buildType(e){var t=this.state.params;switch(e.field_type){case"select":return u.a.createElement("div",null,u.a.createElement(m["a"],{style:{width:"100%"},placeholder:e.placeholder,value:t[e.field_name],onChange:t=>this.setParams(e.field_name,t)},Object.keys(e.select_options).map(t=>{return u.a.createElement(m["a"].Option,{value:t},e.select_options[t])})));case"input":return u.a.createElement(p["a"],{placeholder:e.placeholder,value:t[e.field_name],onChange:t=>this.setParams(e.field_name,t.target.value)});case"textarea":return u.a.createElement(p["a"].TextArea,{rows:"5",placeholder:e.placeholder,value:t[e.field_name],onChange:t=>this.setParams(e.field_name,t.target.value)})}}render(){var e=this.props.theme,t=(e.getThemeConfigLoading,e.saveThemeConfigLoading);return u.a.createElement(u.a.Fragment,null,u.a.cloneElement(this.props.children,{onClick:()=>this.show()}),u.a.createElement(d["a"],{onCancel:()=>this.hidden(),title:"\u914d\u7f6e".concat(this.props.themeName,"\u4e3b\u9898"),visible:this.state.visible,okButtonProps:{loading:t},onOk:()=>this.saveThemeConfig()},(this.props.configs||[]).map(e=>{return u.a.createElement("div",{className:"form-group"},u.a.createElement("label",null,e.label),this.buildType(e))})))}}var y=Object(f["c"])(e=>{var t=e.theme;return{theme:t}})(v),b=n("t3Un");class w extends u.a.Component{constructor(e){super(e),this.state={visible:!1}}componentDidMount(){this.props.dispatch({type:"theme/getThemes"})}activeTheme(e){var t=this;return l()(a.a.mark(function n(){var r;return a.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return n.next=2,Object(b["b"])("/admin/config/save",{frontend_theme:e});case 2:if(r=n.sent,200===r.code){n.next=5;break}return n.abrupt("return");case 5:t.props.dispatch({type:"theme/getThemes"});case 6:case"end":return n.stop()}},n)}))()}render(){var e=this.props.theme,t=e.themes,n=e.active;e.getThemesLoading;return u.a.createElement(h["a"],i()({},this.props,{loading:Object.keys(t).length<=0,title:"\u4e3b\u9898\u914d\u7f6e"}),u.a.createElement("div",{className:"row"},u.a.createElement("div",{className:"col-lg-12"},u.a.createElement("div",{className:"alert alert-warning mb-0 mb-md-4",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u5982\u679c\u4f60\u91c7\u7528\u524d\u540e\u5206\u79bb\u7684\u65b9\u5f0f\u90e8\u7f72V2board\uff0c\u90a3\u4e48\u4e3b\u9898\u914d\u7f6e\u5c06\u4e0d\u4f1a\u751f\u6548\u3002\u4e86\u89e3",u.a.createElement("b",null,u.a.createElement("a",{href:"https://docs.v2board.com/use/advanced.html#%E5%89%8D%E7%AB%AF%E5%88%86%E7%A6%BB"},"\u524d\u540e\u5206\u79bb")))))),Object.keys(t).map(e=>{var r=t[e];return u.a.createElement("div",{className:"block block-transparent bg-image mb-0 mb-md-3 bg-primary",style:{backgroundImage:"url(https://images.unsplash.com/photo-1567095761054-7a02e69e5c43?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1374&q=80)"}},u.a.createElement("div",{className:"block-content block-content-full bg-gd-white-op-l"},u.a.createElement("div",{className:"d-md-flex justify-content-md-between align-items-md-center"},u.a.createElement("div",{className:"p-2 py-4"},u.a.createElement("h3",{className:"font-size-h4 font-w400 text-black mb-1"},r.name),u.a.createElement("p",{className:"text-black-75 mb-0"},r.description)),u.a.createElement("div",{className:"p-2 py-4"},u.a.createElement("button",{type:"button",className:"btn btn-sm rounded-pill btn-outline-light px-3 mr-2",onClick:()=>this.activeTheme(e),disabled:n===e},n===e?"\u5f53\u524d\u4e3b\u9898":"\u6fc0\u6d3b\u4e3b\u9898"),u.a.createElement(y,{keyName:e,themeName:r.name,configs:r.configs},u.a.createElement("button",{type:"button",className:"btn btn-sm rounded-pill btn-outline-light px-3"},"\u4e3b\u9898\u8bbe\u7f6e"))))))}))}}t["default"]=Object(f["c"])(e=>{var t=e.theme;return{theme:t}})(w)},"8ifW":function(e,t,n){"use strict";(function(e){var r=n("q1tI"),i=n.n(r),o=n("1EPD"),a=n("17x9"),s=n.n(a),l=1073741823,c="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof e?e:{};function u(){var e="__global_unique_id__";return c[e]=(c[e]||0)+1}function h(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function f(e){var t=[];return{on:function(e){t.push(e)},off:function(e){t=t.filter(function(t){return t!==e})},get:function(){return e},set:function(n,r){e=n,t.forEach(function(t){return t(e,r)})}}}function d(e){return Array.isArray(e)?e[0]:e}function p(e,t){var n,i,a="__create-react-context-"+u()+"__",c=function(e){function n(){var t;return t=e.apply(this,arguments)||this,t.emitter=f(t.props.value),t}Object(o["a"])(n,e);var r=n.prototype;return r.getChildContext=function(){var e;return e={},e[a]=this.emitter,e},r.componentWillReceiveProps=function(e){if(this.props.value!==e.value){var n,r=this.props.value,i=e.value;h(r,i)?n=0:(n="function"===typeof t?t(r,i):l,n|=0,0!==n&&this.emitter.set(e.value,n))}},r.render=function(){return this.props.children},n}(r["Component"]);c.childContextTypes=(n={},n[a]=s.a.object.isRequired,n);var p=function(t){function n(){var e;return e=t.apply(this,arguments)||this,e.state={value:e.getValue()},e.onUpdate=function(t,n){var r=0|e.observedBits;0!==(r&n)&&e.setState({value:e.getValue()})},e}Object(o["a"])(n,t);var r=n.prototype;return r.componentWillReceiveProps=function(e){var t=e.observedBits;this.observedBits=void 0===t||null===t?l:t},r.componentDidMount=function(){this.context[a]&&this.context[a].on(this.onUpdate);var e=this.props.observedBits;this.observedBits=void 0===e||null===e?l:e},r.componentWillUnmount=function(){this.context[a]&&this.context[a].off(this.onUpdate)},r.getValue=function(){return this.context[a]?this.context[a].get():e},r.render=function(){return d(this.props.children)(this.state.value)},n}(r["Component"]);return p.contextTypes=(i={},i[a]=s.a.object,i),{Provider:c,Consumer:p}}var m=i.a.createContext||p;t["a"]=m}).call(this,n("yLpj"))},"8jRI":function(e,t,n){"use strict";var r="%[a-f0-9]{2}",i=new RegExp(r,"gi"),o=new RegExp("("+r+")+","gi");function a(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var n=e.slice(0,t),r=e.slice(t);return Array.prototype.concat.call([],a(n),a(r))}function s(e){try{return decodeURIComponent(e)}catch(r){for(var t=e.match(i),n=1;n=n&&(e.updateKey=a[0].updateKey||a[0].key,a.shift()),a.push(e)),{notices:a}})},r.remove=function(e){r.setState(function(t){return{notices:t.notices.filter(function(t){return t.key!==e})}})},i=n,p()(r,i)}return g()(t,e),f()(t,[{key:"getTransitionName",value:function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t}},{key:"render",value:function(){var e,t=this,n=this.props,r=this.state.notices,i=r.map(function(e,i){var o=Boolean(i===r.length-1&&e.updateKey),a=e.updateKey?e.updateKey:e.key,s=Object(S["a"])(t.remove.bind(t,e.key),e.onClose);return y.a.createElement(T,l()({prefixCls:n.prefixCls},e,{key:a,update:o,onClose:s,onClick:e.onClick,closeIcon:n.closeIcon}),e.content)}),o=(e={},a()(e,n.prefixCls,1),a()(e,n.className,!!n.className),e);return y.a.createElement("div",{className:k()(o),style:n.style},y.a.createElement(E["a"],{transitionName:this.getTransitionName()},i))}}]),t}(v["Component"]);R.propTypes={prefixCls:w.a.string,transitionName:w.a.string,animation:w.a.oneOfType([w.a.string,w.a.object]),style:w.a.object,maxCount:w.a.number,closeIcon:w.a.node},R.defaultProps={prefixCls:"rc-notification",animation:"fade",style:{top:65,left:"50%"}},R.newInstance=function(e,t){var n=e||{},r=n.getContainer,o=i()(n,["getContainer"]),a=document.createElement("div");if(r){var s=r();s.appendChild(a)}else document.body.appendChild(a);var c=!1;function u(e){c||(c=!0,t({notice:function(t){e.add(t)},removeNotice:function(t){e.remove(t)},component:e,destroy:function(){_.a.unmountComponentAtNode(a),a.parentNode.removeChild(a)}}))}_.a.render(y.a.createElement(R,l()({},o,{ref:u})),a)};var j=R;t["a"]=j},"8zNj":function(e,t,n){"use strict";n("2qtc");var r=n("kLXV"),i=(n("5NDa"),n("5rEg")),o=(n("Pwec"),n("CtXQ")),a=n("p0pE"),s=n.n(a),l=n("q1tI"),c=n.n(l),u=(n("Bl7J"),n("/MKj"));class h extends c.a.Component{constructor(e){super(e),this.state={submit:s()({},this.props.record),visible:!1}}save(){var e=s()({},this.state.submit);this.props.dispatch({type:"serverGroup/save",params:e,callback:()=>{this.setState({visible:!1})}})}render(){var e=this.props.serverGroup.fetchLoading;return c.a.createElement(c.a.Fragment,null,c.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),c.a.createElement(r["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u7ec4":"\u521b\u5efa\u7ec4"),visible:this.state.visible,onCancel:()=>this.setState({visible:!1}),onOk:()=>e||this.save(),okText:e?c.a.createElement(o["a"],{type:"loading"}):"\u63d0\u4ea4",cancelText:"\u53d6\u6d88"},c.a.createElement("div",null,c.a.createElement("div",{className:"form-group"},c.a.createElement("label",{for:"example-text-input-alt"},"\u7ec4\u540d"),c.a.createElement(i["a"],{placeholder:"\u8bf7\u8f93\u5165\u7ec4\u540d",value:this.state.submit.name,onChange:e=>{this.setState({submit:s()({},this.state.submit,{name:e.target.value})})}})))))}}t["a"]=Object(u["c"])(e=>{var t=e.serverGroup;return{serverGroup:t}})(h)},"93I4":function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},"9Do8":function(e,t,n){"use strict";e.exports=n("zt9T")},"9HFh":function(e,t,n){var r=n("xJie"),i=n("WFJy").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"9R94":function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=!0,i="Invariant failed";function o(e,t){if(!e){if(r)throw new Error(i);var n="function"===typeof t?t():t,o=n?i+": "+n:i;throw new Error(o)}}},"9WFV":function(e,t,n){var r=n("2we2");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},"9lTW":function(e,t,n){"use strict";(function(t){function r(e,t){if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i=0;c--)if(u[c]!==h[c])return!1;for(c=u.length-1;c>=0;c--)if(l=u[c],!b(e[l],t[l],n,r))return!1;return!0}function _(e,t,n){b(e,t,!0)&&v(e,t,n,"notDeepStrictEqual",_)}function E(e,t){if(!e||!t)return!1;if("[object RegExp]"==Object.prototype.toString.call(t))return t.test(e);try{if(e instanceof t)return!0}catch(e){}return!Error.isPrototypeOf(t)&&!0===t.call({},e)}function S(e){var t;try{e()}catch(e){t=e}return t}function C(e,t,n,r){var i;if("function"!==typeof t)throw new TypeError('"block" argument must be a function');"string"===typeof n&&(r=n,n=null),i=S(t),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),e&&!i&&v(i,n,"Missing expected exception"+r);var a="string"===typeof r,s=!e&&o.isError(i),l=!e&&i&&!n;if((s&&a&&E(i,n)||l)&&v(i,n,"Got unwanted exception"+r),e&&i&&n&&!E(i,n)||!e&&i)throw i}h.AssertionError=function(e){this.name="AssertionError",this.actual=e.actual,this.expected=e.expected,this.operator=e.operator,e.message?(this.message=e.message,this.generatedMessage=!1):(this.message=g(this),this.generatedMessage=!0);var t=e.stackStartFunction||v;if(Error.captureStackTrace)Error.captureStackTrace(this,t);else{var n=new Error;if(n.stack){var r=n.stack,i=d(t),o=r.indexOf("\n"+i);if(o>=0){var a=r.indexOf("\n",o+1);r=r.substring(a+1)}this.stack=r}}},o.inherits(h.AssertionError,Error),h.fail=v,h.ok=y,h.equal=function(e,t,n){e!=t&&v(e,t,n,"==",h.equal)},h.notEqual=function(e,t,n){e==t&&v(e,t,n,"!=",h.notEqual)},h.deepEqual=function(e,t,n){b(e,t,!1)||v(e,t,n,"deepEqual",h.deepEqual)},h.deepStrictEqual=function(e,t,n){b(e,t,!0)||v(e,t,n,"deepStrictEqual",h.deepStrictEqual)},h.notDeepEqual=function(e,t,n){b(e,t,!1)&&v(e,t,n,"notDeepEqual",h.notDeepEqual)},h.notDeepStrictEqual=_,h.strictEqual=function(e,t,n){e!==t&&v(e,t,n,"===",h.strictEqual)},h.notStrictEqual=function(e,t,n){e===t&&v(e,t,n,"!==",h.notStrictEqual)},h.throws=function(e,t,n){C(!0,e,t,n)},h.doesNotThrow=function(e,t,n){C(!1,e,t,n)},h.ifError=function(e){if(e)throw e};var k=Object.keys||function(e){var t=[];for(var n in e)a.call(e,n)&&t.push(n);return t}}).call(this,n("yLpj"))},"9nSz":function(e,t,n){"use strict";var r=n("WGNW"),i=n("Y/ne"),o=n("08Qx"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padStart:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},A22h:function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},A5Xg:function(e,t,n){var r=n("NsO/"),i=n("ar/p").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},"A7R+":function(e,t,n){e.exports=!n("8Z/V")&&!n("wUWy")(function(){return 7!=Object.defineProperty(n("SfDG")("div"),"a",{get:function(){return 7}}).a})},AHJs:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}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}}),t&&a(e,t)}function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function s(e){return function(){var t,n=h(e);if(u()){var r=h(this).constructor;t=Reflect.construct(n,arguments,r)}else t=n.apply(this,arguments);return l(this,t)}}function l(e,t){return!t||"object"!==r(t)&&"function"!==typeof t?c(e):t}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function u(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(e){return!1}}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}var f=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t};Object.defineProperty(t,"__esModule",{value:!0});var d=f(n("q1tI")),p=function(e){o(n,e);var t=s(n);function n(){return i(this,n),t.apply(this,arguments)}return n}(d.Component);t.default=p,p.isTableColumnGroup=!0},AMgb:function(e,t,n){e.exports=n("j/9B").default},ANjH:function(e,t,n){"use strict";var r=n("rePB");function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];return{type:r,payload:{location:e,action:t,isFirstRendering:n}}},o="@@router/CALL_HISTORY_METHOD",a=function(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r0?r:n)(e)}},AUvm:function(e,t,n){"use strict";var r=n("5T2Y"),i=n("B+OT"),o=n("jmDH"),a=n("Y7ZC"),s=n("kTiW"),l=n("6/1s").KEY,c=n("KUxP"),u=n("29s/"),h=n("RfKB"),f=n("YqAc"),d=n("UWiX"),p=n("zLkG"),m=n("Zxgi"),g=n("R+7+"),v=n("kAMH"),y=n("5K7Z"),b=n("93I4"),w=n("JB68"),x=n("NsO/"),_=n("G8Mo"),E=n("rr1i"),S=n("oVml"),C=n("A5Xg"),k=n("vwuL"),O=n("mqlF"),T=n("2faE"),A=n("w6GO"),P=k.f,M=T.f,R=C.f,j=r.Symbol,L=r.JSON,D=L&&L.stringify,N="prototype",I=d("_hidden"),$=d("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),V=u("symbols"),W=u("op-symbols"),H=Object[N],U="function"==typeof j&&!!O.f,z=r.QObject,q=!z||!z[N]||!z[N].findChild,K=o&&c(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(H,t);r&&delete H[t],M(e,t,n),r&&e!==H&&M(H,t,r)}:M,G=function(e){var t=V[e]=S(j[N]);return t._k=e,t},Y=U&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},X=function(e,t,n){return e===H&&X(W,t,n),y(e),t=_(t,!0),y(n),i(V,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:E(0,!1)})):(i(e,I)||M(e,I,E(1,{})),e[I][t]=!0),K(e,t,n)):M(e,t,n)},Q=function(e,t){y(e);var n,r=g(t=x(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?S(e):Q(S(e),t)},J=function(e){var t=F.call(this,e=_(e,!0));return!(this===H&&i(V,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,I)&&this[I][e])||t)},ee=function(e,t){if(e=x(e),t=_(t,!0),e!==H||!i(V,t)||i(W,t)){var n=P(e,t);return!n||!i(V,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},te=function(e){var t,n=R(x(e)),r=[],o=0;while(n.length>o)i(V,t=n[o++])||t==I||t==l||r.push(t);return r},ne=function(e){var t,n=e===H,r=R(n?W:x(e)),o=[],a=0;while(r.length>a)!i(V,t=r[a++])||n&&!i(H,t)||o.push(V[t]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),K(this,e,E(1,n))};return o&&q&&K(H,e,{configurable:!0,set:t}),G(e)},s(j[N],"toString",function(){return this._k}),k.f=ee,T.f=X,n("ar/p").f=C.f=te,n("NV0k").f=J,O.f=ne,o&&!n("uOPS")&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(d(e))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=A(d.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=j(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c(function(){O.f(1)});a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),L&&a(a.S+a.F*(!U||c(function(){var e=j();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,D.apply(L,r)}}),j[N][$]||n("NegM")(j[N],$,j[N].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},AyUB:function(e,t,n){e.exports={default:n("3GJH"),__esModule:!0}},"B+OT":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},B6Jk:function(e,t,n){},B9Yq:function(e,t){e.exports=function(){throw new Error("define cannot be used indirect")}},BC81:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){return null};t.default=r},BFt8:function(e,t,n){var r=n("oxo0"),i=n("il4q"),o=n("J57/")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"BGR+":function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r);function o(e,t){for(var n=i()({},e),r=0;r=r)t|=1&e,e>>=1;return e+t}function a(e,t,n,r){var i=t+1;if(i===n)return 1;if(r(e[i++],e[t])<0){while(i=0)i++;return i-t}function s(e,t,n){n--;while(t>>1,i(a,e[o])<0?l=o:s=o+1;var c=r-s;switch(c){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:while(c>0)e[s+c]=e[s+c-1],c--}e[s]=a}}function c(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])>0){s=r-i;while(l0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}else{s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}a++;while(a>>1);o(e,t[n+u])>0?a=u+1:l=u}return l}function u(e,t,n,r,i,o){var a=0,s=0,l=1;if(o(e,t[n+i])<0){s=i+1;while(ls&&(l=s);var c=a;a=i-l,l=i-c}else{s=r-i;while(l=0)a=l,l=1+(l<<1),l<=0&&(l=s);l>s&&(l=s),a+=i,l+=i}a++;while(a>>1);o(e,t[n+u])<0?l=u:a=u+1}return l}function h(e,t){var n,r,o=i,a=0,s=0;a=e.length;var l=[];function h(e,t){n[s]=e,r[s]=t,s+=1}function f(){while(s>1){var e=s-2;if(e>=1&&r[e-1]<=r[e]+r[e+1]||e>=2&&r[e-2]<=r[e]+r[e-1])r[e-1]r[e+1])break;p(e)}}function d(){while(s>1){var e=s-2;e>0&&r[e-1]=i||g>=i);if(v)break;y<0&&(y=0),y+=2}if(o=y,o<1&&(o=1),1===r){for(h=0;h=0;h--)e[g+h]=e[m+h];if(0===r){w=!0;break}}if(e[p--]=l[d--],1===--s){w=!0;break}if(b=s-c(e[f],l,0,s,s-1,t),0!==b){for(p-=b,d-=b,s-=b,g=p+1,m=d+1,h=0;h=i||b>=i);if(w)break;v<0&&(v=0),v+=2}if(o=v,o<1&&(o=1),1===s){for(p-=r,f-=r,g=p+1,m=f+1,h=r-1;h>=0;h--)e[g+h]=e[m+h];e[p]=l[d]}else{if(0===s)throw new Error;for(m=p-(s-1),h=0;h=0;h--)e[g+h]=e[m+h];e[p]=l[d]}else for(m=p-(s-1),h=0;hf&&(d=f),l(e,n,n+d,n+c,t),c=d}u.pushRun(n,c),u.mergeRuns(),s-=c,n+=c}while(0!==s);u.forceMergeRuns()}}},BjZs:function(e,t,n){"use strict";function r(e){return s(e)||a(e)||o(e)||i()}function i(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(e,t){if(e){if("string"===typeof e)return l(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function a(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function s(e){if(Array.isArray(e))return l(e)}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[];i[n]=i[n]||[];var o=[],a=function(e){var t=i.length-n;e&&!e.children&&t>1&&(!e.rowSpan||e.rowSpan0?(c.children=e(c.children,n+1,c,i),r.colSpan+=c.colSpan):r.colSpan+=1;for(var h=0;h{s.a.push(n),this.props.dispatch({type:"layout/showNav",show:!1})}},r&&r,o.a.createElement("span",{className:"nav-main-link-name"},t)));case"href":return o.a.createElement("li",{key:Math.random(),className:"nav-main-item"},o.a.createElement("a",{className:"nav-main-link",target:"_blank",href:n,rel:"noreferrer"},r&&r,o.a.createElement("span",{className:"nav-main-link-name"},t)))}}isAdmin(){return-1!==this.props.location.pathname.indexOf("admin")}render(){return o.a.createElement("nav",{id:"sidebar"},o.a.createElement("div",{className:"smini-hidden bg-header-dark"},o.a.createElement("div",{className:"content-header justify-content-lg-center bg-black-10"},o.a.createElement("a",{className:"link-fx font-size-lg text-white",href:"/"},o.a.createElement("span",{className:"text-white-75"},window.settings.title?window.settings.title:"V2Board")),o.a.createElement("div",{className:"d-lg-none"},o.a.createElement("a",{className:"text-white ml-2","data-toggle":"layout","data-action":"sidebar_close",href:"javascript:void(0);",onClick:()=>this.props.dispatch({type:"layout/showNav"})},o.a.createElement("i",{className:"fa fa-times-circle"}))))),o.a.createElement("div",{className:"content-side content-side-full"},o.a.createElement("ul",{className:"nav-main"},this.state.nav.map(e=>{return this.renderMenu(e.type,e.title,e.href,e.icon)}))),o.a.createElement("div",{className:"v2board-copyright"},window.settings.title?window.settings.title:"V2Board"," v1.6.2"))}}var u=Object(l["c"])(e=>{var t=e.layout;return{layout:t}})(c),h=(n("t3Un"),n("nDCI")),f=n("yWgo"),d=window.settings.theme;class p extends o.a.Component{constructor(e){super(e),this.state={showAvatarMenu:!1,showSearchBar:!1}}componentDidMount(){var e=this.props.user.userInfo;e.email||this.props.dispatch({type:"user/getUserInfo"})}showAvatarMenu(){var e=this;this.setState({showAvatarMenu:!this.state.showAvatarMenu},()=>{document.onclick=function(t){e.state.showAvatarMenu&&e.setState({showAvatarMenu:!1}),document.onclick=void 0}})}logout(){Object(f["g"])(),s.a.push("/login")}darkMode(){"1"===Object(f["d"])("dark_mode")?(Object(h["disable"])(),Object(f["i"])("dark_mode",0)):(Object(h["enable"])({brightness:100,contrast:90,sepia:10}),Object(f["i"])("dark_mode",1)),this.forceUpdate()}render(){var e=this.props.user.userInfo;return o.a.createElement("header",{id:"page-header"},o.a.createElement("div",{className:"content-header",style:{maxWidth:"unset"}},o.a.createElement("div",{className:"sidebar-toggle",style:{display:this.props.search?"block":"none"}},o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary mr-1 d-lg-none":"btn mr-1 d-lg-none",onClick:()=>this.props.dispatch({type:"layout/showNav"})},o.a.createElement("i",{className:"fa fa-fw fa-bars"})),this.props.search&&o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary":"btn",onClick:()=>{this.setState({showSearchBar:!0})}},o.a.createElement("i",{className:"fa fa-fw fa-search"})," ",o.a.createElement("span",{className:"ml-1 d-none d-sm-inline-block"},"\u641c\u7d22"))),o.a.createElement("div",{className:"dark"===d.header?"v2board-container-title text-white":"v2board-container-title text-black"},this.props.title),o.a.createElement("div",null,o.a.createElement("div",{className:"dropdown d-inline-block"},o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary mr-1":"btn mr-1",onClick:()=>this.darkMode()},"1"===Object(f["d"])("dark_mode")?o.a.createElement("i",{className:"far fa fa-moon"}):o.a.createElement("i",{className:"far fa fa-sun"}))),this.state.loading?o.a.createElement("div",{className:"spinner-grow text-primary"}):o.a.createElement("div",{className:"dropdown d-inline-block"},o.a.createElement("button",{type:"button",className:"dark"===d.header?"btn btn-primary":"btn",id:"page-header-user-dropdown","data-toggle":"dropdown","aria-haspopup":"true","aria-expanded":"false",onClick:()=>this.showAvatarMenu()},o.a.createElement("i",{className:"far fa fa-user-circle"}),o.a.createElement("span",{className:"d-none d-lg-inline ml-1"},e.email),o.a.createElement("i",{className:"fa fa-fw fa-angle-down ml-1"})),o.a.createElement("div",{className:"dropdown-menu dropdown-menu-right dropdown-menu-lg p-0 ".concat(this.state.showAvatarMenu&&"show"),"aria-labelledby":"page-header-user-dropdown"},o.a.createElement("div",{className:"p-2"},o.a.createElement("a",{className:"dropdown-item d-flex justify-content-between align-items-center",href:"javascript:void(0);",onClick:()=>this.logout()},"\u767b\u51fa",o.a.createElement("i",{className:"fa fa-fw fa-sign-out-alt text-danger ml-1"}))))))),this.props.search&&o.a.createElement("div",{className:"overlay-header bg-dark ".concat(this.state.showSearchBar?"show":"")},o.a.createElement("div",{className:"content-header bg-dark"},o.a.createElement("div",{className:"w-100"},o.a.createElement("div",{className:"input-group"},o.a.createElement("div",{className:"input-group-prepend"},o.a.createElement("button",{type:"button",className:"btn btn-dark",onClick:()=>{this.setState({showSearchBar:!1})}},o.a.createElement("i",{className:"fa fa-fw fa-times-circle"}))),o.a.createElement("input",{type:"text",className:"form-control border-0",placeholder:this.props.search.placeholder,onChange:e=>this.props.search.onChange(e.target.value),defaultValue:this.props.search.defaultValue}))))))}}var m=Object(l["c"])(e=>{var t=e.layout,n=e.user;return{layout:t,user:n}})(p);var g=n("+Gva"),v=window.settings.theme;class y extends o.a.Component{componentDidMount(){window.scrollTo(0,0)}render(){return o.a.createElement(r["a"],{locale:g["a"]},o.a.createElement("div",{id:"page-container",className:"sidebar-o ".concat("dark"===v.sidebar?"sidebar-dark":""," ").concat("dark"===v.header?"page-header-dark":""," side-scroll page-header-fixed main-content-boxed side-trans-enabled ").concat(this.props.layout.showNav&&"sidebar-o-xs")},o.a.createElement("div",{onClick:()=>this.props.dispatch({type:"layout/showNav"}),className:"v2board-nav-mask",style:{display:this.props.layout.showNav?"block":"none"}}),o.a.createElement(u,this.props),o.a.createElement(m,{search:this.props.search,title:this.props.title}),this.props.loading?o.a.createElement("main",{id:"main-container"},o.a.createElement("div",{className:"content content-full text-center pt-5"},o.a.createElement("div",{className:"spinner-grow text-primary",role:"status"},o.a.createElement("span",{className:"sr-only"},"Loading...")))):o.a.createElement("main",{id:"main-container"},o.a.createElement("div",{className:"p-0 p-lg-4"},this.props.children))))}}t["a"]=Object(l["c"])(e=>{var t=e.layout;return{layout:t}})(y)},BnQZ:function(e,t,n){var r=n("2a/h"),i=n("gL7N")("iterator"),o=n("yw4e");e.exports=n("bV5f").getIteratorMethod=function(e){if(void 0!=e)return e[i]||e["@@iterator"]||o[r(e)]}},Bq2U:function(e,t,n){"use strict";var r={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return.5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return 0===e?0:Math.pow(1024,e-1)},exponentialOut:function(e){return 1===e?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return 0===e?0:1===e?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(2-Math.pow(2,-10*(e-1)))},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r))},elasticOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return 0===e?0:1===e?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*-.5:n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?e*e*((t+1)*e-t)*.5:.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-r.bounceOut(1-e)},bounceOut:function(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},bounceInOut:function(e){return e<.5?.5*r.bounceIn(2*e):.5*r.bounceOut(2*e-1)+.5}},i=r,o=n("bYtY"),a=n("s2Iz"),s=function(){function e(e){this._inited=!1,this._startTime=0,this._pausedTime=0,this._paused=!1,this._life=e.life||1e3,this._delay=e.delay||0,this.loop=e.loop||!1,this.onframe=e.onframe||o["G"],this.ondestroy=e.ondestroy||o["G"],this.onrestart=e.onrestart||o["G"],e.easing&&this.setEasing(e.easing)}return e.prototype.step=function(e,t){if(this._inited||(this._startTime=e+this._delay,this._inited=!0),!this._paused){var n=this._life,r=e-this._startTime-this._pausedTime,i=r/n;i<0&&(i=0),i=Math.min(i,1);var o=this.easingFunc,a=o?o(i):i;if(this.onframe(a),1===i){if(!this.loop)return!0;var s=r%n;this._startTime=e-s,this._pausedTime=0,this.onrestart()}return!1}this._pausedTime+=t},e.prototype.pause=function(){this._paused=!0},e.prototype.resume=function(){this._paused=!1},e.prototype.setEasing=function(e){this.easing=e,this.easingFunc=Object(o["u"])(e)?e:i[e]||Object(a["a"])(e)},e}(),l=s,c=n("Qe9p"),u=n("einR");n.d(t,"a",function(){return b});var h=Array.prototype.slice;function f(e,t,n){return(t-e)*n+e}function d(e,t,n,r){for(var i=t.length,o=0;or?t:e,o=Math.min(n,r),a=i[o-1]||{color:[0,0,0,0],offset:0},s=o;sa;if(s)r.length=a;else for(var l=o;l=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(e,t,n){this._needsSort=!0;var r=this.keyframes,s=r.length,l=!1,h=T,f=t;if(Object(o["s"])(t)){var d=x(t);h=d,(1===d&&!Object(o["w"])(t[0])||2===d&&!Object(o["w"])(t[0][0]))&&(l=!0)}else if(Object(o["w"])(t)&&!Object(o["k"])(t))h=_;else if(Object(o["y"])(t))if(isNaN(+t)){var p=c["d"](t);p&&(f=p,h=C)}else h=_;else if(Object(o["v"])(t)){var m=Object(o["l"])({},f);m.colorStops=Object(o["D"])(t.colorStops,function(e){return{offset:e.offset,color:c["d"](e.color)}}),Object(u["m"])(t)?h=k:Object(u["o"])(t)&&(h=O),f=m}0===s?this.valType=h:h===this.valType&&h!==T||(l=!0),this.discrete=this.discrete||l;var g={time:e,value:f,rawValue:t,percent:0};return n&&(g.easing=n,g.easingFunc=Object(o["u"])(n)?n:i[n]||Object(a["a"])(n)),r.push(g),g},e.prototype.prepare=function(e,t){var n=this.keyframes;this._needsSort&&n.sort(function(e,t){return e.time-t.time});for(var r=this.valType,i=n.length,o=n[i-1],a=this.discrete,s=P(r),l=A(r),c=0;c=0;n--)if(c[n].percent<=t)break;n=v(n,u-2)}else{for(n=g;nt)break;n=v(n-1,u-2)}i=c[n+1],r=c[n]}if(r&&i){this._lastFr=n,this._lastFrP=t;var b=i.percent-r.percent,x=0===b?1:v((t-r.percent)/b,1);i.easingFunc&&(x=i.easingFunc(x));var _=a?this._additiveValue:m?M:e[h];if(!P(l)&&!m||_||(_=this._additiveValue=[]),this.discrete)e[h]=x<1?r.rawValue:i.rawValue;else if(P(l))l===E?d(_,r[s],i[s],x):p(_,r[s],i[s],x);else if(A(l)){var S=r[s],O=i[s],T=l===k;e[h]={type:T?"linear":"radial",x:f(S.x,O.x,x),y:f(S.y,O.y,x),colorStops:Object(o["D"])(S.colorStops,function(e,t){var n=O.colorStops[t];return{offset:f(e.offset,n.offset,x),color:w(d([],e.color,n.color,x))}}),global:O.global},T?(e[h].x2=f(S.x2,O.x2,x),e[h].y2=f(S.y2,O.y2,x)):e[h].r=f(S.r,O.r,x)}else if(m)d(_,r[s],i[s],x),a||(e[h]=w(_));else{var R=f(r[s],i[s],x);a?this._additiveValue=R:e[h]=R}a&&this._addToTarget(e)}}},e.prototype._addToTarget=function(e){var t=this.valType,n=this.propName,r=this._additiveValue;t===_?e[n]=e[n]+r:t===C?(c["d"](e[n],M),m(M,M,r,1),e[n]=w(M)):t===E?m(e[n],e[n],r,1):t===S&&g(e[n],e[n],r,1)},e}(),j=function(){function e(e,t,n,r){this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=e,this._loop=t,t&&r?Object(o["C"])("Can' use additive animation on looped animation."):(this._additiveAnimators=r,this._allowDiscrete=n)}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(e){this._target=e},e.prototype.when=function(e,t,n){return this.whenWithKeys(e,t,Object(o["B"])(t),n)},e.prototype.whenWithKeys=function(e,t,n,r){for(var i=this._tracks,o=0;o0&&s.addKeyframe(0,b(l),r),this._trackKeys.push(a)}s.addKeyframe(e,b(t[a]),r)}return this._maxTime=Math.max(this._maxTime,e),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(e){return this._maxTime=e,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var e=this._doneCbs;if(e)for(var t=e.length,n=0;n0)){this._started=1;for(var t=this,n=[],r=this._maxTime||0,i=0;i1){var s=a.pop();i.addKeyframe(s.time,e[r]),i.prepare(this._maxTime,i.getAdditiveTrack())}}}},e}();t["b"]=j},BsWD:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("a3WO");function i(e,t){if(e){if("string"===typeof e)return Object(r["a"])(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)?Object(r["a"])(e,t):void 0}}},Bus3:function(e,t,n){n("Jaki")("Int8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},Bz7s:function(e,t,n){n("8Z/V")&&"g"!=/./g.flags&&n("V5/1").f(RegExp.prototype,"flags",{configurable:!0,get:n("7tNx")})},CTsd:function(e,t,n){var r=n("OeOC"),i=n("9HFh").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(e){return a.slice()}};e.exports.f=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(r(e))}},CfL3:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("8BMt"),o="number";e.exports=function(e){if("string"!==e&&e!==o&&"default"!==e)throw TypeError("Incorrect hint");return i(r(this),e!=o)}},CgOb:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("BoS7"),n("Sdc0")),a=(n("5Dmo"),n("3S7+")),s=(n("Pwec"),n("CtXQ")),l=(n("OaEy"),n("2fM7")),c=(n("iQDF"),n("+eQT")),u=(n("5NDa"),n("5rEg")),h=n("p0pE"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("/MKj"),g=n("wd/R"),v=n.n(g);class y extends p.a.Component{constructor(e){super(e),this.state={visible:!1}}show(){this.props.userId&&this.setState({visible:!0},()=>{this.props.dispatch({type:"user/getUserInfoById",id:this.props.userId})})}hide(){this.setState({visible:!1},()=>{this.props.dispatch({type:"user/setState",payload:{user:{}}})})}formChange(e,t){this.props.dispatch({type:"user/setState",payload:{user:f()({},this.props.user.user,{[e]:t})}})}submit(){var e=f()({},this.props.user.user);this.props.dispatch({type:"user/update",params:e,callback:()=>{this.hide()}})}render(){var e=this.props.user,t=e.user,n=e.updateLoading,h=this.props.plan.plans,f=this.state.visible;return p.a.createElement(p.a.Fragment,null,p.a.cloneElement(this.props.children,{onClick:()=>this.show()}),p.a.createElement(r["a"],{id:"user",width:"80%",title:"\u7528\u6237\u7ba1\u7406",visible:f,onClose:()=>this.hide(),cancelText:"\u53d6\u6d88"},t.email?p.a.createElement("div",null,p.a.createElement("div",null,p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u90ae\u7bb1"),p.a.createElement(u["a"],{placeholder:"\u8bf7\u8f93\u5165\u90ae\u7bb1",defaultValue:t.email,onChange:e=>this.formChange("email",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u9080\u8bf7\u4eba\u90ae\u7bb1"),p.a.createElement(u["a"],{placeholder:"\u8bf7\u8f93\u5165\u9080\u8bf7\u4eba\u90ae\u7bb1",defaultValue:t.invite_user_email,onChange:e=>this.formChange("invite_user_email",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u5bc6\u7801"),p.a.createElement(u["a"],{defaultValue:t.password,placeholder:"\u5982\u9700\u4fee\u6539\u5bc6\u7801\u8bf7\u8f93\u5165",onChange:e=>this.formChange("password",e.target.value)})),p.a.createElement("div",{className:"row"},p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u4f59\u989d"),p.a.createElement(u["a"],{type:"number",addonAfter:"\xa5",placeholder:"\u4f59\u989d",defaultValue:t.balance,onChange:e=>this.formChange("balance",e.target.value)})),p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u63a8\u5e7f\u4f63\u91d1"),p.a.createElement(u["a"],{type:"number",addonAfter:"\xa5",placeholder:"\u63a8\u5e7f\u4f63\u91d1",defaultValue:t.commission_balance,onChange:e=>this.formChange("commission_balance",e.target.value)}))),p.a.createElement("div",{className:"row"},p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u5df2\u7528\u4e0a\u884c"),p.a.createElement(u["a"],{type:"number",addonAfter:"GB",placeholder:"\u5df2\u7528\u4e0a\u884c",defaultValue:t.u,onChange:e=>this.formChange("u",e.target.value)})),p.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},p.a.createElement("label",null,"\u5df2\u7528\u4e0b\u884c"),p.a.createElement(u["a"],{type:"number",addonAfter:"GB",placeholder:"\u5df2\u7528\u4e0b\u884c",defaultValue:t.d,onChange:e=>this.formChange("d",e.target.value)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u6d41\u91cf"),p.a.createElement(u["a"],{type:"number",addonAfter:"GB",defaultValue:t.transfer_enable,placeholder:"\u8bf7\u8f93\u5165\u6d41\u91cf",onChange:e=>this.formChange("transfer_enable",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u5230\u671f\u65f6\u95f4"),p.a.createElement("div",null,p.a.createElement(c["a"],{placeholder:"\u957f\u671f\u6709\u6548",defaultValue:null!==t.expired_at&&v()(1e3*t.expired_at),style:{width:"100%"},onChange:e=>this.formChange("expired_at",e?e.format("X"):null)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u8ba2\u9605\u8ba1\u5212"),p.a.createElement(l["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u8ba2\u9605\u8ba1\u5212",style:{width:"100%"},defaultValue:t.plan_id||null,onChange:e=>this.formChange("plan_id",e)},p.a.createElement(l["a"].Option,{value:null},"\u65e0"),h.map(e=>{return p.a.createElement(l["a"].Option,{key:Math.random(),value:e.id},e.name)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u8d26\u6237\u72b6\u6001"),p.a.createElement(l["a"],{style:{width:"100%"},defaultValue:t.banned?1:0,onChange:e=>this.formChange("banned",e)},p.a.createElement(l["a"].Option,{key:1,value:1},"\u5c01\u7981"),p.a.createElement(l["a"].Option,{key:0,value:0},"\u6b63\u5e38"))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u63a8\u8350\u8fd4\u5229\u7c7b\u578b"),p.a.createElement(l["a"],{style:{width:"100%"},defaultValue:parseInt(t.commission_type),onChange:e=>this.formChange("commission_type",e)},p.a.createElement(l["a"].Option,{key:0,value:0},"\u8ddf\u968f\u7cfb\u7edf\u8bbe\u7f6e"),p.a.createElement(l["a"].Option,{key:1,value:1},"\u5faa\u73af\u8fd4\u5229"),p.a.createElement(l["a"].Option,{key:2,value:2},"\u9996\u6b21\u8fd4\u5229"))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u63a8\u8350\u8fd4\u5229\u6bd4\u4f8b"),p.a.createElement(u["a"],{addonAfter:"%",defaultValue:t.commission_rate,placeholder:"\u8bf7\u8f93\u5165\u63a8\u8350\u8fd4\u5229\u6bd4\u4f8b(\u4e3a\u7a7a\u5219\u8ddf\u968f\u7ad9\u70b9\u8bbe\u7f6e\u8fd4\u5229\u6bd4\u4f8b)",onChange:e=>this.formChange("commission_rate",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u4e13\u4eab\u6298\u6263\u6bd4\u4f8b ",p.a.createElement(a["a"],{placement:"top",title:"\u8bbe\u7f6e\u540e\u8be5\u7528\u6237\u8d2d\u4e70\u4efb\u4f55\u8ba2\u9605\u5c06\u59cb\u7ec8\u4eab\u53d7\u8be5\u6298\u6263"},p.a.createElement(s["a"],{type:"question-circle"}))),p.a.createElement(u["a"],{addonAfter:"%",defaultValue:t.discount,placeholder:"\u8bf7\u8f93\u5165\u4e13\u4eab\u6298\u6263\u6bd4\u4f8b",onChange:e=>this.formChange("discount",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u9650\u901f"),p.a.createElement(u["a"],{addonAfter:"Mbps",defaultValue:t.speed_limit,placeholder:"\u7559\u7a7a\u5219\u4e0d\u9650\u5236",onChange:e=>this.formChange("speed_limit",e.target.value)})),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{for:"example-text-input-alt"},"\u662f\u5426\u7ba1\u7406\u5458"),p.a.createElement("div",null,p.a.createElement(o["a"],{checked:t.is_admin,onChange:e=>this.formChange("is_admin",e?1:0)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u662f\u5426\u5458\u5de5"),p.a.createElement("div",null,p.a.createElement(o["a"],{checked:t.is_staff,onChange:e=>this.formChange("is_staff",e?1:0)}))),p.a.createElement("div",{className:"form-group"},p.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5907\u6ce8"),p.a.createElement("div",null,p.a.createElement(u["a"].TextArea,{rows:4,placeholder:"\u8bf7\u5728\u8fd9\u91cc\u8bb0\u5f55..",defaultValue:t.remarks,onChange:e=>this.formChange("remarks",e.target.value)})))),p.a.createElement("div",{className:"v2board-drawer-action"},p.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.hide()},"\u53d6\u6d88"),p.a.createElement(i["a"],{disabled:n,loading:n,onClick:()=>this.submit(),type:"primary"},"\u63d0\u4ea4"))):p.a.createElement(s["a"],{type:"loading",style:{fontSize:24,color:"#415A94"}})))}}t["a"]=Object(m["c"])(e=>{var t=e.user,n=e.plan;return{user:t,plan:n}})(y)},Cit5:function(e,t,n){"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t["default"]=e,t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var a=i(n("q1tI")),s=i(n("17x9")),l=o(n("TSYQ")),c=n("6Ogq"),u=o(n("UNrv"));function h(e,t){var n=t.table,i=n.props,o=i.prefixCls,s=i.scroll,h=i.showHeader,f=e.columns,d=e.fixed,p=e.tableClassName,m=e.handleBodyScrollLeft,g=e.expander,v=n.saveRef,y=n.props.useFixedHeader,b={},w=c.measureScrollbar({direction:"vertical"});if(s.y){y=!0;var x=c.measureScrollbar({direction:"horizontal",prefixCls:o});x>0&&!d&&(b.marginBottom="-".concat(x,"px"),b.paddingBottom="0px",b.minWidth="".concat(w,"px"),b.overflowX="scroll",b.overflowY=0===w?"hidden":"scroll")}return y&&h?a.createElement("div",{key:"headTable",ref:d?null:v("headTable"),className:l.default("".concat(o,"-header"),r({},"".concat(o,"-hide-scrollbar"),w>0)),style:b,onScroll:m},a.createElement(u.default,{tableClassName:p,hasHead:!0,hasBody:!1,fixed:d,columns:f,expander:g})):null}t.default=h,h.contextTypes={table:s.any}},CnBM:function(e,t,n){"use strict";var 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};function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function a(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=n("q1tI"),l=n("17x9"),c=[],u=[];function h(e){return"object"===r(n.m)&&e().every(function(e){return"undefined"!==typeof e&&"undefined"!==typeof n.m[e]})}function f(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then(function(e){return n.loading=!1,n.loaded=e,e}).catch(function(e){throw n.loading=!1,n.error=e,e}),n}function d(e){var t={loading:!1,loaded:{},error:null},n=[];try{Object.keys(e).forEach(function(r){var i=f(e[r]);i.loading?t.loading=!0:(t.loaded[r]=i.loaded,t.error=i.error),n.push(i.promise),i.promise.then(function(e){t.loaded[r]=e}).catch(function(e){t.error=e})})}catch(e){t.error=e}return t.promise=Promise.all(n).then(function(e){return t.loading=!1,e}).catch(function(e){throw t.loading=!1,e}),t}function p(e){return e&&e.__esModule?e.default:e}function m(e,t){return s.createElement(p(e),t)}function g(e,t){var n,r;if(!t.loading)throw new Error("react-loadable requires a `loading` component");var f=Object.assign({loader:null,loading:null,delay:200,timeout:null,render:m,webpack:null,modules:null},t),d=null;function p(){return d||(d=e(f.loader)),d.promise}return c.push(p),"function"===typeof f.webpack&&u.push(function(){if(h(f.webpack))return p()}),r=n=function(t){function n(r){i(this,n);var a=o(this,t.call(this,r));return a.retry=function(){a.setState({error:null,loading:!0,timedOut:!1}),d=e(f.loader),a._loadModule()},p(),a.state={error:d.error,pastDelay:!1,timedOut:!1,loading:d.loading,loaded:d.loaded},a}return a(n,t),n.preload=function(){return p()},n.prototype.componentWillMount=function(){this._mounted=!0,this._loadModule()},n.prototype._loadModule=function(){var e=this;if(this.context.loadable&&Array.isArray(f.modules)&&f.modules.forEach(function(t){e.context.loadable.report(t)}),d.loading){"number"===typeof f.delay&&(0===f.delay?this.setState({pastDelay:!0}):this._delay=setTimeout(function(){e.setState({pastDelay:!0})},f.delay)),"number"===typeof f.timeout&&(this._timeout=setTimeout(function(){e.setState({timedOut:!0})},f.timeout));var t=function(){e._mounted&&(e.setState({error:d.error,loaded:d.loaded,loading:d.loading}),e._clearTimeouts())};d.promise.then(function(){t()}).catch(function(e){t()})}},n.prototype.componentWillUnmount=function(){this._mounted=!1,this._clearTimeouts()},n.prototype._clearTimeouts=function(){clearTimeout(this._delay),clearTimeout(this._timeout)},n.prototype.render=function(){return this.state.loading||this.state.error?s.createElement(f.loading,{isLoading:this.state.loading,pastDelay:this.state.pastDelay,timedOut:this.state.timedOut,error:this.state.error,retry:this.retry}):this.state.loaded?f.render(this.state.loaded,this.props):null},n}(s.Component),n.contextTypes={loadable:l.shape({report:l.func.isRequired})},r}function v(e){return g(f,e)}function y(e){if("function"!==typeof e.render)throw new Error("LoadableMap requires a `render(loaded, props)` function");return g(d,e)}v.Map=y;var b=function(e){function t(){return i(this,t),o(this,e.apply(this,arguments))}return a(t,e),t.prototype.getChildContext=function(){return{loadable:{report:this.props.report}}},t.prototype.render=function(){return s.Children.only(this.props.children)},t}(s.Component);function w(e){var t=[];while(e.length){var n=e.pop();t.push(n())}return Promise.all(t).then(function(){if(e.length)return w(e)})}b.propTypes={report:l.func.isRequired},b.childContextTypes={loadable:l.shape({report:l.func.isRequired}).isRequired},v.Capture=b,v.preloadAll=function(){return new Promise(function(e,t){w(c).then(e,t)})},v.preloadReady=function(){return new Promise(function(e,t){w(u).then(e,e)})},e.exports=v},Crw4:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=M;var r=o(n("q1tI")),i=n("6YkS");function o(e){return e&&e.__esModule?e:{default:e}}function a(e){"@babel/helpers - typeof";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 s(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function l(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){s(o,r,i,a,l,"next",e)}function l(e){s(o,r,i,a,l,"throw",e)}a(void 0)})}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function S(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}var C={get:function(e){return e._routeInternalComponent},has:function(e){return void 0!==e._routeInternalComponent},set:function(e,t){e._routeInternalComponent=t}},k=function(e){var t=e.path,n=e.exact,o=e.strict,a=e.render,s=e.location,l=e.sensitive,c=E(e,["path","exact","strict","render","location","sensitive"]);return r.default.createElement(i.Route,{path:t,exact:n,strict:o,location:s,sensitive:l,render:function(e){return a(x({},e,{},c))}})};function O(e){var t={};return t}function T(e){if(C.has(e))return C.get(e);var t=e.Routes,n=t.length-1,i=function(e){var t=e.render,n=E(e,["render"]);return t(n)},o=function(){var e=t[n],o=i;i=function(t){return r.default.createElement(e,t,r.default.createElement(o,t))},n-=1};while(n>=0)o();var a=function(t){var n=t.render,o=E(t,["render"]);return r.default.createElement(k,b({},o,{render:function(t){return r.default.createElement(i,b({},t,{route:e,render:n}))}}))};return C.set(e,a),a}var A=!1;function P(e,t){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return n=function(n){f(a,n);var o=p(a);function a(e){var t;return c(this,a),t=o.call(this,e),t.wrappedWithInitialProps=!0,t.state={extraProps:x({},i)},A||(A=!window.g_useSSR||e.history&&"POP"!==e.history.action),t}return h(a,[{key:"componentDidMount",value:function(){var e=l(regeneratorRuntime.mark(function e(){return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:A&&this.getInitialProps();case 1:case"end":return e.stop()}},e,this)}));function t(){return e.apply(this,arguments)}return t}()},{key:"componentDidUpdate",value:function(e){var t=this.props.location;e.location.pathname!==t.pathname&&(A=!0,this.getInitialProps())}},{key:"componentWillUnmount",value:function(){A=!0}},{key:"getInitialProps",value:function(){var n=l(regeneratorRuntime.mark(function n(){var r,i,o,a,s;return regeneratorRuntime.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=this.props,i=r.match,o=r.location,a=this.state.extraProps,this.setState({extraProps:x({},a,{fetchingProps:!0})}),n.next=5,e.getInitialProps(x({isServer:!1,route:i,location:o,prevInitialProps:a},t));case 5:if(n.t0=n.sent,n.t0){n.next=8;break}n.t0={};case 8:s=n.t0,s.fetchingProps=!1,this.setState({extraProps:s});case 11:case"end":return n.stop()}},n,this)}));function r(){return n.apply(this,arguments)}return r}()},{key:"render",value:function(){return r.default.createElement(e,x({},this.props,{},this.state.extraProps))}}]),a}(r.default.Component),n}function M(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=n("PszG");return e?r.default.createElement(i.Switch,o,e.map(function(e,n){if(e.redirect)return r.default.createElement(i.Redirect,{key:e.key||n,from:e.path,to:e.redirect,exact:e.exact,strict:e.strict});var o=e.Routes?T(e):k;return r.default.createElement(o,{key:e.key||n,path:e.path,exact:e.exact,strict:e.strict,sensitive:e.sensitive,render:function(n){var i=n.location;A&&(t={});var o=M(e.routes,t,{location:i});if(e.component){var s=O(x({},n,{},t)),l=a.apply("modifyRouteProps",{initialValue:x({},n,{},t,{},s),args:{route:e}}),c=e.component;if(c.getInitialProps){var u=a.apply("modifyInitialProps",{initialValue:{}});c.wrappedWithInitialProps||(c=P(c,u,t),e.component=c)}return r.default.createElement(c,b({key:e.path},l,{route:e}),o)}return o}})})):null}},Ctgt:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("VCL8");function l(){return l=Object.assign||function(e){for(var t=1;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function u(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function f(e,t){for(var n=0;n1?arguments[1]:void 0,3);while(n=n?n.n:this._f){r(n.v,n.k,this);while(n&&n.r)n=n.p}},has:function(e){return!!g(p(this,t),e)}}),f&&r(u.prototype,"size",{get:function(){return p(this,t)[m]}}),u},def:function(e,t,n){var r,i,o=g(e,t);return o?o.v=n:(e._l=o={i:i=d(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=o),r&&(r.n=o),e[m]++,"F"!==i&&(e._i[i]=o)),e},getEntry:g,setStrong:function(e,t,n){c(e,t,function(e,n){this._t=p(e,t),this._k=n,this._l=void 0},function(){var e=this,t=e._k,n=e._l;while(n&&n.r)n=n.p;return e._t&&(e._l=n=n?n.n:e._t._f)?u(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(e._t=void 0,u(1))},n?"entries":"values",!n,!0),h(t)}}},CxY0:function(e,t,n){"use strict";var r=n("GYWy"),i=n("Nehr");function o(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}t.parse=x,t.resolve=E,t.resolveObject=S,t.format=_,t.Url=o;var a=/^([a-z0-9.+-]+:)/i,s=/:[0-9]*$/,l=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,c=["<",">",'"',"`"," ","\r","\n","\t"],u=["{","}","|","\\","^","`"].concat(c),h=["'"].concat(u),f=["%","/","?",";","#"].concat(h),d=["/","?","#"],p=255,m=/^[+a-z0-9A-Z_-]{0,63}$/,g=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,v={javascript:!0,"javascript:":!0},y={javascript:!0,"javascript:":!0},b={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=n("s4NR");function x(e,t,n){if(e&&i.isObject(e)&&e instanceof o)return e;var r=new o;return r.parse(e,t,n),r}function _(e){return i.isString(e)&&(e=x(e)),e instanceof o?e.format():o.prototype.format.call(e)}function E(e,t){return x(e,!1,!0).resolve(t)}function S(e,t){return e?x(e,!1,!0).resolveObject(t):t}o.prototype.parse=function(e,t,n){if(!i.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var o=e.indexOf("?"),s=-1!==o&&o127?D+="x":D+=L[N];if(!D.match(m)){var $=R.slice(0,A),F=R.slice(A+1),B=L.match(g);B&&($.push(B[1]),F.unshift(B[2])),F.length&&(x="/"+F.join(".")+x),this.hostname=$.join(".");break}}}this.hostname.length>p?this.hostname="":this.hostname=this.hostname.toLowerCase(),M||(this.hostname=r.toASCII(this.hostname));var V=this.port?":"+this.port:"",W=this.hostname||"";this.host=W+V,this.href+=this.host,M&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==x[0]&&(x="/"+x))}if(!v[S])for(A=0,j=h.length;A0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return n.search=e.search,n.query=e.query,i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!E.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var k=E.slice(-1)[0],O=(n.host||e.host||E.length>1)&&("."===k||".."===k)||""===k,T=0,A=E.length;A>=0;A--)k=E[A],"."===k?E.splice(A,1):".."===k?(E.splice(A,1),T++):T&&(E.splice(A,1),T--);if(!x&&!_)for(;T--;T)E.unshift("..");!x||""===E[0]||E[0]&&"/"===E[0].charAt(0)||E.unshift(""),O&&"/"!==E.join("/").substr(-1)&&E.push("");var P=""===E[0]||E[0]&&"/"===E[0].charAt(0);if(S){n.hostname=n.host=P?"":E.length?E.shift():"";C=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@");C&&(n.auth=C.shift(),n.host=n.hostname=C.shift())}return x=x||n.host&&E.length,x&&!P&&E.unshift(""),E.length?n.pathname=E.join("/"):(n.pathname=null,n.path=null),i.isNull(n.pathname)&&i.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n},o.prototype.parseHost=function(){var e=this.host,t=s.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},D8kY:function(e,t,n){var r=n("Ojgd"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},DBt0:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("il4q"),o=n("OsVd"),a=n("AUWw"),s=n("ETUh"),l=n("bsDr"),c=Math.max,u=Math.min,h=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g,p=function(e){return void 0===e?e:String(e)};n("h7Gi")("replace",2,function(e,t,n,m){return[function(r,i){var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},function(e,t){var i=m(n,e,this,t);if(i.done)return i.value;var h=r(e),f=String(this),d="function"===typeof t;d||(t=String(t));var v=h.global;if(v){var y=h.unicode;h.lastIndex=0}var b=[];while(1){var w=l(h,f);if(null===w)break;if(b.push(w),!v)break;var x=String(w[0]);""===x&&(h.lastIndex=s(f,o(h.lastIndex),y))}for(var _="",E=0,S=0;S=E&&(_+=f.slice(E,k)+M,E=k+C.length)}return _+f.slice(E)}];function g(e,t,r,o,a,s){var l=r+e.length,c=o.length,u=d;return void 0!==a&&(a=i(a),u=f),n.call(s,u,function(n,i){var s;switch(i.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(l);case"<":s=a[i.slice(1,-1)];break;default:var u=+i;if(0===u)return n;if(u>c){var f=h(u/10);return 0===f?n:f<=c?void 0===o[f-1]?i.charAt(1):o[f-1]+i.charAt(1):n}s=o[u-1]}return void 0===s?"":s})}})},DFAo:function(e,t,n){"use strict";n("Bz7s");var r=n("7vYJ"),i=n("7tNx"),o=n("8Z/V"),a="toString",s=/./[a],l=function(e){n("rKIl")(RegExp.prototype,a,e,!0)};n("wUWy")(function(){return"/a/b"!=s.call({source:"a",flags:"b"})})?l(function(){var e=r(this);return"/".concat(e.source,"/","flags"in e?e.flags:!o&&e instanceof RegExp?i.call(e):void 0)}):s.name!=a&&l(function(){return s.call(this)})},DIcO:function(e,t,n){var r=n("gL7N")("unscopables"),i=Array.prototype;void 0==i[r]&&n("VPOE")(i,r,{}),e.exports=function(e){i[r][e]=!0}},DN2a:function(e,t){window.MutationObserver||(window.MutationObserver=function(e){function t(e){this.i=[],this.m=e}function n(e){(function n(){var r=e.takeRecords();r.length&&e.m(r,e),e.h=setTimeout(n,t._period)})()}function r(t){var n,r={type:null,target:null,addedNodes:[],removedNodes:[],previousSibling:null,nextSibling:null,attributeName:null,attributeNamespace:null,oldValue:null};for(n in t)r[n]!==e&&t[n]!==e&&(r[n]=t[n]);return r}function i(e,t){var n=c(e,t);return function(i){var o=i.length;if(t.a&&3===e.nodeType&&e.nodeValue!==n.a&&i.push(new r({type:"characterData",target:e,oldValue:n.a})),t.b&&n.b&&s(i,e,n.b,t.f),t.c||t.g)var a=l(i,e,n,t);(a||i.length!==o)&&(n=c(e,t))}}function o(e,t){return t.value}function a(e,t){return"style"!==t.name?t.value:e.style.cssText}function s(t,n,i,o){for(var a,s,l={},c=n.attributes,u=c.length;u--;)a=c[u],s=a.name,o&&o[s]===e||(m(n,a)!==i[s]&&t.push(r({type:"attributes",target:n,attributeName:s,oldValue:i[s],attributeNamespace:a.namespaceURI})),l[s]=!0);for(s in i)l[s]||t.push(r({target:n,type:"attributes",attributeName:s,oldValue:i[s]}))}function l(t,n,i,o){function a(e,n,i,a,c){var u,h,f,d=e.length-1;for(c=-~((d-c)/2);f=e.pop();)u=i[f.j],h=a[f.l],o.c&&c&&Math.abs(f.j-f.l)>=d&&(t.push(r({type:"childList",target:n,addedNodes:[u],removedNodes:[u],nextSibling:u.nextSibling,previousSibling:u.previousSibling})),c--),o.b&&h.b&&s(t,u,h.b,o.f),o.a&&3===u.nodeType&&u.nodeValue!==h.a&&t.push(r({type:"characterData",target:u,oldValue:h.a})),o.g&&l(u,h)}function l(n,i){for(var h,f,p,m,g,v=n.childNodes,y=i.c,b=v.length,w=y?y.length:0,x=0,_=0,E=0;_2&&l.push(t),t=[e,n]}function p(e,n,r,i){v(e,r)&&v(n,i)||t.push(e,n,r,i,r,i)}function m(e,n,r,i,o,a){var s=Math.abs(n-e),l=4*Math.tan(s/4)/3,c=nk:A2&&l.push(t),l}function b(e,t,n,i,o,a,s,l,c,u){if(v(e,n)&&v(t,i)&&v(o,s)&&v(a,l))c.push(s,l);else{var h=2/u,f=h*h,d=s-e,p=l-t,m=Math.sqrt(d*d+p*p);d/=m,p/=m;var g=n-e,y=i-t,w=o-s,x=a-l,_=g*g+y*y,E=w*w+x*x;if(_=0&&O=0)c.push(s,l);else{var T=[],A=[];Object(r["g"])(e,n,o,s,.5,T),Object(r["g"])(t,i,a,l,.5,A),b(T[0],A[0],T[1],A[1],T[2],A[2],T[3],A[3],c,u),b(T[4],A[4],T[5],A[5],T[6],A[6],T[7],A[7],c,u)}}}}function w(e,t){var n=y(e),r=[];t=t||1;for(var i=0;i0)for(c=0;cMath.abs(c),h=x([l,c],u?0:1,t),f=(u?s:c)/h.length,d=0;di,a=x([r,i],o?0:1,t),s=o?"width":"height",l=o?"height":"width",c=o?"x":"y",u=o?"y":"x",h=e[s]/a.length,f=0;f1?null:new h["a"](g*l+e,g*c+t)}function k(e,t,n){var r=new h["a"];h["a"].sub(r,n,t),r.normalize();var i=new h["a"];h["a"].sub(i,e,t);var o=i.dot(r);return o}function O(e,t){var n=e[e.length-1];n&&n[0]===t[0]&&n[1]===t[1]||e.push(t)}function T(e,t,n){for(var r=e.length,i=[],o=0;oa?(f.x=d.x=s+o/2,f.y=l,d.y=l+a):(f.y=d.y=l+a/2,f.x=s,d.x=s+o),T(t,f,d)}function P(e,t,n,r){if(1===n)r.push(t);else{var i=Math.floor(n/2),o=e(t);P(e,o[0],i,r),P(e,o[1],n-i,r)}return r}function M(e,t){for(var n=[],r=0;r0)for(var x=r/n,_=-r/2;_<=r/2;_+=x){var E=Math.sin(_),S=Math.cos(_),C=0;for(b=0;b0;c/=2){var u=0,h=0;(e&c)>0&&(u=1),(t&c)>0&&(h=1),l+=c*c*(3*u^h),0===h&&(1===u&&(e=c-1-e,t=c-1-t),s=e,e=t,t=s)}return l}function X(e){var t=1/0,n=1/0,r=-1/0,i=-1/0,a=Object(o["D"])(e,function(e){var o=e.getBoundingRect(),a=e.getComputedTransform(),s=o.x+o.width/2+(a?a[4]:0),l=o.y+o.height/2+(a?a[5]:0);return t=Math.min(s,t),n=Math.min(l,n),r=Math.max(s,r),i=Math.max(l,i),[s,l]}),s=Object(o["D"])(a,function(o,a){return{cp:o,z:Y(o[0],o[1],t,n,r,i),path:e[a]}});return s.sort(function(e,t){return e.z-t.z}).map(function(e){return e.path})}function Q(e){return L(e.path,e.count)}function Z(){return{fromIndividuals:[],toIndividuals:[],count:0}}function J(e,t,n){var r=[];function a(e){for(var t=0;t=0?t:0)+"#"+e)},b=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,s.default)(f.canUseDOM,"Hash history needs a DOM");var t=window.history,n=(0,f.supportsGoWithoutReloadUsingHash)(),i=e.getUserConfirmation,a=void 0===i?f.getConfirmation:i,u=e.hashType,d=void 0===u?"slash":u,b=e.basename?(0,c.stripTrailingSlash)((0,c.addLeadingSlash)(e.basename)):"",w=m[d],x=w.encodePath,_=w.decodePath,E=function(){var e=_(g());return(0,o.default)(!b||(0,c.hasBasename)(e,b),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+b+'".'),b&&(e=(0,c.stripBasename)(e,b)),(0,l.createLocation)(e)},S=(0,h.default)(),C=function(e){r(q,e),q.length=t.length,S.notifyListeners(q.location,q.action)},k=!1,O=null,T=function(){var e=g(),t=x(e);if(e!==t)y(t);else{var n=E(),r=q.location;if(!k&&(0,l.locationsAreEqual)(r,n))return;if(O===(0,c.createPath)(n))return;O=null,A(n)}},A=function(e){if(k)k=!1,C();else{var t="POP";S.confirmTransitionTo(e,t,a,function(n){n?C({action:t,location:e}):P(e)})}},P=function(e){var t=q.location,n=L.lastIndexOf((0,c.createPath)(t));-1===n&&(n=0);var r=L.lastIndexOf((0,c.createPath)(e));-1===r&&(r=0);var i=n-r;i&&(k=!0,$(i))},M=g(),R=x(M);M!==R&&y(R);var j=E(),L=[(0,c.createPath)(j)],D=function(e){return"#"+x(b+(0,c.createPath)(e))},N=function(e,t){(0,o.default)(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=(0,l.createLocation)(e,void 0,void 0,q.location);S.confirmTransitionTo(r,n,a,function(e){if(e){var t=(0,c.createPath)(r),i=x(b+t),a=g()!==i;if(a){O=t,v(i);var s=L.lastIndexOf((0,c.createPath)(q.location)),l=L.slice(0,-1===s?0:s+1);l.push(t),L=l,C({action:n,location:r})}else(0,o.default)(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),C()}})},I=function(e,t){(0,o.default)(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=(0,l.createLocation)(e,void 0,void 0,q.location);S.confirmTransitionTo(r,n,a,function(e){if(e){var t=(0,c.createPath)(r),i=x(b+t),o=g()!==i;o&&(O=t,y(i));var a=L.indexOf((0,c.createPath)(q.location));-1!==a&&(L[a]=t),C({action:n,location:r})}})},$=function(e){(0,o.default)(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},F=function(){return $(-1)},B=function(){return $(1)},V=0,W=function(e){V+=e,1===V?window.addEventListener(p,T):0===V&&window.removeEventListener(p,T)},H=!1,U=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=S.setPrompt(e);return H||(W(1),H=!0),function(){return H&&(H=!1,W(-1)),t()}},z=function(e){var t=S.appendListener(e);return W(1),function(){W(-1),t()}},q={length:t.length,action:"POP",location:j,createHref:D,push:N,replace:I,go:$,goBack:F,goForward:B,block:U,listen:z};return q};t.default=b},ERIh:function(e,t,n){"use strict";n.r(t),n.d(t,"dva",function(){return h});var r=n("yWgo"),i=n("nDCI"),o=n("wd/R"),a=n.n(o),s=(n("XDpg"),window.settings),l=s.theme,c=s.host,u=document.createElement("link");u.rel="stylesheet",u.href=c?"./theme/".concat(l.color,".css"):"./assets/admin/theme/".concat(l.color,".css"),document.getElementsByTagName("head")[0].appendChild(u),a.a.locale("zh-cn"),"1"===Object(r["d"])("dark_mode")&&Object(i["enable"])({brightness:100,contrast:90,sepia:10});var h={config:{onError(e){e.preventDefault()}}}},ETUh:function(e,t,n){"use strict";var r=n("6RnP")(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},EVqI:function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t{return e.is_me?o.a.createElement("div",null,o.a.createElement("div",{className:"font-size-sm text-muted my-2 text-right"},h()(1e3*e.created_at).format("YYYY/MM/DD HH:mm")),o.a.createElement("div",{className:"text-right ml-4"},o.a.createElement("div",{className:"d-inline-block bg-gray-lighter px-3 py-2 mb-2 mw-100 rounded text-left"},e.message))):o.a.createElement("div",null,o.a.createElement("div",{className:"font-size-sm text-muted my-2"},h()(1e3*e.created_at).format("YYYY/MM/DD HH:mm")),o.a.createElement("div",{className:"mr-4"},o.a.createElement("div",{className:"d-inline-block bg-success-lighter px-3 py-2 mb-2 mw-100 rounded text-left"},e.message)))})),o.a.createElement("div",{className:"js-chat-form block-content p-2 bg-body-dark ".concat(d.a.input)},o.a.createElement("input",{onKeyDown:e=>this.props.onKeyDown(e,()=>{this.refs.message&&(this.refs.message.value="")}),ref:"message",type:"text",className:"js-chat-input bg-body-dark border-0 form-control form-control-alt",placeholder:"\u8f93\u5165\u5185\u5bb9\u56de\u590d\u5de5\u5355...",onChange:e=>this.props.onChange(e)})))}}class v extends o.a.Component{constructor(e){super(e),this.state={message:void 0,submit:{}}}componentDidMount(){this.props.dispatch({type:"ticket/fetchById",id:this.props.match.params.ticket_id}),this.props.dispatch({type:"plan/fetch"}),this.check()}check(){r=setTimeout(()=>{this.props.dispatch({type:"ticket/fetchById",id:this.props.match.params.ticket_id}),this.check()},5e3)}componentWillUnmount(){clearTimeout(r)}reply(e){this.props.dispatch({type:"ticket/reply",id:this.props.match.params.ticket_id,msg:this.state.message,callback:()=>{e()}})}render(){var e=this.props.user.user,t=this.props.ticket,n=t.ticket,r=t.replyLoading;return o.a.createElement(g,{ticket:n,user:e,onKeyDown:(e,t)=>{13!==e.keyCode||r||this.reply(t)},onChange:e=>{this.setState({message:e.target.value})}})}}t["default"]=Object(a["c"])(e=>{var t=e.user,n=e.ticket;return{user:t,ticket:n}})(v)},FYw3:function(e,t,n){"use strict";t.__esModule=!0;var r=n("EJiy"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==("undefined"===typeof t?"undefined":(0,i.default)(t))&&"function"!==typeof t?e:t}},FfBw:function(e,t){"function"===typeof Object.create?e.exports=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:e.exports=function(e,t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}},FlQf:function(e,t,n){"use strict";var r=n("ccE7")(!0);n("MPFp")(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=r(t,n),this._i+=e.length,{value:e,done:!1})})},Fofx:function(e,t,n){"use strict";function r(){return[1,0,0,1,0,0]}function i(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function o(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e}function a(e,t,n){var r=t[0]*n[0]+t[2]*n[1],i=t[1]*n[0]+t[3]*n[1],o=t[0]*n[2]+t[2]*n[3],a=t[1]*n[2]+t[3]*n[3],s=t[0]*n[4]+t[2]*n[5]+t[4],l=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=i,e[2]=o,e[3]=a,e[4]=s,e[5]=l,e}function s(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function l(e,t,n){var r=t[0],i=t[2],o=t[4],a=t[1],s=t[3],l=t[5],c=Math.sin(n),u=Math.cos(n);return e[0]=r*u+a*c,e[1]=-r*c+a*u,e[2]=i*u+s*c,e[3]=-i*c+u*s,e[4]=u*o+c*l,e[5]=u*l-c*o,e}function c(e,t,n){var r=n[0],i=n[1];return e[0]=t[0]*r,e[1]=t[1]*i,e[2]=t[2]*r,e[3]=t[3]*i,e[4]=t[4]*r,e[5]=t[5]*i,e}function u(e,t){var n=t[0],r=t[2],i=t[4],o=t[1],a=t[3],s=t[5],l=n*a-o*r;return l?(l=1/l,e[0]=a*l,e[1]=-o*l,e[2]=-r*l,e[3]=n*l,e[4]=(r*s-a*i)*l,e[5]=(o*i-n*s)*l,e):null}n.d(t,"b",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"e",function(){return a}),n.d(t,"h",function(){return s}),n.d(t,"f",function(){return l}),n.d(t,"g",function(){return c}),n.d(t,"d",function(){return u})},FpHa:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},FqPH:function(e,t){e.exports=!1},FwrZ:function(e,t,n){"use strict";t.__esModule=!0;t.addLeadingSlash=function(e){return"/"===e.charAt(0)?e:"/"+e},t.stripLeadingSlash=function(e){return"/"===e.charAt(0)?e.substr(1):e};var r=t.hasBasename=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)};t.stripBasename=function(e,t){return r(e,t)?e.substr(t.length):e},t.stripTrailingSlash=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},t.parsePath=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},t.createPath=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i}},G7Hh:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("A22h"),o=n("bsDr");n("h7Gi")("search",1,function(e,t,n,a){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),l=String(this),c=s.lastIndex;i(c,0)||(s.lastIndex=0);var u=o(s,l);return i(s.lastIndex,c)||(s.lastIndex=c),null===u?-1:u.index}]})},G8Mo:function(e,t,n){var r=n("93I4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"GB+t":function(e,t,n){"use strict";var r=function(){};e.exports=r},GYWy:function(e,t,n){(function(e,r){var i;(function(o){t&&t.nodeType,e&&e.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,l=2147483647,c=36,u=1,h=26,f=38,d=700,p=72,m=128,g="-",v=/^xn--/,y=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,w={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},x=c-u,_=Math.floor,E=String.fromCharCode;function S(e){throw new RangeError(w[e])}function C(e,t){var n=e.length,r=[];while(n--)r[n]=t(e[n]);return r}function k(e,t){var n=e.split("@"),r="";n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(b,".");var i=e.split("."),o=C(i,t).join(".");return r+o}function O(e){var t,n,r=[],i=0,o=e.length;while(i=55296&&t<=56319&&i65535&&(e-=65536,t+=E(e>>>10&1023|55296),e=56320|1023&e),t+=E(e),t}).join("")}function A(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:c}function P(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function M(e,t,n){var r=0;for(e=n?_(e/d):e>>1,e+=_(e/t);e>x*h>>1;r+=c)e=_(e/x);return _(r+(x+1)*e/(e+f))}function R(e){var t,n,r,i,o,a,s,f,d,v,y=[],b=e.length,w=0,x=m,E=p;for(n=e.lastIndexOf(g),n<0&&(n=0),r=0;r=128&&S("not-basic"),y.push(e.charCodeAt(r));for(i=n>0?n+1:0;i=b&&S("invalid-input"),f=A(e.charCodeAt(i++)),(f>=c||f>_((l-w)/a))&&S("overflow"),w+=f*a,d=s<=E?u:s>=E+h?h:s-E,f_(l/v)&&S("overflow"),a*=v}t=y.length+1,E=M(w-o,t,0==o),_(w/t)>l-x&&S("overflow"),x+=_(w/t),w%=t,y.splice(w++,0,x)}return T(y)}function j(e){var t,n,r,i,o,a,s,f,d,v,y,b,w,x,C,k=[];for(e=O(e),b=e.length,t=m,n=0,o=p,a=0;a=t&&y_((l-n)/w)&&S("overflow"),n+=(s-t)*w,t=s,a=0;al&&S("overflow"),y==t){for(f=n,d=c;;d+=c){if(v=d<=o?u:d>=o+h?h:d-o,f{Object.keys(l["a"].periodText).forEach(t=>{null!==e[t]&&(e[t]=null!==e[t]?e[t]/100:null)})}),e.next=13,n({type:"setState",payload:{plans:r.data}});case 13:case"end":return e.stop()}},e)})()},save(e,t){return i.a.mark(function n(){var r,o,a,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return Object.keys(l["a"].periodText).forEach(e=>{null!==r[e]&&(r[e]=null!==r[e]?Math.round(100*r[e]):null)}),n.next=7,Object(s["b"])("/admin/plan/save",r);case 7:return c=n.sent,n.next=10,a({type:"setState",payload:{saveLoading:!1}});case 10:if(200===c.code){n.next=12;break}return n.abrupt("return");case 12:return n.next=14,a({type:"fetch"});case 14:"function"===typeof o&&o();case 15:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/plan/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/plan/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},sort(e,t){return i.a.mark(function n(){var r,o,a,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.fromIndex,o=e.toIndex,a=t.select,l=t.put,n.next=4,l({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,a(e=>e.plan);case 6:return c=n.sent,u=c.plans,re.id)});case 13:if(h=n.sent,200===h.code){n.next=16;break}return n.abrupt("return");case 16:return n.next=18,l({type:"fetch"});case 18:case"end":return n.stop()}},n)})()}}}},GrtH:function(e,t,n){"use strict";n.d(t,"e",function(){return l}),n.d(t,"d",function(){return c}),n.d(t,"f",function(){return u}),n.d(t,"b",function(){return h}),n.d(t,"h",function(){return f}),n.d(t,"c",function(){return d}),n.d(t,"g",function(){return g}),n.d(t,"a",function(){return v});var r=n("QbLZ"),i=n.n(r),o=n("wd/R"),a=n.n(o),s={disabledHours:function(){return[]},disabledMinutes:function(){return[]},disabledSeconds:function(){return[]}};function l(e){var t=a()();return t.locale(e.locale()).utcOffset(e.utcOffset()),t}function c(e){return e.format("LL")}function u(e){var t=l(e);return c(t)}function h(e){var t=e.locale(),n=e.localeData();return n["zh-cn"===t?"months":"monthsShort"](e)}function f(e,t){a.a.isMoment(e)&&a.a.isMoment(t)&&(t.hour(e.hour()),t.minute(e.minute()),t.second(e.second()),t.millisecond(e.millisecond()))}function d(e,t){var n=t?t(e):{};return n=i()({},s,n),n}function p(e,t){var n=!1;if(e){var r=e.hour(),i=e.minute(),o=e.second(),a=t.disabledHours();if(-1===a.indexOf(r)){var s=t.disabledMinutes(r);if(-1===s.indexOf(i)){var l=t.disabledSeconds(r,i);n=-1!==l.indexOf(o)}else n=!0}else n=!0}return!n}function m(e,t){var n=d(e,t);return p(e,n)}function g(e,t,n){return(!t||!t(e))&&!(n&&!m(e,n))}function v(e,t){return e?(Array.isArray(t)&&(t=t[0]),e.format(t)):""}},GsrZ:function(e,t){e.exports="\t\n\v\f\r \xa0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u202f\u205f\u3000\u2028\u2029\ufeff"},Gytx:function(e,t){e.exports=function(e,t,n,r){var i=n?n.call(r,e,t):void 0;if(void 0!==i)return!!i;if(e===t)return!0;if("object"!==typeof e||!e||"object"!==typeof t||!t)return!1;var o=Object.keys(e),a=Object.keys(t);if(o.length!==a.length)return!1;for(var s=Object.prototype.hasOwnProperty.bind(t),l=0;l0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");-1===n&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function u(e){var t=c(e),n=t[0],r=t[1];return 3*(n+r)/4-r}function h(e,t,n){return 3*(t+n)/4-n}function f(e){var t,n,r=c(e),a=r[0],s=r[1],l=new o(h(e,a,s)),u=0,f=s>0?a-4:a;for(n=0;n>16&255,l[u++]=t>>8&255,l[u++]=255&t;return 2===s&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,l[u++]=255&t),1===s&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,l[u++]=t>>8&255,l[u++]=255&t),l}function d(e){return r[e>>18&63]+r[e>>12&63]+r[e>>6&63]+r[63&e]}function p(e,t,n){for(var r,i=[],o=t;ol?l:s+a));return 1===i?(t=e[n-1],o.push(r[t>>2]+r[t<<4&63]+"==")):2===i&&(t=(e[n-2]<<8)+e[n-1],o.push(r[t>>10]+r[t>>4&63]+r[t<<2&63]+"=")),o.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},H9LU:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("5Dmo"),n("3S7+")),a=(n("OaEy"),n("2fM7")),s=(n("5NDa"),n("5rEg")),l=n("p0pE"),c=n.n(l),u=n("q1tI"),h=n.n(u),f=n("/MKj"),d=(n("lc5D"),n("VeWa"),n("umNf"),n("8zNj"));class p extends h.a.Component{constructor(e){super(e),this.state={server:this.props.record||{cipher:"chacha20-ietf-poly1305",rate:1},visible:!1,childDrawer:{visible:!1}}}onShow(){this.setState({visible:!this.state.visible})}save(){var e=this.state.server;this.props.dispatch({type:"serverShadowsocks/save",params:e,callback:()=>{this.onShow()}})}showChildDrawer(e,t){this.setState({childDrawer:c()({},this.state.childDrawer,{visible:!this.state.childDrawer.visible,title:e,type:t})})}changeServer(e,t){this.setState({server:c()({},this.state.server,{[e]:t})})}formChange(e,t){this.setState({server:c()({},this.state.server,{[e]:t})})}setObfsSettings(e,t){var n=this.state.server,r=n.obfs_settings||{};r[e]=t,this.setState({server:c()({},this.state.server,{obfs_settings:r})})}renderObfs(){var e=this.state.server;switch(e.obfs){case"http":var t,n;return h.a.createElement("div",{className:"row mt-2"},h.a.createElement("div",{className:"form-group col-4 mb-0"},h.a.createElement(s["a"],{placeholder:"\u8def\u5f84",value:null===(t=e.obfs_settings)||void 0===t?void 0:t.path,onChange:e=>this.setObfsSettings("path",e.target.value)})),h.a.createElement("div",{className:"form-group col-8 mb-0"},h.a.createElement(s["a"],{placeholder:"Host",value:null===(n=e.obfs_settings)||void 0===n?void 0:n.host,onChange:e=>this.setObfsSettings("host",e.target.value)})))}}render(){var e=this.state.server,t=this.props.serverShadowsocks.saveLoading,n=this.props.serverManage.servers,l=this.props.serverGroup.groups;return h.a.createElement(h.a.Fragment,null,h.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),h.a.createElement(r["a"],{id:"server",maskClosable:!0,title:e.id?"\u7f16\u8f91\u8282\u70b9":"\u65b0\u5efa\u8282\u70b9",width:"80%",visible:this.state.visible,onClose:()=>this.onShow()},h.a.createElement("div",null,h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"form-group col-8"},h.a.createElement("label",null,"\u8282\u70b9\u540d\u79f0"),h.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",value:e.name,onChange:e=>this.formChange("name",e.target.value)})),h.a.createElement("div",{className:"form-group col-4"},h.a.createElement("label",null,"\u500d\u7387"),h.a.createElement(s["a"],{addonAfter:"x",placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u500d\u7387",value:e.rate,onChange:e=>this.formChange("rate",e.target.value)}))),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u8282\u70b9\u6807\u7b7e"),h.a.createElement(a["a"],{mode:"tags",value:e.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>this.formChange("tags",e.length>0?e:null)})),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u6743\u9650\u7ec4 ",h.a.createElement(d["a"],null,h.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),h.a.createElement(a["a"],{mode:"multiple",value:e.group_id,placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},onChange:e=>this.formChange("group_id",e)},l.map(e=>{return h.a.createElement(a["a"].Option,{key:e.id},e.name)}))),h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"form-group col-md-12 col-xs-12"},h.a.createElement("label",null,"\u8282\u70b9\u5730\u5740"),h.a.createElement(s["a"],{placeholder:"\u5730\u5740\u6216IP",value:e.host,onChange:e=>this.formChange("host",e.target.value)}))),h.a.createElement("div",{className:"row"},h.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},h.a.createElement("label",null,"\u8fde\u63a5\u7aef\u53e3"),h.a.createElement(s["a"],{placeholder:"\u7528\u6237\u8fde\u63a5\u7aef\u53e3",value:e.port,onChange:e=>{this.formChange("port",e.target.value)}})),h.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},h.a.createElement("label",null,"\u670d\u52a1\u7aef\u53e3"),h.a.createElement(s["a"],{placeholder:"\u670d\u52a1\u7aef\u5f00\u653e\u7aef\u53e3",value:e.server_port,onChange:e=>{this.formChange("server_port",e.target.value)}}))),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u52a0\u5bc6\u7b97\u6cd5"),h.a.createElement(a["a"],{value:e.cipher,onChange:e=>this.formChange("cipher",e),style:{width:"100%"}},h.a.createElement(a["a"].Option,{value:"aes-128-gcm"},"aes-128-gcm"),h.a.createElement(a["a"].Option,{value:"aes-192-gcm"},"aes-192-gcm"),h.a.createElement(a["a"].Option,{value:"aes-256-gcm"},"aes-256-gcm"),h.a.createElement(a["a"].Option,{value:"chacha20-ietf-poly1305"},"chacha20-ietf-poly1305"),h.a.createElement(a["a"].Option,{value:"2022-blake3-aes-128-gcm"},"2022-blake3-aes-128-gcm"),h.a.createElement(a["a"].Option,{value:"2022-blake3-aes-256-gcm"},"2022-blake3-aes-256-gcm"))),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,"\u6df7\u6dc6"),h.a.createElement(a["a"],{value:e.obfs||"",onChange:e=>this.formChange("obfs",e),style:{width:"100%"}},h.a.createElement(a["a"].Option,{value:""},"\u65e0"),h.a.createElement(a["a"].Option,{value:"http"},"HTTP")),h.a.createElement("div",null,this.renderObfs())),h.a.createElement("div",{className:"form-group"},h.a.createElement("label",null,h.a.createElement(o["a"],{placement:"top"},"\u7236\u8282\u70b9 ",h.a.createElement("a",{target:"_blank",href:"https://docs.v2board.com/use/node.html#\u7236\u8282\u70b9\u4e0e\u5b50\u8282\u70b9\u5173\u7cfb",rel:"noreferrer"},"\u66f4\u591a\u89e3\u7b54"))),h.a.createElement(a["a"],{value:e.parent_id||"",onChange:e=>this.formChange("parent_id",e),style:{width:"100%"}},h.a.createElement(a["a"].Option,{value:""},"\u65e0"),n.map(t=>{if("shadowsocks"===t.type&&t.id!==e.id)return h.a.createElement(a["a"].Option,{key:Math.random(),value:t.id},t.name)})))),h.a.createElement("div",{className:"v2board-drawer-action"},h.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.onShow()},"\u53d6\u6d88"),h.a.createElement(i["a"],{loading:t,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4"))))}}t["a"]=Object(f["c"])(e=>{var t=e.serverShadowsocks,n=e.serverGroup,r=e.serverManage;return{serverShadowsocks:t,serverGroup:n,serverManage:r}})(p)},HCMe:function(e,t,n){n("Jaki")("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},HKjm:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("2UD4"),i=n("jBYB"),o=n("obDU");t.default=l;var a=["second","second-short","minute","minute-short","hour","hour-short","day","day-short","month","month-short","year","year-short"],s=["best fit","numeric"];function l(e,t){t=t||{},o.isArray(e)&&(e=e.concat()),o.defineProperty(this,"_locale",{value:this._resolveLocale(e)}),o.defineProperty(this,"_options",{value:{style:this._resolveStyle(t.style),units:this._isValidUnits(t.units)&&t.units}}),o.defineProperty(this,"_locales",{value:e}),o.defineProperty(this,"_fields",{value:this._findFields(this._locale)}),o.defineProperty(this,"_messages",{value:o.objCreate(null)});var n=this;this.format=function(e,t){return n._format(e,t)}}o.defineProperty(l,"__localeData__",{value:o.objCreate(null)}),o.defineProperty(l,"__addLocaleData",{value:function(){for(var e=0;e=0)return!0;if("string"===typeof e){var t=/s$/.test(e)&&e.substr(0,e.length-1);if(t&&o.arrIndexOf.call(a,t)>=0)throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, did you mean: '+t)}throw new Error('"'+e+'" is not a valid IntlRelativeFormat `units` value, it must be one of: "'+a.join('", "')+'"')},l.prototype._resolveLocale=function(e){"string"===typeof e&&(e=[e]),e=(e||[]).concat(l.defaultLocale);var t,n,r,i,o=l.__localeData__;for(t=0,n=e.length;t=0)return e;throw new Error('"'+e+'" is not a valid IntlRelativeFormat `style` value, it must be one of: "'+s.join('", "')+'"')},l.prototype._selectUnits=function(e){var t,n,r,i=a.filter(function(e){return e.indexOf("-short")<1});for(t=0,n=i.length;to)a(n[o++]);e._c=[],e._n=!1,t&&!e._h&&D(e)})}},D=function(e){v.call(l,function(){var t,n,r,i=e._v,o=N(e);if(o&&(t=w(function(){A?C.emit("unhandledRejection",i,e):(n=l.onunhandledrejection)?n({promise:e,reason:i}):(r=l.console)&&r.error&&r.error("Unhandled promise rejection",i)}),e._h=A||N(e)?2:1),e._a=void 0,o&&t.e)throw t.v})},N=function(e){return 1!==e._h&&0===(e._a||e._c).length},I=function(e){v.call(l,function(){var t;A?C.emit("rejectionHandled",e):(t=l.onrejectionhandled)&&t({promise:e,reason:e._v})})},$=function(e){var t=this;t._d||(t._d=!0,t=t._w||t,t._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw S("Promise can't be resolved itself");(t=j(e))?y(function(){var r={_w:n,_d:!1};try{t.call(e,c(F,r,1),c($,r,1))}catch(e){$.call(r,e)}}):(n._v=e,n._s=1,L(n,!1))}catch(e){$.call({_w:n,_d:!1},e)}}};R||(T=function(e){p(this,T,E,"_h"),d(e),r.call(this);try{e(c(F,this,1),c($,this,1))}catch(e){$.call(this,e)}},r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},r.prototype=n("zNw+")(T.prototype,{then:function(e,t){var n=M(g(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=A?C.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&L(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),o=function(){var e=new r;this.promise=e,this.resolve=c(F,e,1),this.reject=c($,e,1)},b.f=M=function(e){return e===T||e===a?new o(e):i(e)}),h(h.G+h.W+h.F*!R,{Promise:T}),n("lvAo")(T,E),n("gRqi")(E),a=n("bV5f")[E],h(h.S+h.F*!R,E,{reject:function(e){var t=M(this),n=t.reject;return n(e),t.promise}}),h(h.S+h.F*(s||!R),E,{resolve:function(e){return _(s&&this===a?T:this,e)}}),h(h.S+h.F*!(R&&n("cQyX")(function(e){T.all(e)["catch"](P)})),E,{all:function(e){var t=this,n=M(t),r=n.resolve,i=n.reject,o=w(function(){var n=[],o=0,a=1;m(e,!1,function(e){var s=o++,l=!1;n.push(void 0),a++,t.resolve(e).then(function(e){l||(l=!0,n[s]=e,--a||r(n))},i)}),--a||r(n)});return o.e&&i(o.v),n.promise},race:function(e){var t=this,n=M(t),r=n.reject,i=w(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return i.e&&r(i.v),n.promise}})},Hfiw:function(e,t,n){var r=n("Y7ZC");r(r.S,"Object",{setPrototypeOf:n("6tYh").set})},Hsns:function(e,t,n){var r=n("93I4"),i=n("5T2Y").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},HzlJ:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"},fields:{year:{displayName:"year",relative:{0:"this year",1:"next year","-1":"last year"},relativeTime:{future:{one:"in {0} year",other:"in {0} years"},past:{one:"{0} year ago",other:"{0} years ago"}}},"year-short":{displayName:"yr.",relative:{0:"this yr.",1:"next yr.","-1":"last yr."},relativeTime:{future:{one:"in {0} yr.",other:"in {0} yr."},past:{one:"{0} yr. ago",other:"{0} yr. ago"}}},month:{displayName:"month",relative:{0:"this month",1:"next month","-1":"last month"},relativeTime:{future:{one:"in {0} month",other:"in {0} months"},past:{one:"{0} month ago",other:"{0} months ago"}}},"month-short":{displayName:"mo.",relative:{0:"this mo.",1:"next mo.","-1":"last mo."},relativeTime:{future:{one:"in {0} mo.",other:"in {0} mo."},past:{one:"{0} mo. ago",other:"{0} mo. ago"}}},week:{displayName:"week",relativePeriod:"the week of {0}",relative:{0:"this week",1:"next week","-1":"last week"},relativeTime:{future:{one:"in {0} week",other:"in {0} weeks"},past:{one:"{0} week ago",other:"{0} weeks ago"}}},"week-short":{displayName:"wk.",relativePeriod:"the week of {0}",relative:{0:"this wk.",1:"next wk.","-1":"last wk."},relativeTime:{future:{one:"in {0} wk.",other:"in {0} wk."},past:{one:"{0} wk. ago",other:"{0} wk. ago"}}},day:{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},"day-short":{displayName:"day",relative:{0:"today",1:"tomorrow","-1":"yesterday"},relativeTime:{future:{one:"in {0} day",other:"in {0} days"},past:{one:"{0} day ago",other:"{0} days ago"}}},hour:{displayName:"hour",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hour",other:"in {0} hours"},past:{one:"{0} hour ago",other:"{0} hours ago"}}},"hour-short":{displayName:"hr.",relative:{0:"this hour"},relativeTime:{future:{one:"in {0} hr.",other:"in {0} hr."},past:{one:"{0} hr. ago",other:"{0} hr. ago"}}},minute:{displayName:"minute",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} minute",other:"in {0} minutes"},past:{one:"{0} minute ago",other:"{0} minutes ago"}}},"minute-short":{displayName:"min.",relative:{0:"this minute"},relativeTime:{future:{one:"in {0} min.",other:"in {0} min."},past:{one:"{0} min. ago",other:"{0} min. ago"}}},second:{displayName:"second",relative:{0:"now"},relativeTime:{future:{one:"in {0} second",other:"in {0} seconds"},past:{one:"{0} second ago",other:"{0} seconds ago"}}},"second-short":{displayName:"sec.",relative:{0:"now"},relativeTime:{future:{one:"in {0} sec.",other:"in {0} sec."},past:{one:"{0} sec. ago",other:"{0} sec. ago"}}}}}},I1u9:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("5Dmo"),n("3S7+")),a=(n("OaEy"),n("2fM7")),s=(n("5NDa"),n("5rEg")),l=(n("Pwec"),n("CtXQ")),c=n("p0pE"),u=n.n(c),h=(n("/xke"),n("TeRw")),f=n("q1tI"),d=n.n(f),p=n("/MKj"),m=(n("/zsF"),n("PArb"));class g extends d.a.Component{constructor(e){super(e),this.state={settings:this.props.settings||{servers:[],hosts:{}}}}addHost(){this.state.settings.hosts}addServer(){var e=this.state.settings.servers,t={address:"",port:53,domains:[],expectIPs:[]};e.push(t),this.setState({settings:u()({},this.state.settings,{servers:e})},()=>{this.props.onChange(this.state.settings)})}dropServer(e){var t=this.state.settings.servers;t.splice(e,1),this.setState({settings:u()({},this.state.settings,{servers:t})},()=>{this.props.onChange(this.state.settings)})}changeServer(e,t,n){var r=this.state.settings.servers;"domains"===t?r[e].domains=n.split("\n"):r[e][t]=n,this.setState({settings:u()({},this.state.settings,{servers:r})},()=>{this.props.onChange(this.state.settings)})}render(){var e=this.state.settings.servers;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"DNS\u670d\u52a1\u5668\u8868"),e.map((e,t)=>{var n;return d.a.createElement("div",{key:t},d.a.createElement("div",{className:"row"},d.a.createElement(m["a"],{type:"horizontal"},e.address||"\u670d\u52a1\u5668\u7ec4".concat(t+1)," ",d.a.createElement(l["a"],{type:"delete",style:{color:"#ff4d4f"},onClick:()=>this.dropServer(t)})),d.a.createElement("div",{className:"form-group col-md-9 col-xs-12"},d.a.createElement("label",null,"DNS\u670d\u52a1\u5668\u5730\u5740"),d.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165DNS\u670d\u52a1\u5668\u5730\u5740",value:e.address,onChange:e=>this.changeServer(t,"address",e.target.value)})),d.a.createElement("div",{className:"form-group col-md-3 col-xs-12"},d.a.createElement("label",null,"\u7aef\u53e3"),d.a.createElement(s["a"],{type:"number",placeholder:"\u7aef\u53e3",value:e.port,onChange:e=>this.changeServer(t,"port",parseInt(e.target.value))}))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u57df\u540d"),d.a.createElement(s["a"].TextArea,{rows:5,onChange:e=>this.changeServer(t,"domains",e.target.value),value:null===(n=e.domains)||void 0===n?void 0:n.join("\n"),placeholder:"\u57df\u540d\u5217\u8868\uff0c\u6b64\u5217\u8868\u5305\u542b\u7684\u57df\u540d\uff0c\u5c06\u4f18\u5148\u4f7f\u7528\u6b64\u670d\u52a1\u5668\u8fdb\u884c\u67e5\u8be2\u3002\u4e00\u884c\u4e00\u6761"})))}),d.a.createElement("div",null,d.a.createElement(i["a"],{type:"primary",style:{width:"100%"},onClick:()=>this.addServer()},"\u6dfb\u52a0"))))}}class v extends d.a.Component{constructor(e){super(e);var t=this.props.settings;"{}"!==JSON.stringify(t)&&t||(t={domain:[],protocol:[]}),this.state={settings:t}}change(e,t){var n=this.state.settings;t=t.split("\n"),n[e]=t,this.setState({settings:n}),this.props.onChange(n)}render(){var e=this.state.settings,t=e.domain,n=e.protocol;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u57df\u540d\u8fc7\u6ee4\u5668"),d.a.createElement(s["a"].TextArea,{value:t&&t.join("\n"),onChange:e=>this.change("domain",e.target.value),rows:5})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u534f\u8bae\u8fc7\u6ee4\u5668"),d.a.createElement(s["a"].TextArea,{value:n&&n.join("\n"),onChange:e=>this.change("protocol",e.target.value),rows:5})))}}n("BoS7");var y=n("Sdc0");class b extends d.a.Component{constructor(e){super(e);var t=this.props.settings;"{}"!==JSON.stringify(t)&&t||(t={serverName:"",allowInsecure:0}),this.state={settings:t}}change(e,t){var n=this.state.settings;n[e]=t,this.setState({settings:n}),this.props.onChange(this.state.settings)}render(){var e=this.state.settings,t=e.serverName,n=e.allowInsecure;return d.a.createElement(d.a.Fragment,null,d.a.createElement("div",null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"Server Name"),d.a.createElement(s["a"],{value:t,onChange:e=>this.change("serverName",e.target.value),placeholder:"\u4e0d\u4f7f\u7528\u8bf7\u7559\u7a7a"})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"Allow Insecure"),d.a.createElement("div",null,d.a.createElement(y["a"],{checked:parseInt(n),onChange:e=>this.change("allowInsecure",e?"1":"0")})))))}}var w=n("lc5D"),x=n.n(w),_=(n("VeWa"),n("umNf"),n("8zNj"));class E extends d.a.Component{constructor(e){super(e),this.state={server:this.props.record||{tls:0,rate:1},visible:!1,childDrawer:{visible:!1}}}onShow(){if(this.setState({visible:!this.state.visible}),this.state.server.networkSettings&&"object"===typeof this.state.server.networkSettings){var e=this.state.server;e.networkSettings=JSON.stringify(e["networkSettings"],null,2),this.setState({server:e})}}save(){try{var e,t,n=this.state.server;n.networkSettings=n.networkSettings?"string"===typeof n.networkSettings&&JSON.parse(n.networkSettings):null,(null===(e=n.dnsSettings)||void 0===e?void 0:null===(t=e.servers)||void 0===t?void 0:t.length)||(n.dnsSettings=null),console.log(n),this.props.dispatch({type:"serverV2ray/save",params:n,callback:()=>{this.onShow()}})}catch(e){h["a"].error({message:"\u8bf7\u6c42\u5931\u8d25",description:"\u4f20\u8f93\u534f\u8bae\u914d\u7f6e\u683c\u5f0f\u6709\u8bef"})}}showChildDrawer(e,t){this.setState({childDrawer:u()({},this.state.childDrawer,{visible:!this.state.childDrawer.visible,title:e,type:t})})}changeServer(e,t){this.setState({server:u()({},this.state.server,{[e]:t})})}renderChildDrawer(){var e=this.state.server,t=e.networkSettings,n=e.ruleSettings,r=e.tlsSettings,i=e.dnsSettings;switch(this.state.childDrawer.type){case"networkSettings":var o={tcp:"",ws:JSON.stringify({path:"/",headers:{Host:"v2ray.com"}},null,4),grpc:JSON.stringify({serviceName:"GunService"},null,4)};return d.a.createElement("div",{id:"v2ray-protocol"},d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u534f\u8bae\u8be6\u7ec6\u914d\u7f6e",d.a.createElement("a",{href:"https://www.v2ray.com/chapter_02/05_transport.html"},d.a.createElement(l["a"],{type:"link"}),"\u53c2\u8003")),d.a.createElement(x.a,{placeholder:(null===o||void 0===o?void 0:o[this.state.server.network])||"",mode:"json",theme:"github",fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,value:t||"",onChange:e=>this.formChange("networkSettings",e),setOptions:{enableBasicAutocompletion:!1,enableLiveAutocompletion:!1,enableSnippets:!1,showLineNumbers:!0,tabSize:2},ref:"editor"})));case"ruleSettings":return d.a.createElement(v,{settings:n,onChange:e=>this.changeServer("ruleSettings",e)});case"tlsSettings":return d.a.createElement(b,{settings:r,onChange:e=>this.changeServer("tlsSettings",e)});case"dnsSettings":return d.a.createElement(g,{settings:i,onChange:e=>this.changeServer("dnsSettings",e)})}}formChange(e,t){this.refs.editor&&this.refs.editor.editor.resize();var n=this.state.server;n[e]=t,this.setState({server:n})}render(){var e=this.state.server,t=this.props.serverV2ray.saveLoading,n=this.props.serverManage.servers,c=this.props.serverGroup.groups;return d.a.createElement(d.a.Fragment,null,d.a.cloneElement(this.props.children,{onClick:()=>this.onShow()}),d.a.createElement(r["a"],{id:"server",maskClosable:!0,title:e.id?"\u7f16\u8f91\u8282\u70b9":"\u65b0\u5efa\u8282\u70b9",width:"80%",visible:this.state.visible,onClose:()=>this.onShow()},d.a.createElement("div",null,d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-8"},d.a.createElement("label",null,"\u8282\u70b9\u540d\u79f0"),d.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",value:e.name,onChange:e=>this.formChange("name",e.target.value)})),d.a.createElement("div",{className:"form-group col-4"},d.a.createElement("label",null,"\u500d\u7387"),d.a.createElement(s["a"],{addonAfter:"x",placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u500d\u7387",value:e.rate,onChange:e=>this.formChange("rate",e.target.value)}))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u8282\u70b9\u6807\u7b7e"),d.a.createElement(a["a"],{mode:"tags",value:e.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>this.formChange("tags",e.length>0?e:null)})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"\u6743\u9650\u7ec4 ",d.a.createElement(_["a"],null,d.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),d.a.createElement(a["a"],{mode:"multiple",value:e.group_id,placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},onChange:e=>this.formChange("group_id",e)},c.map(e=>{return d.a.createElement(a["a"].Option,{key:e.id},e.name)}))),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-md-8 col-xs-12"},d.a.createElement("label",null,"\u8282\u70b9\u5730\u5740"),d.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u8fde\u63a5\u5730\u5740",value:e.host,onChange:e=>this.formChange("host",e.target.value)})),d.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},d.a.createElement("label",null,d.a.createElement(o["a"],{placement:"top",title:"\u652f\u6301TLS\u9700\u8981\u5148\u5728\u8282\u70b9\u670d\u52a1\u5668 /root/.cert/ \u76ee\u5f55\u653e\u7f6e\u8bc1\u4e66"},"TLS ",d.a.createElement(l["a"],{type:"question-circle"}))," ",d.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.showChildDrawer("\u7f16\u8f91TLS\u914d\u7f6e","tlsSettings")},"\u7f16\u8f91\u914d\u7f6e")),d.a.createElement(a["a"],{value:parseInt(e.tls)?1:0,placeholder:"\u662f\u5426\u652f\u6301TLS",style:{width:"100%"},onChange:e=>this.formChange("tls",e)},d.a.createElement(a["a"].Option,{key:0,value:0},"\u4e0d\u652f\u6301"),d.a.createElement(a["a"].Option,{key:1,value:1},"\u652f\u6301")))),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},d.a.createElement("label",null,"\u8fde\u63a5\u7aef\u53e3"),d.a.createElement(s["a"],{placeholder:"\u7528\u6237\u8fde\u63a5\u7aef\u53e3",value:e.port,onChange:e=>{this.formChange("port",e.target.value)}})),d.a.createElement("div",{className:"form-group col-md-6 col-xs-12"},d.a.createElement("label",null,"\u670d\u52a1\u7aef\u53e3"),d.a.createElement(s["a"],{placeholder:"\u975eNAT\u540c\u8fde\u63a5\u7aef\u53e3",value:e.server_port,onChange:e=>this.formChange("server_port",e.target.value)}))),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"form-group col-md-12 col-xs-12"},d.a.createElement("label",null,"\u4f20\u8f93\u534f\u8bae ",d.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.showChildDrawer("\u7f16\u8f91\u534f\u8bae\u914d\u7f6e","networkSettings")},"\u7f16\u8f91\u914d\u7f6e")),d.a.createElement(a["a"],{value:e.network,placeholder:"\u9009\u62e9\u4f20\u8f93\u534f\u8bae",style:{width:"100%"},onChange:e=>this.formChange("network",e)},d.a.createElement(a["a"].Option,{value:"tcp"},"TCP"),d.a.createElement(a["a"].Option,{value:"ws"},"WebSocket"),d.a.createElement(a["a"].Option,{value:"grpc"},"gRPC")))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,d.a.createElement(o["a"],{placement:"top"},"\u7236\u8282\u70b9 ",d.a.createElement("a",{target:"_blank",href:"https://docs.v2board.com/use/node.html#\u7236\u8282\u70b9\u4e0e\u5b50\u8282\u70b9\u5173\u7cfb",rel:"noreferrer"},d.a.createElement(l["a"],{type:"read"})))),d.a.createElement(a["a"],{value:e.parent_id||"",onChange:e=>this.formChange("parent_id",e),style:{width:"100%"}},d.a.createElement(a["a"].Option,{value:""},"\u65e0"),n.map(t=>{if("v2ray"===t.type&&t.id!==e.id)return d.a.createElement(a["a"].Option,{key:Math.random(),value:t.id},t.name)}))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,d.a.createElement(o["a"],{placement:"top",title:"\u89c4\u5219\u5185\u7684\u8bbf\u95ee\u5c06\u4f1a\u88ab\u62d2\u7edd"},"\u5ba1\u8ba1\u89c4\u5219 ",d.a.createElement(l["a"],{type:"question-circle"}))),d.a.createElement("div",null,d.a.createElement(i["a"],{type:"primary",style:{width:"100%"},onClick:()=>this.showChildDrawer("\u7f16\u8f91\u5ba1\u8ba1\u89c4\u5219","ruleSettings")},"\u7f16\u8f91\u89c4\u5219"))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",null,"DNS\u89c4\u5219 ",d.a.createElement(l["a"],{type:"question-circle"})),d.a.createElement("div",null,d.a.createElement(i["a"],{type:"primary",style:{width:"100%"},onClick:()=>this.showChildDrawer("\u7f16\u8f91DNS\u89c4\u5219","dnsSettings")},"\u7f16\u8f91DNS\u89c4\u5219")))),d.a.createElement("div",{className:"v2board-drawer-action"},d.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.onShow()},"\u53d6\u6d88"),d.a.createElement(i["a"],{loading:t,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4")),d.a.createElement(r["a"],{closable:!1,id:"server",width:"80%",title:this.state.childDrawer.title,visible:this.state.childDrawer.visible,onClose:()=>this.showChildDrawer()},this.renderChildDrawer())))}}t["a"]=Object(p["c"])(e=>{var t=e.serverV2ray,n=e.serverGroup,r=e.serverManage;return{serverV2ray:t,serverGroup:n,serverManage:r}})(E)},IMiH:function(e,t,n){"use strict";var r=n("QBsz"),i=n("mFDi"),o=n("LPTA"),a=n("4mN7"),s=n("Sj9i"),l={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},c=[],u=[],h=[],f=[],d=[],p=[],m=Math.min,g=Math.max,v=Math.cos,y=Math.sin,b=Math.abs,w=Math.PI,x=2*w,_="undefined"!==typeof Float32Array,E=[];function S(e){var t=Math.round(e/w*1e8)/1e8;return t%2*w}function C(e,t){var n=S(e[0]);n<0&&(n+=x);var r=n-e[0],i=e[1];i+=r,!t&&i-n>=x?i=n+x:t&&n-i>=x?i=n-x:!t&&n>i?i=n+(x-S(n-i)):t&&n0&&(this._ux=b(n/o["e"]/e)||0,this._uy=b(n/o["e"]/t)||0)},e.prototype.setDPR=function(e){this.dpr=e},e.prototype.setContext=function(e){this._ctx=e},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(e,t){return this._drawPendingPt(),this.addData(l.M,e,t),this._ctx&&this._ctx.moveTo(e,t),this._x0=e,this._y0=t,this._xi=e,this._yi=t,this},e.prototype.lineTo=function(e,t){var n=b(e-this._xi),r=b(t-this._yi),i=n>this._ux||r>this._uy;if(this.addData(l.L,e,t),this._ctx&&i&&this._ctx.lineTo(e,t),i)this._xi=e,this._yi=t,this._pendingPtDist=0;else{var o=n*n+r*r;o>this._pendingPtDist&&(this._pendingPtX=e,this._pendingPtY=t,this._pendingPtDist=o)}return this},e.prototype.bezierCurveTo=function(e,t,n,r,i,o){return this._drawPendingPt(),this.addData(l.C,e,t,n,r,i,o),this._ctx&&this._ctx.bezierCurveTo(e,t,n,r,i,o),this._xi=i,this._yi=o,this},e.prototype.quadraticCurveTo=function(e,t,n,r){return this._drawPendingPt(),this.addData(l.Q,e,t,n,r),this._ctx&&this._ctx.quadraticCurveTo(e,t,n,r),this._xi=n,this._yi=r,this},e.prototype.arc=function(e,t,n,r,i,o){this._drawPendingPt(),E[0]=r,E[1]=i,C(E,o),r=E[0],i=E[1];var a=i-r;return this.addData(l.A,e,t,n,n,r,a,0,o?0:1),this._ctx&&this._ctx.arc(e,t,n,r,i,o),this._xi=v(i)*n+e,this._yi=y(i)*n+t,this},e.prototype.arcTo=function(e,t,n,r,i){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(e,t,n,r,i),this},e.prototype.rect=function(e,t,n,r){return this._drawPendingPt(),this._ctx&&this._ctx.rect(e,t,n,r),this.addData(l.R,e,t,n,r),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(l.Z);var e=this._ctx,t=this._x0,n=this._y0;return e&&e.closePath(),this._xi=t,this._yi=n,this},e.prototype.fill=function(e){e&&e.fill(),this.toStatic()},e.prototype.stroke=function(e){e&&e.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(e){var t=e.length;this.data&&this.data.length===t||!_||(this.data=new Float32Array(t));for(var n=0;nc.length&&(this._expandData(),c=this.data);for(var u=0;u0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var e=[],t=0;t11&&(this.data=new Float32Array(e)))}},e.prototype.getBoundingRect=function(){h[0]=h[1]=d[0]=d[1]=Number.MAX_VALUE,f[0]=f[1]=p[0]=p[1]=-Number.MAX_VALUE;var e,t=this.data,n=0,o=0,s=0,c=0;for(e=0;en||b(k)>r||d===t-1)&&(_=Math.sqrt(C*C+k*k),i=E,o=S);break;case l.C:var O=e[d++],T=e[d++],A=(E=e[d++],S=e[d++],e[d++]),P=e[d++];_=Object(s["d"])(i,o,O,T,E,S,A,P,10),i=A,o=P;break;case l.Q:O=e[d++],T=e[d++],E=e[d++],S=e[d++];_=Object(s["k"])(i,o,O,T,E,S,10),i=E,o=S;break;case l.A:var M=e[d++],R=e[d++],j=e[d++],L=e[d++],D=e[d++],N=e[d++],I=N+D;d+=1;e[d++];w&&(a=v(D)*j+M,c=y(D)*L+R),_=g(j,L)*m(x,Math.abs(N)),i=v(I)*j+M,o=y(I)*L+R;break;case l.R:a=i=e[d++],c=o=e[d++];var $=e[d++],F=e[d++];_=2*$+2*F;break;case l.Z:C=a-i,k=c-o;_=Math.sqrt(C*C+k*k),i=a,o=c;break}_>=0&&(u[f++]=_,h+=_)}return this._pathLen=h,h},e.prototype.rebuildPath=function(e,t){var n,r,i,o,a,h,f,d,p,w,x,_=this.data,E=this._ux,S=this._uy,C=this._len,k=t<1,O=0,T=0,A=0;if(!k||(this._pathSegLen||this._calculateLength(),f=this._pathSegLen,d=this._pathLen,p=t*d,p))e:for(var P=0;P0&&(e.lineTo(w,x),A=0),M){case l.M:n=i=_[P++],r=o=_[P++],e.moveTo(i,o);break;case l.L:a=_[P++],h=_[P++];var j=b(a-i),L=b(h-o);if(j>E||L>S){if(k){var D=f[T++];if(O+D>p){var N=(p-O)/D;e.lineTo(i*(1-N)+a*N,o*(1-N)+h*N);break e}O+=D}e.lineTo(a,h),i=a,o=h,A=0}else{var I=j*j+L*L;I>A&&(w=a,x=h,A=I)}break;case l.C:var $=_[P++],F=_[P++],B=_[P++],V=_[P++],W=_[P++],H=_[P++];if(k){D=f[T++];if(O+D>p){N=(p-O)/D;Object(s["g"])(i,$,B,W,N,c),Object(s["g"])(o,F,V,H,N,u),e.bezierCurveTo(c[1],u[1],c[2],u[2],c[3],u[3]);break e}O+=D}e.bezierCurveTo($,F,B,V,W,H),i=W,o=H;break;case l.Q:$=_[P++],F=_[P++],B=_[P++],V=_[P++];if(k){D=f[T++];if(O+D>p){N=(p-O)/D;Object(s["n"])(i,$,B,N,c),Object(s["n"])(o,F,V,N,u),e.quadraticCurveTo(c[1],u[1],c[2],u[2]);break e}O+=D}e.quadraticCurveTo($,F,B,V),i=B,o=V;break;case l.A:var U=_[P++],z=_[P++],q=_[P++],K=_[P++],G=_[P++],Y=_[P++],X=_[P++],Q=!_[P++],Z=q>K?q:K,J=b(q-K)>.001,ee=G+Y,te=!1;if(k){D=f[T++];O+D>p&&(ee=G+Y*(p-O)/D,te=!0),O+=D}if(J&&e.ellipse?e.ellipse(U,z,q,K,X,G,ee,Q):e.arc(U,z,Z,G,ee,Q),te)break e;R&&(n=v(G)*q+U,r=y(G)*K+z),i=v(ee)*q+U,o=y(ee)*K+z;break;case l.R:n=i=_[P],r=o=_[P+1],a=_[P++],h=_[P++];var ne=_[P++],re=_[P++];if(k){D=f[T++];if(O+D>p){var ie=p-O;e.moveTo(a,h),e.lineTo(a+m(ie,ne),h),ie-=ne,ie>0&&e.lineTo(a+ne,h+m(ie,re)),ie-=re,ie>0&&e.lineTo(a+g(ne-ie,0),h+re),ie-=ne,ie>0&&e.lineTo(a,h+g(re-ie,0));break e}O+=D}e.rect(a,h,ne,re);break;case l.Z:if(k){D=f[T++];if(O+D>p){N=(p-O)/D;e.lineTo(i*(1-N)+n*N,o*(1-N)+r*N);break e}O+=D}e.closePath(),i=n,o=r}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=l,e.initDefaultProps=function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0}(),e}();t["a"]=k},IR7R:function(e,t,n){"use strict";var r=n("WGNW"),i=n("Y/ne"),o=n("08Qx"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*a,"String",{padEnd:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},IX3V:function(e,t){function n(e,t){var n,r=0,i=e.length;for(r;r18),a&&(n.weChat=!0),t.svgSupported="undefined"!==typeof SVGRect,t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported="undefined"!==typeof document;var s=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in s||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in s)&&!("OTransition"in s),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}"object"===typeof wx&&"function"===typeof wx.getSystemInfoSync?(o.wxa=!0,o.touchEventsSupported=!0):"undefined"===typeof document&&"undefined"!==typeof self?o.worker=!0:"undefined"===typeof navigator?(o.node=!0,o.svgSupported=!0):a(navigator.userAgent,o),t["a"]=o},IuST:function(e,t){function n(e,t){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done);r=!0)if(n.push(a.value),t&&n.length===t)break}catch(e){i=!0,o=e}finally{try{r||null==s["return"]||s["return"]()}finally{if(i)throw o}}return n}e.exports=n},IzUq:function(e,t){var n={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==n.call(e)}},"J57/":function(e,t,n){var r=n("VyuQ")("keys"),i=n("kCK5");e.exports=function(e){return r[e]||(r[e]=i(e))}},J78i:function(e,t,n){"use strict";e.exports=a;var r=n("sZro"),i=Object.create(n("Onz0"));function o(e,t){var n=this._transformState;n.transforming=!1;var r=n.writecb;if(!r)return this.emit("error",new Error("write callback called multiple times"));n.writechunk=null,n.writecb=null,null!=t&&this.push(t),r(e);var i=this._readableState;i.reading=!1,(i.needReadable||i.length0&&void 0!==arguments[0]?arguments[0]:[],t=Array.isArray(e)?e:[e];t.forEach(function(e){e&&e.locale&&(a.a.__addLocaleData(e),l.a.__addLocaleData(e))})}function E(e){var t=(e||"").split("-");while(t.length>0){if(S(t.join("-")))return!0;t.pop()}return!1}function S(e){var t=e&&e.toLowerCase();return!(!a.a.__localeData__[t]||!l.a.__localeData__[t])}var C="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},k=(function(){function e(e){this.value=e}function t(t){var n,r;function i(e,t){return new Promise(function(i,a){var s={key:e,arg:t,resolve:i,reject:a,next:null};r?r=r.next=s:(n=r=s,o(e,t))})}function o(n,r){try{var i=t[n](r),s=i.value;s instanceof e?Promise.resolve(s.value).then(function(e){o("next",e)},function(e){o("throw",e)}):a(i.done?"return":"normal",i.value)}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1});break}n=n.next,n?o(n.key,n.arg):r=null}this._invoke=i,"function"!==typeof t.return&&(this.return=void 0)}"function"===typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)}}(),function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}),O=function(){function e(e,t){for(var n=0;n=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},R=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t},j=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t":">","<":"<",'"':""","'":"'"},ne=/[&><"']/g;function re(e){return(""+e).replace(ne,function(e){return te[e]})}function ie(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function oe(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intl;g()(t,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function ae(e,t){if(e===t)return!0;if("object"!==("undefined"===typeof e?"undefined":C(e))||null===e||"object"!==("undefined"===typeof t?"undefined":C(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=Object.prototype.hasOwnProperty.bind(t),o=0;o3&&void 0!==arguments[3]?arguments[3]:{},l=a.intl,c=void 0===l?{}:l,u=s.intl,h=void 0===u?{}:u;return!ae(t,r)||!ae(n,i)||!(h===c||ae(ie(h,ee),ie(c,ee)))}function le(e,t){var n=t?"\n"+t:"";return"[React Intl] "+e+n}function ce(e){0}function ue(e){return e.displayName||e.name||"Component"}function he(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.intlPropName,r=void 0===n?"intl":n,i=t.withRef,o=void 0!==i&&i,a=function(t){function n(e,t){k(this,n);var r=R(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return oe(t),r}return P(n,t),O(n,[{key:"getWrappedInstance",value:function(){return g()(o,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this._wrappedInstance}},{key:"render",value:function(){var t=this;return f.a.createElement(e,A({},this.props,T({},r,this.context.intl),{ref:o?function(e){return t._wrappedInstance=e}:null}))}}]),n}(h["Component"]);return a.displayName="InjectIntl("+ue(e)+")",a.contextTypes={intl:Y},a.WrappedComponent=e,p()(a,e)}function fe(e){return e}function de(e){return a.a.prototype._resolveLocale(e)}function pe(e){return a.a.prototype._findPluralRuleFunction(e)}var me=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,e);var r="ordinal"===n.style,i=pe(de(t));this.format=function(e){return i(e,r)}},ge=Object.keys(X),ve=Object.keys(Q),ye=Object.keys(Z),be=Object.keys(J),we={second:60,minute:60,hour:24,day:30,month:12};function xe(e){var t=l.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month,t["second-short"]=e["second-short"],t["minute-short"]=e["minute-short"],t["hour-short"]=e["hour-short"],t["day-short"]=e["day-short"],t["month-short"]=e["month-short"]}function _e(e,t,n,r){var i=e&&e[t]&&e[t][n];if(i)return i;r(le("No "+t+" format named: "+n))}function Ee(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||ce,c=new Date(n),u=A({},a&&{timeZone:a},s&&_e(o,"date",s,l)),h=ie(r,ge,u);try{return t.getDateTimeFormat(i,h).format(c)}catch(e){l(le("Error formatting date.",e))}return String(c)}function Se(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.timeZone,s=r.format,l=e.onError||ce,c=new Date(n),u=A({},a&&{timeZone:a},s&&_e(o,"time",s,l)),h=ie(r,ge,u);h.hour||h.minute||h.second||(h=A({},h,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(i,h).format(c)}catch(e){l(le("Error formatting time.",e))}return String(c)}function Ce(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||ce,c=new Date(n),u=new Date(r.now),h=a&&_e(o,"relative",a,s),f=ie(r,ye,h),d=A({},l.a.thresholds);xe(we);try{return t.getRelativeFormat(i,f).format(c,{now:isFinite(u)?u:t.now()})}catch(e){s(le("Error formatting relative time.",e))}finally{xe(d)}return String(c)}function ke(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=r.format,s=e.onError||ce,l=a&&_e(o,"number",a,s),c=ie(r,ve,l);try{return t.getNumberFormat(i,c).format(n)}catch(e){s(le("Error formatting number.",e))}return String(n)}function Oe(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=ie(r,be),a=e.onError||ce;try{return t.getPluralFormat(i,o).format(n)}catch(e){a(le("Error formatting plural.",e))}return"other"}function Te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.locale,o=e.formats,a=e.messages,s=e.defaultLocale,l=e.defaultFormats,c=n.id,u=n.defaultMessage;g()(c,"[React Intl] An `id` must be provided to format a message.");var h=a&&a[c],f=Object.keys(r).length>0;if(!f)return h||u||c;var d=void 0,p=e.onError||ce;if(h)try{var m=t.getMessageFormat(h,i,o);d=m.format(r)}catch(e){p(le('Error formatting message: "'+c+'" for locale: "'+i+'"'+(u?", using default message as fallback.":""),e))}else(!u||i&&i.toLowerCase()!==s.toLowerCase())&&p(le('Missing message: "'+c+'" for locale: "'+i+'"'+(u?", using default message as fallback.":"")));if(!d&&u)try{var v=t.getMessageFormat(u,s,l);d=v.format(r)}catch(e){p(le('Error formatting the default message for: "'+c+'"',e))}return d||p(le('Cannot format message: "'+c+'", using message '+(h||u?"source":"id")+" as fallback.")),d||h||u||c}function Ae(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"===typeof n?re(n):n,e},{});return Te(e,t,n,i)}var Pe=Object.freeze({formatDate:Ee,formatTime:Se,formatRelative:Ce,formatNumber:ke,formatPlural:Oe,formatMessage:Te,formatHTMLMessage:Ae}),Me=Object.keys(K),Re=Object.keys(G),je={formats:{},messages:{},timeZone:null,textComponent:"span",defaultLocale:"en",defaultFormats:{},onError:ce},Le=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,t);var r=R(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));g()("undefined"!==typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var i=n.intl,o=void 0;o=isFinite(e.initialNow)?Number(e.initialNow):i?i.now():Date.now();var s=i||{},c=s.formatters,u=void 0===c?{getDateTimeFormat:w(Intl.DateTimeFormat),getNumberFormat:w(Intl.NumberFormat),getMessageFormat:w(a.a),getRelativeFormat:w(l.a),getPluralFormat:w(me)}:c;return r.state=A({},u,{now:function(){return r._didDisplay?Date.now():o}}),r}return P(t,e),O(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=ie(this.props,Me,e);for(var n in je)void 0===t[n]&&(t[n]=je[n]);if(!E(t.locale)){var r=t,i=r.locale,o=r.defaultLocale,a=r.defaultFormats,s=r.onError;s(le('Missing locale data for locale: "'+i+'". Using default locale: "'+o+'" as fallback.')),t=A({},t,{locale:o,formats:a,messages:je.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return Re.reduce(function(n,r){return n[r]=Pe[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,i=M(n,["now"]);return{intl:A({},e,t,{formatters:i,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?i-1:0),a=1;a0;if(v){var y=Math.floor(1099511627776*Math.random()).toString(16),b=function(){var e=0;return function(){return"ELEMENT-"+y+"-"+(e+=1)}}();p="@__"+y+"__@",m={},g={},Object.keys(c).forEach(function(e){var t=c[e];if(Object(h["isValidElement"])(t)){var n=b();m[e]=p+n+p,g[n]=t}else m[e]=t})}var w={id:a,description:s,defaultMessage:l},x=n(w,m||c),_=void 0,E=g&&Object.keys(g).length>0;return _=E?x.split(p).filter(function(e){return!!e}).map(function(e){return g[e]||e}):[x],"function"===typeof d?d.apply(void 0,j(_)):h["createElement"].apply(void 0,[f,null].concat(j(_)))}}]),t}(h["Component"]);Ye.displayName="FormattedMessage",Ye.contextTypes={intl:Y},Ye.defaultProps={values:{}};var Xe=function(e){function t(e,n){k(this,t);var r=R(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return oe(n),r}return P(t,e),O(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values,n=e.values;if(!ae(n,t))return!0;for(var r=A({},e,{values:t}),i=arguments.length,o=Array(i>1?i-1:0),a=1;a{this.state.visible||this.setState({submit:{}})})}save(){this.props.dispatch({type:"notice/save",params:p()({},this.state.submit),callback:()=>{this.modalVisible()}})}drop(e){this.props.dispatch({type:"notice/drop",id:e.id})}render(){var e=this.props.notice,t=e.notices,n=e.fetchLoading,r=[{title:"#",dataIndex:"id",key:"id"},{title:"\u663e\u793a",dataIndex:"show",key:"show",render:(e,t)=>{return g.a.createElement(f["a"],{size:"small",onChange:()=>this.props.dispatch({type:"notice/show",id:t.id}),checked:e})}},{title:"\u6807\u9898",dataIndex:"title",key:"title"},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"created_at",key:"created_at",align:"right",render:e=>{return b()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,n,r)=>{return g.a.createElement("div",null,g.a.createElement("a",{onClick:()=>this.setState({submit:t[r]},()=>this.modalVisible()),href:"javascript:void(0);"},"\u7f16\u8f91"),g.a.createElement(h["a"],{type:"vertical"}),g.a.createElement("a",{onClick:()=>this.drop(n),href:"javascript:void(0);"},"\u5220\u9664"))}}];return g.a.createElement(v["a"],i()({},this.props,{title:"\u516c\u544a\u7ba1\u7406"}),g.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),g.a.createElement(x["a"],{loading:n},g.a.createElement("div",{className:"block block-rounded"},g.a.createElement("div",{className:"bg-white"},g.a.createElement("div",{style:{padding:15}},g.a.createElement(c["a"],{onClick:()=>this.modalVisible()},g.a.createElement(u["a"],{type:"plus"})," \u6dfb\u52a0\u516c\u544a")),g.a.createElement(l["a"],{tableLayout:"auto",dataSource:t,pagination:!1,columns:r,scroll:{x:950}})))),g.a.createElement(o["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u516c\u544a":"\u65b0\u5efa\u516c\u544a"),visible:this.state.visible,onCancel:()=>this.modalVisible(),onOk:()=>this.state.saveLoading||this.save(),okText:this.state.saveLoading?g.a.createElement(u["a"],{type:"loading"}):"\u63d0\u4ea4",cancelText:"\u53d6\u6d88"},g.a.createElement("div",null,g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{for:"example-text-input-alt"},"\u6807\u9898"),g.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u516c\u544a\u6807\u9898",value:this.state.submit.title,onChange:e=>{this.setState({submit:p()({},this.state.submit,{title:e.target.value})})}})),g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{for:"example-text-input-alt"},"\u516c\u544a\u5185\u5bb9"),g.a.createElement(s["a"].TextArea,{rows:12,value:this.state.submit.content,placeholder:"\u8bf7\u8f93\u5165\u516c\u544a\u5185\u5bb9",onChange:e=>{this.setState({submit:p()({},this.state.submit,{content:e.target.value})})}})),g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u516c\u544a\u6807\u7b7e"),g.a.createElement(a["a"],{mode:"tags",value:this.state.submit.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>{this.setState({submit:p()({},this.state.submit,{tags:e.length>0?e:null})})}})),g.a.createElement("div",{className:"form-group"},g.a.createElement("label",{for:"example-text-input-alt"},"\u56fe\u7247URL"),g.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u56fe\u7247URL",value:this.state.submit.img_url,onChange:e=>{this.setState({submit:p()({},this.state.submit,{img_url:e.target.value})})}})))))}}t["default"]=Object(w["c"])(e=>{var t=e.notice;return{notice:t}})(_)},Jaki:function(e,t,n){"use strict";if(n("8Z/V")){var r=n("FqPH"),i=n("c0Oy"),o=n("wUWy"),a=n("WGNW"),s=n("88Vn"),l=n("yLMY"),c=n("wHrr"),u=n("YEVI"),h=n("pQGJ"),f=n("VPOE"),d=n("zNw+"),p=n("AUWw"),m=n("OsVd"),g=n("nYLq"),v=n("Spc3"),y=n("8BMt"),b=n("oxo0"),w=n("2a/h"),x=n("u8+u"),_=n("il4q"),E=n("ULMT"),S=n("/Mfd"),C=n("BFt8"),k=n("9HFh").f,O=n("BnQZ"),T=n("kCK5"),A=n("gL7N"),P=n("+o5p"),M=n("Lnex"),R=n("VeyY"),j=n("OERk"),L=n("yw4e"),D=n("cQyX"),N=n("gRqi"),I=n("7Uk0"),$=n("wlPd"),F=n("V5/1"),B=n("15BC"),V=F.f,W=B.f,H=i.RangeError,U=i.TypeError,z=i.Uint8Array,q="ArrayBuffer",K="Shared"+q,G="BYTES_PER_ELEMENT",Y="prototype",X=Array[Y],Q=l.ArrayBuffer,Z=l.DataView,J=P(0),ee=P(2),te=P(3),ne=P(4),re=P(5),ie=P(6),oe=M(!0),ae=M(!1),se=j.values,le=j.keys,ce=j.entries,ue=X.lastIndexOf,he=X.reduce,fe=X.reduceRight,de=X.join,pe=X.sort,me=X.slice,ge=X.toString,ve=X.toLocaleString,ye=A("iterator"),be=A("toStringTag"),we=T("typed_constructor"),xe=T("def_constructor"),_e=s.CONSTR,Ee=s.TYPED,Se=s.VIEW,Ce="Wrong length!",ke=P(1,function(e,t){return Me(R(e,e[xe]),t)}),Oe=o(function(){return 1===new z(new Uint16Array([1]).buffer)[0]}),Te=!!z&&!!z[Y].set&&o(function(){new z(1).set({})}),Ae=function(e,t){var n=p(e);if(n<0||n%t)throw H("Wrong offset!");return n},Pe=function(e){if(x(e)&&Ee in e)return e;throw U(e+" is not a typed array!")},Me=function(e,t){if(!(x(e)&&we in e))throw U("It is not a typed array constructor!");return new e(t)},Re=function(e,t){return je(R(e,e[xe]),t)},je=function(e,t){var n=0,r=t.length,i=Me(e,r);while(r>n)i[n]=t[n++];return i},Le=function(e,t,n){V(e,t,{get:function(){return this._d[n]}})},De=function(e){var t,n,r,i,o,a,s=_(e),l=arguments.length,u=l>1?arguments[1]:void 0,h=void 0!==u,f=O(s);if(void 0!=f&&!E(f)){for(a=f.call(s),r=[],t=0;!(o=a.next()).done;t++)r.push(o.value);s=r}for(h&&l>2&&(u=c(u,arguments[2],2)),t=0,n=m(s.length),i=Me(this,n);n>t;t++)i[t]=h?u(s[t],t):s[t];return i},Ne=function(){var e=0,t=arguments.length,n=Me(this,t);while(t>e)n[e]=arguments[e++];return n},Ie=!!z&&o(function(){ve.call(new z(1))}),$e=function(){return ve.apply(Ie?me.call(Pe(this)):Pe(this),arguments)},Fe={copyWithin:function(e,t){return $.call(Pe(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return ne(Pe(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return I.apply(Pe(this),arguments)},filter:function(e){return Re(this,ee(Pe(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return re(Pe(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ie(Pe(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){J(Pe(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ae(Pe(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return oe(Pe(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return de.apply(Pe(this),arguments)},lastIndexOf:function(e){return ue.apply(Pe(this),arguments)},map:function(e){return ke(Pe(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return he.apply(Pe(this),arguments)},reduceRight:function(e){return fe.apply(Pe(this),arguments)},reverse:function(){var e,t=this,n=Pe(t).length,r=Math.floor(n/2),i=0;while(i1?arguments[1]:void 0)},sort:function(e){return pe.call(Pe(this),e)},subarray:function(e,t){var n=Pe(this),r=n.length,i=v(e,r);return new(R(n,n[xe]))(n.buffer,n.byteOffset+i*n.BYTES_PER_ELEMENT,m((void 0===t?r:v(t,r))-i))}},Be=function(e,t){return Re(this,me.call(Pe(this),e,t))},Ve=function(e){Pe(this);var t=Ae(arguments[1],1),n=this.length,r=_(e),i=m(r.length),o=0;if(i+t>n)throw H(Ce);while(o255?255:255&r),i.v[d](n*t+i.o,r,Oe)},A=function(e,t){V(e,t,{get:function(){return O(this,t)},set:function(e){return T(this,t,e)},enumerable:!0})};b?(p=n(function(e,n,r,i){u(e,p,c,"_d");var o,a,s,l,h=0,d=0;if(x(n)){if(!(n instanceof Q||(l=w(n))==q||l==K))return Ee in n?je(p,n):De.call(p,n);o=n,d=Ae(r,t);var v=n.byteLength;if(void 0===i){if(v%t)throw H(Ce);if(a=v-d,a<0)throw H(Ce)}else if(a=m(i)*t,a+d>v)throw H(Ce);s=a/t}else s=g(n),a=s*t,o=new Q(a);f(e,"_d",{b:o,o:d,l:a,e:s,v:new Z(o)});while(h{this.getData()},3e3)}render(){var e=this.props.system,t=e.queueStats,n=(e.getQueueStatsLoading,e.queueWorkload);e.getQueueWorkloadLoading;return s.a.createElement(l["a"],i()({},this.props,{title:"\u961f\u5217\u76d1\u63a7"}),s.a.createElement(u["a"],{loading:!t},s.a.createElement("div",{className:"block block-rounded "},s.a.createElement("div",{className:"block-header block-header-default"},s.a.createElement("h3",{className:"block-title"},"\u603b\u89c8")),s.a.createElement("div",{className:"block-content p-0"},s.a.createElement("div",{className:"row no-gutters"},s.a.createElement("div",{className:"col-lg-6 col-xl-3 border-right p-4 border-bottom"},s.a.createElement("div",null,s.a.createElement("div",null,"\u5f53\u524d\u4f5c\u4e1a\u91cf"),s.a.createElement("div",{className:"mt-4 font-size-h3"},(null===t||void 0===t?void 0:t.jobsPerMinute)||"0"))),s.a.createElement("div",{className:"col-lg-6 col-xl-3 border-right p-4 border-bottom"},s.a.createElement("div",null,s.a.createElement("div",null,"\u8fd1\u4e00\u5c0f\u65f6\u5904\u7406\u91cf"),s.a.createElement("div",{className:"mt-4 font-size-h3"},(null===t||void 0===t?void 0:t.recentJobs)||"0"))),s.a.createElement("div",{className:"col-lg-6 col-xl-3 border-right p-4 border-bottom"},s.a.createElement("div",null,s.a.createElement("div",null,"7\u65e5\u5185\u62a5\u9519\u6570\u91cf"),s.a.createElement("div",{className:"mt-4 font-size-h3"},(null===t||void 0===t?void 0:t.failedJobs)||"0"))),s.a.createElement("div",{className:"col-lg-6 col-xl-3 p-4 border-bottom overflow-hidden"},s.a.createElement("div",null,s.a.createElement("div",null,"\u72b6\u6001"),s.a.createElement("div",{className:"mt-4 font-size-h3"},t&&((null===t||void 0===t?void 0:t.status)?"\u8fd0\u884c\u4e2d":"\u672a\u542f\u52a8")),t&&((null===t||void 0===t?void 0:t.status)?s.a.createElement("i",{class:"si si-check text-success",style:{position:"absolute",fontSize:100,right:-20,bottom:-20}}):s.a.createElement("i",{class:"si si-close text-danger",style:{position:"absolute",fontSize:100,right:-20,bottom:-20}})))))))),s.a.createElement(u["a"],{loading:!n},s.a.createElement("div",{className:"block block-rounded "},s.a.createElement("div",{className:"block-header block-header-default"},s.a.createElement("h3",{className:"block-title"},"\u5f53\u524d\u4f5c\u4e1a\u8be6\u60c5")),s.a.createElement("div",{className:"block-content p-0"},s.a.createElement(o["a"],{columns:[{title:"\u961f\u5217\u540d\u79f0",dataIndex:"name",key:"name",render:e=>{var t={order_handle:"\u8ba2\u5355\u961f\u5217",send_email:"\u90ae\u4ef6\u961f\u5217",send_email_mass:"\u90ae\u4ef6\u7fa4\u53d1\u961f\u5217",send_telegram:"Telegram\u6d88\u606f\u961f\u5217",stat:"\u7edf\u8ba1\u961f\u5217",traffic_fetch:"\u6d41\u91cf\u6d88\u8d39\u961f\u5217"};return t[e]}},{title:"\u4f5c\u4e1a\u91cf",dataIndex:"processes",key:"processes"},{title:"\u4efb\u52a1\u91cf",dataIndex:"length",key:"length"},{title:"\u5360\u7528\u65f6\u95f4",dataIndex:"wait",key:"wait",align:"right",render:e=>e+"s"}],dataSource:n&&n.filter(e=>"default"!==e.name),pagination:!1})))))}}t["default"]=Object(c["c"])(e=>{var t=e.system;return{system:t}})(h)},Ji7U:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");Object.defineProperty(e,"prototype",{value:Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),writable:!1}),t&&r(e,t)}n.d(t,"a",function(){return i})},KQm4:function(e,t,n){"use strict";var r=n("a3WO");function i(e){if(Array.isArray(e))return Object(r["a"])(e)}var o=n("25BE"),a=n("BsWD");function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e){return i(e)||Object(o["a"])(e)||Object(a["a"])(e)||s()}n.d(t,"a",function(){return l})},KUxP:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},KbcA:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("iCc5"),a=n.n(o),s=n("FYw3"),l=n.n(s),c=n("mRg0"),u=n.n(c),h=n("q1tI"),f=n.n(h),d=n("17x9"),p=n.n(d),m=n("4IlW"),g=n("VCL8"),v=n("2zpS"),y=n("JDzL"),b=n("jBZG"),w=n("F4Vz"),x=n("wd/R"),_=n.n(x),E=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return r.onKeyDown=function(e){var t=e.keyCode,n=e.ctrlKey||e.metaKey,i=r.state.value,o=r.props.disabledDate,a=i;switch(t){case m["a"].DOWN:a=i.clone(),a.add(3,"months");break;case m["a"].UP:a=i.clone(),a.add(-3,"months");break;case m["a"].LEFT:a=i.clone(),n?a.add(-1,"years"):a.add(-1,"months");break;case m["a"].RIGHT:a=i.clone(),n?a.add(1,"years"):a.add(1,"months");break;case m["a"].ENTER:return o&&o(i)||r.onSelect(i),e.preventDefault(),1;default:return}if(a!==i)return r.setValue(a),e.preventDefault(),1},r.handlePanelChange=function(e,t){"date"!==t&&r.setState({mode:t})},r.state={mode:"month",value:n.value||n.defaultValue||_()(),selectedValue:n.selectedValue||n.defaultSelectedValue},r}return u()(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=t.mode,r=t.value,i=f.a.createElement("div",{className:e.prefixCls+"-month-calendar-content"},f.a.createElement("div",{className:e.prefixCls+"-month-header-wrap"},f.a.createElement(v["a"],{prefixCls:e.prefixCls,mode:n,value:r,locale:e.locale,disabledMonth:e.disabledDate,monthCellRender:e.monthCellRender,monthCellContentRender:e.monthCellContentRender,onMonthSelect:this.onSelect,onValueChange:this.setValue,onPanelChange:this.handlePanelChange})),f.a.createElement(y["a"],{prefixCls:e.prefixCls,renderFooter:e.renderFooter}));return this.renderRoot({className:e.prefixCls+"-month-calendar",children:i})},t}(f.a.Component);E.propTypes=i()({},b["b"],w["c"],{monthCellRender:p.a.func,value:p.a.object,defaultValue:p.a.object,selectedValue:p.a.object,defaultSelectedValue:p.a.object,disabledDate:p.a.func}),E.defaultProps=i()({},w["b"],b["a"]),t["a"]=Object(g["polyfill"])(Object(b["c"])(Object(w["a"])(E)))},Kwbf:function(e,t,n){"use strict";var r={};function i(e,t){0}function o(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function a(e,t){o(i,e,t)}t["a"]=a},KyW6:function(e,t,n){"use strict";n.r(t);n("Y/ft"),n("qIgq");var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("1l/V"),l=n.n(s),c=(n("0wlq"),n("dcFJ"),n("VxKu"),n("QsMh"),n("kgWH"),n("/gYn"),n("Q6cQ"),n("nwK/"),n("O42g"),n("XrRV"),n("jN/G"),n("PkQq"),n("er1Y"),n("/mWb"),n("jjMW"),n("OHgp"),n("EEQl"),n("HXXR"),n("kWR5"),n("Bz7s"),n("lZXM"),n("DBt0"),n("hIUm"),n("G7Hh"),n("DFAo"),n("0sxA"),n("rUcv"),n("3m+/"),n("9nSz"),n("IR7R"),n("UQt1"),n("u2w5"),n("zxrt"),n("Bus3"),n("OR3X"),n("o175"),n("XP1/"),n("w8uh"),n("HCMe"),n("QEzc"),n("QeHl"),n("SPFY"),n("7RDE"),n("fKm+"),n("N4uP"),n("zr8x"),n("zQzA"),n("wOl0"),n("RFCh"),n("q1tI")),u=n.n(c),h=n("i8i4"),f=n.n(h),d=n("sa7a"),p=n.n(d);n.d(t,"ReactDOMServer",function(){return v});var m=n("PszG");window.g_plugins=m,m.init({validKeys:["patchRoutes","render","rootContainer","modifyRouteProps","onRouteChange","modifyInitialProps","initialProps","dva"]}),m.use(n("3JrO")),m.use(n("ERIh"));var g=n("xg5P")._onCreate();window.g_app=g;var v,y=function(){var e=l()(i.a.mark(function e(){var t,r,o,s,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:if(window.g_isBrowser=!0,t={},!window.g_useSSR){e.next=6;break}t=window.g_initialData,e.next=18;break;case 6:if(r=location.pathname,o=p()(n("i4x8").routes,r),!(o&&o.component&&o.component.getInitialProps)){e.next=18;break}if(s=m.apply("modifyInitialProps",{initialValue:{}}),!o.component.getInitialProps){e.next=16;break}return e.next=13,o.component.getInitialProps(a()({route:o,isServer:!1,location:location},s));case 13:e.t0=e.sent,e.next=17;break;case 16:e.t0={};case 17:t=e.t0;case 18:l=m.apply("rootContainer",{initialValue:u.a.createElement(n("i4x8").default,t)}),f.a[window.g_useSSR?"hydrate":"render"](l,document.getElementById("root"));case 20:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),b=m.compose("render",{initialValue:y}),w=[];Promise.all(w).then(()=>{b()}).catch(e=>{window.console&&window.console.error(e)});t["default"]=null;n("hh8c")},L9pr:function(e,t,n){"use strict";t["a"]={today:"\u4eca\u5929",now:"\u6b64\u523b",backToToday:"\u8fd4\u56de\u4eca\u5929",ok:"\u786e\u5b9a",timeSelect:"\u9009\u62e9\u65f6\u95f4",dateSelect:"\u9009\u62e9\u65e5\u671f",weekSelect:"\u9009\u62e9\u5468",clear:"\u6e05\u9664",month:"\u6708",year:"\u5e74",previousMonth:"\u4e0a\u4e2a\u6708 (\u7ffb\u9875\u4e0a\u952e)",nextMonth:"\u4e0b\u4e2a\u6708 (\u7ffb\u9875\u4e0b\u952e)",monthSelect:"\u9009\u62e9\u6708\u4efd",yearSelect:"\u9009\u62e9\u5e74\u4efd",decadeSelect:"\u9009\u62e9\u5e74\u4ee3",yearFormat:"YYYY\u5e74",dayFormat:"D\u65e5",dateFormat:"YYYY\u5e74M\u6708D\u65e5",dateTimeFormat:"YYYY\u5e74M\u6708D\u65e5 HH\u65f6mm\u5206ss\u79d2",previousYear:"\u4e0a\u4e00\u5e74 (Control\u952e\u52a0\u5de6\u65b9\u5411\u952e)",nextYear:"\u4e0b\u4e00\u5e74 (Control\u952e\u52a0\u53f3\u65b9\u5411\u952e)",previousDecade:"\u4e0a\u4e00\u5e74\u4ee3",nextDecade:"\u4e0b\u4e00\u5e74\u4ee3",previousCentury:"\u4e0a\u4e00\u4e16\u7eaa",nextCentury:"\u4e0b\u4e00\u4e16\u7eaa"}},LIAx:function(e,t,n){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(t,"__esModule",{value:!0}),t["default"]=a;var i=n("E0u0"),o=r(i);function a(e,t,n,r){function i(t){var r=new o["default"](t);n.call(e,r)}if(e.addEventListener){var a=function(){var n=!1;return"object"===typeof r?n=r.capture||!1:"boolean"===typeof r&&(n=r),e.addEventListener(t,i,r||!1),{v:{remove:function(){e.removeEventListener(t,i,n)}}}}();if("object"===typeof a)return a.v}else if(e.attachEvent)return e.attachEvent("on"+t,i),{remove:function(){e.detachEvent("on"+t,i)}}}e.exports=t["default"]},LLXN:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t1&&void 0!==arguments[1])||arguments[1],n=window,r=n.g_langSeparator,i=void 0===r?"-":r,o=new RegExp("^([a-z]{2})".concat(i,"?([A-Z]{2})?$"));if(void 0!==e&&!o.test(e))throw new Error("setLocale lang format error");if(u()!==e&&(window.g_lang=e,window.localStorage.setItem("umi_locale",e||""),a&&!t&&a.reloadAppLocale(),t&&window.location.reload(),window.dispatchEvent)){var s=new Event("languagechange");window.dispatchEvent(s)}}function u(){var e=window,t=e.g_langSeparator,n=void 0===t?"-":t,r=e.g_lang,i="undefined"!==typeof localStorage?window.localStorage.getItem("umi_locale"):"",o="undefined"!==typeof navigator&&"string"===typeof navigator.language,a=o?navigator.language.split("-").join(n):"";return i||r||a}var h,f=l({lang:u()}),d={};function p(e){h=e}function m(e){a=e}["formatMessage","formatHTMLMessage","formatDate","formatTime","formatRelative","formatNumber","formatPlural","LangContext","now","onError"].forEach(function(e){d[e]=function(){var t;return h&&h[e]?(t=h[e]).call.apply(t,[h].concat(Array.prototype.slice.call(arguments))):(console&&console.warn&&console.warn("[umi-plugin-locale] ".concat(e," not initialized yet, you should use it after react app mounted.")),null)}}),e.exports=i({},s,{},d,{setLocale:c,getLocale:u,_setIntlObject:p,LangContext:f,_setLocaleContext:m})},LMyI:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={switchLoading:{},saveLoading:!1};t["default"]={name:"serverShadowsocks",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/server/shadowsocks/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/shadowsocks/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},copy(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/shadowsocks/copy",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/server/shadowsocks/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"serverManage/getNodes"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()}}}},LPTA:function(e,t,n){"use strict";n.d(t,"e",function(){return o}),n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return l}),n.d(t,"c",function(){return c});var r=n("ItGF"),i=1;r["a"].hasGlobalWindow&&(i=Math.max(window.devicePixelRatio||window.screen&&window.screen.deviceXDPI/window.screen.logicalXDPI||1,1));var o=i,a=.4,s="#333",l="#ccc",c="#eee"},LcXL:function(e,t,n){"use strict";var r=n("mrSG"),i=n("bYtY"),o=n("1bdT"),a=n("mFDi"),s=function(e){function t(t){var n=e.call(this)||this;return n.isGroup=!0,n._children=[],n.attr(t),n}return Object(r["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.children=function(){return this._children.slice()},t.prototype.childAt=function(e){return this._children[e]},t.prototype.childOfName=function(e){for(var t=this._children,n=0;n=0&&(n.splice(r,0,e),this._doAdd(e))}return this},t.prototype.replace=function(e,t){var n=i["p"](this._children,e);return n>=0&&this.replaceAt(t,n),this},t.prototype.replaceAt=function(e,t){var n=this._children,r=n[t];if(e&&e!==this&&e.parent!==this&&e!==r){n[t]=e,r.parent=null;var i=this.__zr;i&&r.removeSelfFromZr(i),this._doAdd(e)}return this},t.prototype._doAdd=function(e){e.parent&&e.parent.remove(e),e.parent=this;var t=this.__zr;t&&t!==e.__zr&&e.addSelfToZr(t),t&&t.refresh()},t.prototype.remove=function(e){var t=this.__zr,n=this._children,r=i["p"](n,e);return r<0?this:(n.splice(r,1),e.parent=null,t&&e.removeSelfFromZr(t),t&&t.refresh(),this)},t.prototype.removeAll=function(){for(var e=this._children,t=this.__zr,n=0;n0)return!0;return!1}function ce(e,t){var n=new RegExp("[".concat(t.join(),"]"));return e.split(n).filter(function(e){return e})}function ue(e,t){if(t.props.disabled)return!1;var n=J(K(t,this.props.optionFilterProp)).join("");return n.toLowerCase().indexOf(e.toLowerCase())>-1}function he(e,t){if(!Z(t)&&!G(t)&&"string"!==typeof e)throw new Error("Invalid `value` of type `".concat(typeof e,"` supplied to Option, ")+"expected `string` when `tags/combobox` is `true`.")}function fe(e,t){return function(n){e[t]=n}}function de(){var e=(new Date).getTime(),t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:7&n|8).toString(16)});return t}function pe(){return pe=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]?arguments[1]:{},r=t.needFocus,i=t.fireSearch,o=n.props,a=n.state;if(a.open!==e){n.props.onDropdownVisibleChange&&n.props.onDropdownVisibleChange(e);var s={open:e,backfillValue:""};!e&&Z(o)&&o.showSearch&&n.setInputValue("",i),e||n.maybeFocus(e,!!r),n.setState($e({open:e},s),function(){e&&n.maybeFocus(e,!!r)})}else n.maybeFocus(e,!!r)},n.setInputValue=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=n.props.onSearch;e!==n.state.inputValue&&n.setState(function(n){return t&&e!==n.inputValue&&r&&r(e),{inputValue:e}},n.forcePopupAlign)},n.getValueByInput=function(e){var t=n.props,r=t.multiple,i=t.tokenSeparators,o=n.state.value,a=!1;return ce(e,i).forEach(function(e){var t=[e];if(r){var i=n.getValueByLabel(e);i&&-1===ne(o,i)&&(o=o.concat(i),a=!0,n.fireSelect(i))}else-1===ne(o,e)&&(o=o.concat(t),a=!0,n.fireSelect(e))}),a?o:void 0},n.getRealOpenState=function(e){var t=n.props.open;if("boolean"===typeof t)return t;var r=(e||n.state).open,i=n._options||[];return!Q(n.props)&&n.props.showSearch||r&&!i.length&&(r=!1),r},n.markMouseDown=function(){n._mouseDown=!0},n.markMouseLeave=function(){n._mouseDown=!1},n.handleBackfill=function(e){if(n.props.backfill&&(Z(n.props)||Y(n.props))){var t=q(e);Y(n.props)&&n.setInputValue(t,!1),n.setState({value:[t],backfillValue:t})}},n.filterOption=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ue,i=n.state.value,o=i[i.length-1];if(!e||o&&o===n.state.backfillValue)return!0;var a=n.props.filterOption;return"filterOption"in n.props?!0===a&&(a=r.bind(Ue(n))):a=r.bind(Ue(n)),!a||("function"===typeof a?a.call(Ue(n),e,t):!t.props.disabled)},n.timeoutFocus=function(){var e=n.props.onFocus;n.focusTimer&&n.clearFocusTime(),n.focusTimer=window.setTimeout(function(){e&&e()},10)},n.clearFocusTime=function(){n.focusTimer&&(clearTimeout(n.focusTimer),n.focusTimer=null)},n.clearBlurTime=function(){n.blurTimer&&(clearTimeout(n.blurTimer),n.blurTimer=null)},n.clearComboboxTime=function(){n.comboboxTimer&&(clearTimeout(n.comboboxTimer),n.comboboxTimer=null)},n.updateFocusClassName=function(){var e=n.rootRef,t=n.props;n._focused?P()(e).add("".concat(t.prefixCls,"-focused")):P()(e).remove("".concat(t.prefixCls,"-focused"))},n.maybeFocus=function(e,t){if(t||e){var r=n.getInputDOMNode(),i=document,o=i.activeElement;r&&(e||Q(n.props))?o!==r&&(r.focus(),n._focused=!0):o!==n.selectionRef&&n.selectionRef&&(n.selectionRef.focus(),n._focused=!0)}},n.removeSelected=function(e,t){var r=n.props;if(!r.disabled&&!n.isChildDisabled(e)){t&&t.stopPropagation&&t.stopPropagation();var i=n.state.value,o=i.filter(function(t){return t!==e}),a=X(r);if(a){var s=e;r.labelInValue&&(s={key:e,label:n.getLabelBySingleValue(e)}),r.onDeselect&&r.onDeselect(s,n.getOptionBySingleValue(e))}n.fireChange(o)}},n.openIfHasChildren=function(){var e=n.props;(r["Children"].count(e.children)||Z(e))&&n.setOpenState(!0)},n.fireSelect=function(e){n.props.onSelect&&n.props.onSelect(n.getVLBySingleValue(e),n.getOptionBySingleValue(e))},n.fireChange=function(e){var t=n.props;"value"in t||n.setState({value:e},n.forcePopupAlign);var r=n.getVLForOnChange(e),i=n.getOptionsBySingleValue(e);t.onChange&&t.onChange(r,X(n.props)?i:i[0])},n.isChildDisabled=function(e){return L(n.props.children).some(function(t){var n=q(t);return n===e&&t.props&&t.props.disabled})},n.forcePopupAlign=function(){n.state.open&&n.selectTriggerRef&&n.selectTriggerRef.triggerRef&&n.selectTriggerRef.triggerRef.forcePopupAlign()},n.renderFilterOptions=function(){var e=n.state.inputValue,t=n.props,i=t.children,o=t.tags,a=t.notFoundContent,s=[],l=[],c=!1,u=n.renderFilterOptionsFromChildren(i,l,s);if(o){var h=n.state.value;h=h.filter(function(t){return-1===l.indexOf(t)&&(!e||String(t).indexOf(String(e))>-1)}),h.sort(function(e,t){return e.length-t.length}),h.forEach(function(e){var t=e,n=r["createElement"](R["b"],{style:oe,role:"option",attribute:ae,value:t,key:t},t);u.push(n),s.push(n)}),e&&s.every(function(t){return q(t)!==e})&&u.unshift(r["createElement"](R["b"],{style:oe,role:"option",attribute:ae,value:e,key:e},e))}return!u.length&&a&&(c=!0,u=[r["createElement"](R["b"],{style:oe,attribute:ae,disabled:!0,role:"option",value:"NOT_FOUND",key:"NOT_FOUND"},a)]),{empty:c,options:u}},n.renderFilterOptionsFromChildren=function(e,t,i){var o=[],a=n.props,s=n.state.inputValue,l=a.tags;return r["Children"].forEach(e,function(e){if(e){var a=e.type;if(a.isSelectOptGroup){var c=e.props.label,u=e.key;if(u||"string"!==typeof c?!c&&u&&(c=u):u=c,s&&n.filterOption(s,e)){var h=L(e.props.children).map(function(e){var t=q(e)||e.key;return r["createElement"](R["b"],$e({key:t,value:t},e.props))});o.push(r["createElement"](R["c"],{key:u,title:c},h))}else{var f=n.renderFilterOptionsFromChildren(e.props.children,t,i);f.length&&o.push(r["createElement"](R["c"],{key:u,title:c},f))}}else{F()(a.isSelectOption,"the children of `Select` should be `Select.Option` or `Select.OptGroup`, "+"instead of `".concat(a.name||a.displayName||e.type,"`."));var d=q(e);if(he(d,n.props),n.filterOption(s,e)){var p=r["createElement"](R["b"],$e({style:oe,attribute:ae,value:d,key:d,role:"option"},e.props));o.push(p),i.push(p)}l&&t.push(d)}}}),o},n.renderTopControlNode=function(){var e=n.state,t=e.open,i=e.inputValue,o=n.state.value,a=n.props,s=a.choiceTransitionName,l=a.prefixCls,c=a.maxTagTextLength,u=a.maxTagCount,h=a.showSearch,f=a.removeIcon,d=a.maxTagPlaceholder,p="".concat(l,"-selection__rendered"),m=null;if(Z(a)){var g=null;if(o.length){var v=!1,y=1;h&&t?(v=!i,v&&(y=.4)):v=!0;var b=o[0],w=n.getOptionInfoBySingleValue(b),x=w.label,_=w.title;g=r["createElement"]("div",{key:"value",className:"".concat(l,"-selection-selected-value"),title:z(_||x),style:{display:v?"block":"none",opacity:y}},x)}m=h?[g,r["createElement"]("div",{className:"".concat(l,"-search ").concat(l,"-search--inline"),key:"input",style:{display:t?"block":"none"}},n.getInputElement())]:[g]}else{var E,S=[],C=o;if(void 0!==u&&o.length>u){C=C.slice(0,u);var k=n.getVLForOnChange(o.slice(u,o.length)),O="+ ".concat(o.length-u," ...");d&&(O="function"===typeof d?d(k):d),E=r["createElement"]("li",$e({style:oe},ae,{role:"presentation",onMouseDown:te,className:"".concat(l,"-selection__choice ").concat(l,"-selection__choice__disabled"),key:"maxTagPlaceholder",title:z(O)}),r["createElement"]("div",{className:"".concat(l,"-selection__choice__content")},O))}X(a)&&(S=C.map(function(e){var t=n.getOptionInfoBySingleValue(e),i=t.label,o=t.title||i;c&&"string"===typeof i&&i.length>c&&(i="".concat(i.slice(0,c),"..."));var a=n.isChildDisabled(e),s=a?"".concat(l,"-selection__choice ").concat(l,"-selection__choice__disabled"):"".concat(l,"-selection__choice");return r["createElement"]("li",$e({style:oe},ae,{onMouseDown:te,className:s,role:"presentation",key:e||Ge,title:z(o)}),r["createElement"]("div",{className:"".concat(l,"-selection__choice__content")},i),a?null:r["createElement"]("span",{onClick:function(t){n.removeSelected(e,t)},className:"".concat(l,"-selection__choice__remove")},f||r["createElement"]("i",{className:"".concat(l,"-selection__choice__remove-icon")},"\xd7")))})),E&&S.push(E),S.push(r["createElement"]("li",{className:"".concat(l,"-search ").concat(l,"-search--inline"),key:"__input"},n.getInputElement())),m=X(a)&&s?r["createElement"](M["a"],{onLeave:n.onChoiceAnimationLeave,component:"ul",transitionName:s},S):r["createElement"]("ul",null,S)}return r["createElement"]("div",{className:p,ref:n.saveTopCtrlRef},n.getPlaceholderElement(),m)};var i=t.getOptionsInfoFromProps(e);if(e.tags&&"function"!==typeof e.filterOption){var o=Object.keys(i).some(function(e){return i[e].disabled});F()(!o,"Please avoid setting option to disabled in tags mode since user can always type text as tag.")}return n.state={value:t.getValueFromProps(e,!0),inputValue:e.combobox?t.getInputValueForCombobox(e,i,!0):"",open:e.defaultOpen,optionsInfo:i,backfillValue:"",skipBuildOptionsInfo:!0,ariaId:""},n.saveInputRef=fe(Ue(n),"inputRef"),n.saveInputMirrorRef=fe(Ue(n),"inputMirrorRef"),n.saveTopCtrlRef=fe(Ue(n),"topCtrlRef"),n.saveSelectTriggerRef=fe(Ue(n),"selectTriggerRef"),n.saveRootRef=fe(Ue(n),"rootRef"),n.saveSelectionRef=fe(Ue(n),"selectionRef"),n}return ze(t,e),Ve(t,[{key:"componentDidMount",value:function(){(this.props.autoFocus||this.state.open)&&this.focus(),this.setState({ariaId:de()})}},{key:"componentDidUpdate",value:function(){if(X(this.props)){var e=this.getInputDOMNode(),t=this.getInputMirrorDOMNode();e&&e.value&&t?(e.style.width="",e.style.width="".concat(t.clientWidth,"px")):e&&(e.style.width="")}this.forcePopupAlign()}},{key:"componentWillUnmount",value:function(){this.clearFocusTime(),this.clearBlurTime(),this.clearComboboxTime(),this.dropdownContainer&&(N["unmountComponentAtNode"](this.dropdownContainer),document.body.removeChild(this.dropdownContainer),this.dropdownContainer=null)}},{key:"focus",value:function(){Z(this.props)&&this.selectionRef?this.selectionRef.focus():this.getInputDOMNode()&&this.getInputDOMNode().focus()}},{key:"blur",value:function(){Z(this.props)&&this.selectionRef?this.selectionRef.blur():this.getInputDOMNode()&&this.getInputDOMNode().blur()}},{key:"renderArrow",value:function(e){var t=this.props,n=t.showArrow,i=void 0===n?!e:n,o=t.loading,a=t.inputIcon,s=t.prefixCls;if(!i&&!o)return null;var l=o?r["createElement"]("i",{className:"".concat(s,"-arrow-loading")}):r["createElement"]("i",{className:"".concat(s,"-arrow-icon")});return r["createElement"]("span",$e({key:"arrow",className:"".concat(s,"-arrow"),style:oe},ae,{onClick:this.onArrowClick}),a||l)}},{key:"renderClear",value:function(){var e=this.props,t=e.prefixCls,n=e.allowClear,i=e.clearIcon,o=this.state.inputValue,a=this.state.value,s=r["createElement"]("span",$e({key:"clear",className:"".concat(t,"-selection__clear"),onMouseDown:te,style:oe},ae,{onClick:this.onClearSelection}),i||r["createElement"]("i",{className:"".concat(t,"-selection__clear-icon")},"\xd7"));return n?Y(this.props)?o?s:null:o||a.length?s:null:null}},{key:"render",value:function(){var e,t=this.props,n=X(t),i=t.showArrow,o=void 0===i||i,a=this.state,s=t.className,l=t.disabled,c=t.prefixCls,u=t.loading,h=this.renderTopControlNode(),f=this.state,d=f.open,p=f.ariaId;if(d){var m=this.renderFilterOptions();this._empty=m.empty,this._options=m.options}var g=this.getRealOpenState(),v=this._empty,y=this._options||[],b={};Object.keys(t).forEach(function(e){!Object.prototype.hasOwnProperty.call(t,e)||"data-"!==e.substr(0,5)&&"aria-"!==e.substr(0,5)&&"role"!==e||(b[e]=t[e])});var w=$e({},b);Q(t)||(w=$e($e({},w),{onKeyDown:this.onKeyDown,tabIndex:t.disabled?-1:t.tabIndex}));var x=(e={},Ie(e,s,!!s),Ie(e,c,1),Ie(e,"".concat(c,"-open"),d),Ie(e,"".concat(c,"-focused"),d||!!this._focused),Ie(e,"".concat(c,"-combobox"),Y(t)),Ie(e,"".concat(c,"-disabled"),l),Ie(e,"".concat(c,"-enabled"),!l),Ie(e,"".concat(c,"-allow-clear"),!!t.allowClear),Ie(e,"".concat(c,"-no-arrow"),!o),Ie(e,"".concat(c,"-loading"),!!u),e);return r["createElement"](Ne,{onPopupFocus:this.onPopupFocus,onMouseEnter:this.props.onMouseEnter,onMouseLeave:this.props.onMouseLeave,dropdownAlign:t.dropdownAlign,dropdownClassName:t.dropdownClassName,dropdownMatchSelectWidth:t.dropdownMatchSelectWidth,defaultActiveFirstOption:t.defaultActiveFirstOption,dropdownMenuStyle:t.dropdownMenuStyle,transitionName:t.transitionName,animation:t.animation,prefixCls:t.prefixCls,dropdownStyle:t.dropdownStyle,combobox:t.combobox,showSearch:t.showSearch,options:y,empty:v,multiple:n,disabled:l,visible:g,inputValue:a.inputValue,value:a.value,backfillValue:a.backfillValue,firstActiveValue:t.firstActiveValue,onDropdownVisibleChange:this.onDropdownVisibleChange,getPopupContainer:t.getPopupContainer,onMenuSelect:this.onMenuSelect,onMenuDeselect:this.onMenuDeselect,onPopupScroll:t.onPopupScroll,showAction:t.showAction,ref:this.saveSelectTriggerRef,menuItemSelectedIcon:t.menuItemSelectedIcon,dropdownRender:t.dropdownRender,ariaId:p},r["createElement"]("div",{id:t.id,style:t.style,ref:this.saveRootRef,onBlur:this.onOuterBlur,onFocus:this.onOuterFocus,className:T()(x),onMouseDown:this.markMouseDown,onMouseUp:this.markMouseLeave,onMouseOut:this.markMouseLeave},r["createElement"]("div",$e({ref:this.saveSelectionRef,key:"selection",className:"".concat(c,"-selection\n ").concat(c,"-selection--").concat(n?"multiple":"single"),role:"combobox","aria-autocomplete":"list","aria-haspopup":"true","aria-controls":p,"aria-expanded":g},w),h,this.renderClear(),this.renderArrow(!!n))))}}]),t}(r["Component"]);Qe.propTypes=k,Qe.defaultProps={prefixCls:"rc-select",defaultOpen:!1,labelInValue:!1,defaultActiveFirstOption:!0,showSearch:!0,allowClear:!1,placeholder:"",onChange:Ye,onFocus:Ye,onBlur:Ye,onSelect:Ye,onSearch:Ye,onDeselect:Ye,onInputKeyDown:Ye,dropdownMatchSelectWidth:!0,dropdownStyle:{},dropdownMenuStyle:{},optionFilterProp:"value",optionLabelProp:"value",notFoundContent:"Not Found",backfill:!1,showAction:["click"],tokenSeparators:[],autoClearSearchValue:!0,tabIndex:0,dropdownRender:function(e){return e}},Qe.getDerivedStateFromProps=function(e,t){var n=t.skipBuildOptionsInfo?t.optionsInfo:Qe.getOptionsInfoFromProps(e,t),r={optionsInfo:n,skipBuildOptionsInfo:!1};if("open"in e&&(r.open=e.open),e.disabled&&t.open&&(r.open=!1),"value"in e){var i=Qe.getValueFromProps(e);r.value=i,e.combobox&&(r.inputValue=Qe.getInputValueForCombobox(e,n))}return r},Qe.getOptionsFromChildren=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return r["Children"].forEach(e,function(e){if(e){var n=e.type;n.isSelectOptGroup?Qe.getOptionsFromChildren(e.props.children,t):t.push(e)}}),t},Qe.getInputValueForCombobox=function(e,t,n){var r=[];if("value"in e&&!n&&(r=J(e.value)),"defaultValue"in e&&n&&(r=J(e.defaultValue)),!r.length)return"";r=r[0];var i=r;return e.labelInValue?i=r.label:t[ee(r)]&&(i=t[ee(r)].label),void 0===i&&(i=""),i},Qe.getLabelFromOption=function(e,t){return K(t,e.optionLabelProp)},Qe.getOptionsInfoFromProps=function(e,t){var n=Qe.getOptionsFromChildren(e.children),r={};if(n.forEach(function(t){var n=q(t);r[ee(n)]={option:t,value:n,label:Qe.getLabelFromOption(e,t),title:t.props.title,disabled:t.props.disabled}}),t){var i=t.optionsInfo,o=t.value;o&&o.forEach(function(e){var t=ee(e);r[t]||void 0===i[t]||(r[t]=i[t])})}return r},Qe.getValueFromProps=function(e,t){var n=[];return"value"in e&&!t&&(n=J(e.value)),"defaultValue"in e&&t&&(n=J(e.defaultValue)),e.labelInValue&&(n=n.map(function(e){return e.key})),n},Qe.displayName="Select",Object(I["polyfill"])(Qe);var Ze=Qe;n.d(t,"b",function(){return b}),n.d(t,"a",function(){return h}),Ze.Option=b,Ze.OptGroup=h;t["c"]=Ze},Lnex:function(e,t,n){var r=n("OeOC"),i=n("OsVd"),o=n("Spc3");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},LpSC:function(e,t,n){n("bZMm"),e.exports=self.fetch.bind(self)},LsAW:function(e,t){t.f={}.propertyIsEnumerable},M1xp:function(e,t,n){var r=n("a0xu");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},MFj2:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("YEIV"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("V7oC"),u=n.n(c),h=n("FYw3"),f=n.n(h),d=n("mRg0"),p=n.n(d),m=n("q1tI"),g=n.n(m),v=n("17x9"),y=n.n(v),b=function(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");return"function"!==typeof t.componentWillReceiveProps?e:g.a.Profiler?(t.UNSAFE_componentWillReceiveProps=t.componentWillReceiveProps,delete t.componentWillReceiveProps,e):e},w=b;function x(e){var t=[];return g.a.Children.forEach(e,function(e){t.push(e)}),t}function _(e,t){var n=null;return e&&e.forEach(function(e){n||e&&e.key===t&&(n=e)}),n}function E(e,t,n){var r=null;return e&&e.forEach(function(e){if(e&&e.key===t&&e.props[n]){if(r)throw new Error("two child with same key for children");r=e}}),r}function S(e,t,n){var r=e.length===t.length;return r&&e.forEach(function(e,i){var o=t[i];e&&o&&(e&&!o||!e&&o?r=!1:e.key!==o.key?r=!1:n&&e.props[n]!==o.props[n]&&(r=!1))}),r}function C(e,t){var n=[],r={},i=[];return e.forEach(function(e){e&&_(t,e.key)?i.length&&(r[e.key]=i,i=[]):i.push(e)}),t.forEach(function(e){e&&Object.prototype.hasOwnProperty.call(r,e.key)&&(n=n.concat(r[e.key])),n.push(e)}),n=n.concat(i),n}var k=n("i8i4"),O=n.n(k),T=n("EJiy"),A=n.n(T),P=n("/dDc"),M=n("PFWz"),R=n.n(M),j=0!==P["a"].endEvents.length,L=["Webkit","Moz","O","ms"],D=["-webkit-","-moz-","-o-","ms-",""];function N(e,t){for(var n=window.getComputedStyle(e,null),r="",i=0;i children");return g.a.createElement(z,{key:n.key,ref:function(t){e.childrenRefs[n.key]=t},animation:t.animation,transitionName:t.transitionName,transitionEnter:t.transitionEnter,transitionAppear:t.transitionAppear,transitionLeave:t.transitionLeave},n)}));var o=t.component;if(o){var a=t;return"string"===typeof o&&(a=i()({className:t.className,style:t.style},t.componentProps)),g.a.createElement(o,a,r)}return r[0]||null}}]),t}(g.a.Component);Y.isAnimate=!0,Y.propTypes={className:y.a.string,style:y.a.object,component:y.a.any,componentProps:y.a.object,animation:y.a.object,transitionName:y.a.oneOfType([y.a.string,y.a.object]),transitionEnter:y.a.bool,transitionAppear:y.a.bool,exclusive:y.a.bool,transitionLeave:y.a.bool,onEnd:y.a.func,onEnter:y.a.func,onLeave:y.a.func,onAppear:y.a.func,showProp:y.a.string,children:y.a.node},Y.defaultProps={animation:{},component:"span",componentProps:{},transitionEnter:!0,transitionLeave:!0,transitionAppear:!1,onEnd:G,onEnter:G,onLeave:G,onAppear:G};var X=function(){var e=this;this.performEnter=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillEnter(e.handleDoneAdding.bind(e,t,"enter")))},this.performAppear=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillAppear(e.handleDoneAdding.bind(e,t,"appear")))},this.handleDoneAdding=function(t,n){var r=e.props;if(delete e.currentlyAnimatingKeys[t],!r.exclusive||r===e.nextProps){var i=x(K(r));e.isValidChildByKey(i,t)?"appear"===n?W.allowAppearCallback(r)&&(r.onAppear(t),r.onEnd(t,!0)):W.allowEnterCallback(r)&&(r.onEnter(t),r.onEnd(t,!0)):e.performLeave(t)}},this.performLeave=function(t){e.childrenRefs[t]&&(e.currentlyAnimatingKeys[t]=!0,e.childrenRefs[t].componentWillLeave(e.handleDoneLeaving.bind(e,t)))},this.handleDoneLeaving=function(t){var n=e.props;if(delete e.currentlyAnimatingKeys[t],!n.exclusive||n===e.nextProps){var r=x(K(n));if(e.isValidChildByKey(r,t))e.performEnter(t);else{var i=function(){W.allowLeaveCallback(n)&&(n.onLeave(t),n.onEnd(t,!1))};S(e.state.children,r,n.showProp)?i():e.setState({children:r},i)}}}};t["a"]=w(Y)},MPFp:function(e,t,n){"use strict";var r=n("uOPS"),i=n("Y7ZC"),o=n("kTiW"),a=n("NegM"),s=n("SBuE"),l=n("j2DC"),c=n("RfKB"),u=n("U+KD"),h=n("UWiX")("iterator"),f=!([].keys&&"next"in[].keys()),d="@@iterator",p="keys",m="values",g=function(){return this};e.exports=function(e,t,n,v,y,b,w){l(n,t,v);var x,_,E,S=function(e){if(!f&&e in T)return T[e];switch(e){case p:return function(){return new n(this,e)};case m:return function(){return new n(this,e)}}return function(){return new n(this,e)}},C=t+" Iterator",k=y==m,O=!1,T=e.prototype,A=T[h]||T[d]||y&&T[y],P=A||S(y),M=y?k?S("entries"):P:void 0,R="Array"==t&&T.entries||A;if(R&&(E=u(R.call(new e)),E!==Object.prototype&&E.next&&(c(E,C,!0),r||"function"==typeof E[h]||a(E,h,g))),k&&A&&A.name!==m&&(O=!0,P=function(){return A.call(this)}),r&&!w||!f&&!O&&T[h]||a(T,h,P),s[t]=P,s[C]=g,y)if(x={values:k?P:S(m),keys:b?P:S(p),entries:M},w)for(_ in x)_ in T||o(T,_,x[_]);else i(i.P+i.F*(f||O),t,x);return x}},MWgS:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}n.d(t,"a",function(){return r})},MgzW:function(e,t,n){"use strict";var r=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,o=Object.prototype.propertyIsEnumerable;function a(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function s(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}e.exports=s()?Object.assign:function(e,t){for(var n,s,l=a(e),c=1;c=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function i(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}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 a(e){for(var t=1;t1&&0===n&&i&&"auto"!==i?parseInt(i.toString(),10):i},m);return u.createElement(h,Object.assign({},p,{style:g}),t.map(function(e,t){var n,i=e.column,o=e.isLast,l=r(e,["column","isLast"]),h=i.onHeaderCell?i.onHeaderCell(i):{};return i.align&&(h.style=a({},h.style,{textAlign:i.align})),h.className=f.default(h.className,i.className,(n={},s(n,"".concat(c,"-align-").concat(i.align),!!i.align),s(n,"".concat(c,"-row-cell-ellipsis"),!!i.ellipsis),s(n,"".concat(c,"-row-cell-break-word"),!!i.width),s(n,"".concat(c,"-row-cell-last"),o),n)),u.createElement(d,Object.assign({},l,h,{key:i.key||i.dataIndex||t}))}))}function p(e,t){var n=e.fixedColumnsHeadRowsHeight,r=t.columns,i=t.rows,o=t.fixed,a=n[0];return o&&a&&r?"auto"===a?"auto":a/i.length:null}t.default=h.connect(function(e,t){return{height:p(e,t)}})(d)},MvwC:function(e,t,n){var r=n("5T2Y").document;e.exports=r&&r.documentElement},N2Kk:function(e,t,n){"use strict";t["a"]={items_per_page:"\u6761/\u9875",jump_to:"\u8df3\u81f3",jump_to_confirm:"\u786e\u5b9a",page:"\u9875",prev_page:"\u4e0a\u4e00\u9875",next_page:"\u4e0b\u4e00\u9875",prev_5:"\u5411\u524d 5 \u9875",next_5:"\u5411\u540e 5 \u9875",prev_3:"\u5411\u524d 3 \u9875",next_3:"\u5411\u540e 3 \u9875"}},N4uP:function(e,t,n){var r=n("c0Oy"),i=n("WGNW"),o=n("08Qx"),a=[].slice,s=/MSIE .\./.test(o),l=function(e){return function(t,n){var r=arguments.length>2,i=!!r&&a.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,i)}:t,n)}};i(i.G+i.B+i.F*s,{setTimeout:l(r.setTimeout),setInterval:l(r.setInterval)})},N9RS:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=(n("tI4l"),{payments:[],fetchLoading:!1});t["default"]={name:"payment",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/payment/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{payments:r.data}});case 12:case"end":return e.stop()}},e)})()},getPaymentMethods(e){return i.a.mark(function t(){var n,r;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,t.next=3,Object(s["a"])("/admin/payment/getPaymentMethods");case 3:if(r=t.sent,200===r.code){t.next=6;break}return t.abrupt("return");case 6:n(r.data);case 7:case"end":return t.stop()}},t)})()},getPaymentForm(e){return i.a.mark(function t(){var n,r,o,a;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,r=e.payment,o=e.id,t.next=3,Object(s["b"])("/admin/payment/getPaymentForm",{payment:r,id:o});case 3:if(a=t.sent,200===a.code){t.next=6;break}return t.abrupt("return");case 6:n(a.data);case 7:case"end":return t.stop()}},t)})()},save(e,t){return i.a.mark(function n(){var r,o,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.complete,l=t.put,n.next=4,Object(s["b"])("/admin/payment/save",a()({},r));case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return"function"===typeof o&&o(c.data),n.next=10,l({type:"fetch"});case 10:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/payment/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/payment/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},sort(e,t){return i.a.mark(function n(){var r,o,a,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.fromIndex,o=e.toIndex,a=t.select,l=t.put,n.next=4,l({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,a(e=>e.payment);case 6:return c=n.sent,u=c.payments,re.id)});case 13:if(h=n.sent,200===h.code){n.next=16;break}return n.abrupt("return");case 16:return n.next=18,l({type:"fetch"});case 18:case"end":return n.stop()}},n)})()}}}},NC18:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("IMiH"),a=n("QBsz"),s=o["a"].CMD,l=[[],[],[]],c=Math.sqrt,u=Math.atan2;function h(e,t){if(t){var n,r,i,o,h,f,d=e.data,p=e.len(),m=s.M,g=s.C,v=s.L,y=s.R,b=s.A,w=s.Q;for(i=0,o=0;i1&&(a*=d(w),s*=d(w));var x=(i===o?-1:1)*d((a*a*(s*s)-a*a*(v*v)-s*s*(f*f))/(a*a*(v*v)+s*s*(f*f)))||0,_=x*a*v/s,E=x*-s*f/a,S=(e+n)/2+m(h)*_-p(h)*E,C=(t+r)/2+p(h)*_+m(h)*E,k=b([1,0],[(f-_)/a,(v-E)/s]),O=[(f-_)/a,(v-E)/s],T=[(-1*f-_)/a,(-1*v-E)/s],A=b(O,T);if(y(O,T)<=-1&&(A=g),y(O,T)>=1&&(A=0),A<0){var P=Math.round(A/g*1e6)/1e6;A=2*g+P%2*g}u.addData(c,S,C,a,s,k,A,h,o)}var x=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/gi,_=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function E(e){var t=new o["a"];if(!e)return t;var n,r=0,i=0,a=r,s=i,l=o["a"].CMD,c=e.match(x);if(!c)return t;for(var u=0;u=0&&r(c)?c:.5;var u=e.createRadialGradient(s,l,0,s,l,c);return u}function a(e,t,n){for(var r="radial"===t.type?o(e,t,n):i(e,t,n),a=t.colorStops,s=0;s0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(i(this,o),e);return t&&t.v},set:function(e,t){return r.def(i(this,o),0===e?0:e,t)}},r,!0)},O8oq:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=(n("tI4l"),{themes:[],active:void 0});t["default"]={name:"theme",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{getThemes(e,t){return i.a.mark(function e(){var n,r,o,a;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return o=t.put,e.next=3,o({type:"setState",payload:{getThemesLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/theme/getThemes");case 5:return a=e.sent,e.next=8,o({type:"setState",payload:{getThemesLoading:!1}});case 8:if(200===a.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,o({type:"setState",payload:{themes:null===a||void 0===a?void 0:null===(n=a.data)||void 0===n?void 0:n.themes,active:null===a||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.active}});case 12:case"end":return e.stop()}},e)})()},getThemeConfig(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.name,o=e.complete,a=t.put,n.next=4,a({type:"setState",payload:{getThemeConfigLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/theme/getThemeConfig",{name:r});case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{getThemeConfigLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:"function"===typeof o&&o(l.data);case 12:case"end":return n.stop()}},n)})()},saveThemeConfig(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.config,o=e.name,a=e.complete,l=t.put,n.next=4,l({type:"setState",payload:{saveThemeConfigLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/theme/saveThemeConfig",{config:r,name:o});case 6:return c=n.sent,n.next=9,l({type:"setState",payload:{saveThemeConfigLoading:!1}});case 9:if(200===c.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,l({type:"getThemes"});case 13:"function"===typeof a&&a(c.data);case 14:case"end":return n.stop()}},n)})()}}}},OERk:function(e,t,n){"use strict";var r=n("DIcO"),i=n("48Dx"),o=n("yw4e"),a=n("OeOC");e.exports=n("XdPT")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},OHgp:function(e,t,n){"use strict";var r=n("2a/h"),i={};i[n("gL7N")("toStringTag")]="z",i+""!="[object z]"&&n("rKIl")(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},OJuA:function(e,t,n){"use strict";e.exports=n("FqPH")||!n("wUWy")(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n("c0Oy")[e]})},OLES:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("jo6Y"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("FYw3"),u=n.n(c),h=n("mRg0"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("17x9"),g=n.n(m),v=n("uciX"),y=n("7ixt"),b=function(e){function t(){return l()(this,t),u()(this,e.apply(this,arguments))}return f()(t,e),t.prototype.componentDidUpdate=function(){var e=this.props.trigger;e&&e.forcePopupAlign()},t.prototype.render=function(){var e=this.props,t=e.overlay,n=e.prefixCls,r=e.id;return p.a.createElement("div",{className:n+"-inner",id:r,role:"tooltip"},"function"===typeof t?t():t)},t}(p.a.Component);b.propTypes={prefixCls:g.a.string,overlay:g.a.oneOfType([g.a.node,g.a.func]).isRequired,id:g.a.string,trigger:g.a.any};var w=b,x=function(e){function t(){var n,r,i;l()(this,t);for(var o=arguments.length,a=Array(o),s=0;s{if(!this.props.disableRightClick)return{onClick:e=>{this.props.onContextMenu&&(this.props.onContextMenu(void 0),document.getElementById("v2board-table-dropdown").style="display:none;")},onDoubleClick:e=>{},onContextMenu:t=>{this.props.onContextMenu&&(t.preventDefault(),this.forceUpdate(),this.props.onContextMenu&&this.props.onContextMenu(e),document.getElementById("v2board-table-dropdown").style="top: ".concat(t.clientY,"px; left: ").concat(t.clientX,"px;display:unset;"))},onMouseEnter:e=>{},onMouseLeave:e=>{}}}})),s.a.createElement("div",{id:"v2board-table-dropdown",className:"ant-dropdown ant-dropdown-placement-bottomLeft",style:{display:"none",position:"fixed",top:0,left:0},onClick:()=>{this.props.onContextMenu&&(document.getElementById("v2board-table-dropdown").style="display:none;")}},this.props.children))}}},OeOC:function(e,t,n){var r=n("9WFV"),i=n("ZDr/");e.exports=function(e){return r(i(e))}},Ojgd:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},Onz0:function(e,t,n){function r(e){return Array.isArray?Array.isArray(e):"[object Array]"===v(e)}function i(e){return"boolean"===typeof e}function o(e){return null===e}function a(e){return null==e}function s(e){return"number"===typeof e}function l(e){return"string"===typeof e}function c(e){return"symbol"===typeof e}function u(e){return void 0===e}function h(e){return"[object RegExp]"===v(e)}function f(e){return"object"===typeof e&&null!==e}function d(e){return"[object Date]"===v(e)}function p(e){return"[object Error]"===v(e)||e instanceof Error}function m(e){return"function"===typeof e}function g(e){return null===e||"boolean"===typeof e||"number"===typeof e||"string"===typeof e||"symbol"===typeof e||"undefined"===typeof e}function v(e){return Object.prototype.toString.call(e)}t.isArray=r,t.isBoolean=i,t.isNull=o,t.isNullOrUndefined=a,t.isNumber=s,t.isString=l,t.isSymbol=c,t.isUndefined=u,t.isRegExp=h,t.isObject=f,t.isDate=d,t.isError=p,t.isFunction=m,t.isPrimitive=g,t.isBuffer=n("tjlA").Buffer.isBuffer},OsVd:function(e,t,n){var r=n("AUWw"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},P2sY:function(e,t,n){e.exports={default:n("UbbE"),__esModule:!0}},P7XM:function(e,t){"function"===typeof Object.create?e.exports=function(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}:e.exports=function(e,t){if(t){e.super_=t;var n=function(){};n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e}}},PFWz:function(e,t,n){try{var r=n("zs13")}catch(e){r=n("zs13")}var i=/\s+/,o=Object.prototype.toString;function a(e){if(!e||!e.nodeType)throw new Error("A DOM element reference is required");this.el=e,this.list=e.classList}e.exports=function(e){return new a(e)},a.prototype.add=function(e){if(this.list)return this.list.add(e),this;var t=this.array(),n=r(t,e);return~n||t.push(e),this.el.className=t.join(" "),this},a.prototype.remove=function(e){if("[object RegExp]"==o.call(e))return this.removeMatching(e);if(this.list)return this.list.remove(e),this;var t=this.array(),n=r(t,e);return~n&&t.splice(n,1),this.el.className=t.join(" "),this},a.prototype.removeMatching=function(e){for(var t=this.array(),n=0;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n4&&void 0!==arguments[4]&&arguments[4];n&&n.stopPropagation();var a=r.props,l=a.onExpandedRowsChange,c=a.onExpand,u=r.store.getState(),h=u.expandedRowKeys;if(e)h=[].concat(s(h),[i]);else{var f=h.indexOf(i);-1!==f&&(h=P.remove(h,i))}r.props.expandedRowKeys||r.store.setState({expandedRowKeys:h}),r.latestExpandedRows&&T.default(r.latestExpandedRows,h)||(r.latestExpandedRows=h,l(h)),o||c(e,t)},r.renderExpandIndentCell=function(e,t){var n=r.props,i=n.prefixCls,a=n.expandIconAsCell;if(a&&"right"!==t&&e.length){var s={key:"rc-table-expand-icon-cell",className:"".concat(i,"-expand-icon-th"),title:"",rowSpan:e.length};e[0].unshift(o({},s,{column:s}))}},r.renderRows=function(e,t,n,i,o,a,l,c){var u=r.props,h=u.expandedRowClassName,f=u.expandedRowRender,d=u.childrenColumnName,p=n[d],m=[].concat(s(c),[l]),g=o+1;f&&t.push(r.renderExpandedRow(n,i,f,h(n,i,o),m,g,a)),p&&t.push.apply(t,s(e(p,g,m)))};var i=e.data,a=e.childrenColumnName,l=e.defaultExpandAllRows,c=e.expandedRowKeys,u=e.defaultExpandedRowKeys,h=e.getRowKey,f=[],p=s(i);if(l)for(var m=0;m{this.state.visible||this.setState({submit:this.defaultValue})})}generate(){var e=v()({},this.state.submit);this.props.dispatch({type:"coupon/generate",params:e,callback:()=>{this.modalVisible()}})}drop(e){this.props.dispatch({type:"coupon/drop",id:e.id})}tableOnChange(e,t){this.props.dispatch({type:"coupon/changeTable",pagination:e,sort:{sort_type:"ascend"===t.order?"ASC":"DESC",sort:t.columnKey}})}render(){var e=this.props.coupon,t=e.coupons,n=e.fetchLoading,r=e.saveLoading,g=e.pagination,y=this.props.plan.plans,x=[{title:"#",dataIndex:"id",key:"id"},{title:"\u542f\u7528",dataIndex:"show",key:"show",render:(e,t)=>{return b.a.createElement(m["a"],{size:"small",onChange:()=>this.props.dispatch({type:"coupon/show",id:t.id}),checked:e})}},{title:"\u5238\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u7c7b\u578b",dataIndex:"type",key:"type",render:e=>{return 1===e?"\u91d1\u989d":"\u6bd4\u4f8b"}},{title:"\u5238\u7801",dataIndex:"code",key:"code",render:e=>{return b.a.createElement(d["a"],{style:{cursor:"pointer"},onClick:()=>{S()(e),p["a"].success("\u590d\u5236\u6210\u529f")}},e)}},{title:"\u5269\u4f59\u6b21\u6570",dataIndex:"limit_use",key:"limit_use",render:e=>{return b.a.createElement(d["a"],null,null!==e?e:"\u65e0\u9650")}},{title:"\u6709\u6548\u671f",dataIndex:"started_at",key:"started_at",align:"left",render:(e,t)=>{return"".concat(_()(1e3*t.started_at).format("YYYY/MM/DD HH:mm")," ~ ").concat(_()(1e3*t.ended_at).format("YYYY/MM/DD HH:mm"))}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,n,r)=>{return b.a.createElement("div",null,b.a.createElement("a",{onClick:()=>{this.setState({submit:t[r]},()=>{this.modalVisible()})},href:"javascript:void(0);"},"\u7f16\u8f91"),b.a.createElement(f["a"],{type:"vertical"}),b.a.createElement("a",{onClick:()=>{h["a"].confirm({title:"\u8b66\u544a",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u9879\u76ee\u5417\uff1f",onOk:()=>this.drop(n),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})},href:"javascript:void(0);"},"\u5220\u9664"))}}];return b.a.createElement(w["a"],i()({},this.props,{title:"\u4f18\u60e0\u5238\u7ba1\u7406"}),b.a.createElement(O["a"],{loading:n},b.a.createElement("div",{className:"block border-bottom"},b.a.createElement("div",{className:"bg-white"},b.a.createElement("div",{style:{padding:15}},b.a.createElement(c["a"],{onClick:()=>this.modalVisible()},b.a.createElement(u["a"],{type:"plus"})," \u6dfb\u52a0\u4f18\u60e0\u5238")),b.a.createElement(l["a"],{tableLayout:"auto",dataSource:t,columns:x,scroll:{x:1050},pagination:v()({},g,{size:"small",showSizeChanger:!0,pageSizeOptions:[10,50,100,150]}),onChange:(e,t,n)=>this.tableOnChange(e,n)})))),b.a.createElement(h["a"],{title:"".concat(this.state.submit.id?"\u7f16\u8f91\u4f18\u60e0\u5238":"\u65b0\u5efa\u4f18\u60e0\u5238"),visible:this.state.visible,onCancel:()=>this.modalVisible(),onOk:()=>this.generate(),okText:"\u63d0\u4ea4",cancelText:"\u53d6\u6d88",okButtonProps:{loading:r},key:this.key},b.a.createElement("div",null,b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u540d\u79f0"),b.a.createElement(s["a"],{placeholder:"\u8bf7\u8f93\u5165\u4f18\u60e0\u5238\u540d\u79f0",value:this.state.submit.name,onChange:e=>{this.setState({submit:v()({},this.state.submit,{name:e.target.value})})}})),!this.state.submit.generate_count&&b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u81ea\u5b9a\u4e49\u4f18\u60e0\u5238\u7801"),b.a.createElement(s["a"],{placeholder:"\u81ea\u5b9a\u4e49\u4f18\u60e0\u5238\u7801(\u7559\u7a7a\u968f\u673a\u751f\u6210)",value:this.state.submit.code,onChange:e=>{this.setState({submit:v()({},this.state.submit,{code:e.target.value,generate_count:void 0})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u4f18\u60e0\u4fe1\u606f"),b.a.createElement(s["a"],{type:"number",addonBefore:b.a.createElement(a["a"],{style:{width:120},value:this.state.submit.type,onChange:e=>{this.setState({submit:v()({},this.state.submit,{type:e})})}},b.a.createElement(a["a"].Option,{value:1},"\u6309\u91d1\u989d\u4f18\u60e0"),b.a.createElement(a["a"].Option,{value:2},"\u6309\u6bd4\u4f8b\u4f18\u60e0")),addonAfter:1===this.state.submit.type?"\xa5":"%",placeholder:"\u8bf7\u8f93\u5165\u503c",value:this.state.submit.value,onChange:e=>{this.setState({submit:v()({},this.state.submit,{value:e.target.value})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u4f18\u60e0\u5238\u6709\u6548\u671f"),b.a.createElement(o["a"].RangePicker,{style:{width:"100%"},showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",placeholder:["Start Time","End Time"],value:[this.state.submit.started_at?_()(1e3*this.state.submit.started_at):null,this.state.submit.ended_at?_()(1e3*this.state.submit.ended_at):null],onChange:e=>this.setState({submit:v()({},this.state.submit,{started_at:e[0]?e[0].format("X"):null,ended_at:e[1]?e[1].format("X"):null})}),onOk:e=>this.setState({submit:v()({},this.state.submit,{started_at:e[0]?e[0].format("X"):null,ended_at:e[1]?e[1].format("X"):null})})})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u6700\u5927\u4f7f\u7528\u6b21\u6570"),b.a.createElement(s["a"],{placeholder:"\u9650\u5236\u6700\u5927\u4f7f\u7528\u6b21\u6570\uff0c\u7528\u5b8c\u5219\u65e0\u6cd5\u4f7f\u7528(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",value:this.state.submit.limit_use,onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_use:e.target.value})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6bcf\u4e2a\u7528\u6237\u53ef\u4f7f\u7528\u6b21\u6570"),b.a.createElement(s["a"],{placeholder:"\u9650\u5236\u6bcf\u4e2a\u7528\u6237\u53ef\u4f7f\u7528\u6b21\u6570(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",value:this.state.submit.limit_use_with_user,onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_use_with_user:e.target.value})})}})),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{for:"example-text-input-alt"},"\u6307\u5b9a\u8ba2\u9605"),b.a.createElement("div",null,b.a.createElement(a["a"],{value:this.state.submit.limit_plan_ids||[],onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_plan_ids:e.length?e:null})})},mode:"multiple",placeholder:"\u9650\u5236\u6307\u5b9a\u8ba2\u9605\u53ef\u4ee5\u4f7f\u7528\u4f18\u60e0(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",style:{width:"100%"}},y.map(e=>{return b.a.createElement(a["a"].Option,{key:Math.random(),value:"".concat(e.id)},e.name)})))),b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6307\u5b9a\u5468\u671f"),b.a.createElement("div",null,b.a.createElement(a["a"],{value:this.state.submit.limit_period||[],onChange:e=>{this.setState({submit:v()({},this.state.submit,{limit_period:e.length?e:null})})},mode:"multiple",placeholder:"\u9650\u5236\u6307\u5b9a\u5468\u671f\u53ef\u4ee5\u4f7f\u7528\u4f18\u60e0(\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236)",style:{width:"100%"}},Object.keys(k["a"].periodText).map(e=>{return b.a.createElement(a["a"].Option,{key:Math.random(),value:e},k["a"].periodText[e])})))),!this.state.submit.code&&!this.state.submit.id&&b.a.createElement("div",{className:"form-group"},b.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u751f\u6210\u6570\u91cf"),b.a.createElement(s["a"],{placeholder:"\u8f93\u5165\u6570\u91cf\u6279\u91cf\u751f\u6210",value:this.state.submit.generate_count,onChange:e=>{this.setState({submit:v()({},this.state.submit,{generate_count:e.target.value,code:void 0})})}})))))}}t["default"]=Object(C["c"])(e=>{var t=e.coupon,n=e.plan;return{coupon:t,plan:n}})(T)},Q6cQ:function(e,t,n){"use strict";var r=n("u8+u"),i=n("BFt8"),o=n("gL7N")("hasInstance"),a=Function.prototype;o in a||n("V5/1").f(a,o,{value:function(e){if("function"!=typeof this||!r(e))return!1;if(!r(this.prototype))return e instanceof this;while(e=i(e))if(this.prototype===e)return!0;return!1}})},QBsz:function(e,t,n){"use strict";function r(e,t){return null==e&&(e=0),null==t&&(t=0),[e,t]}function i(e){return[e[0],e[1]]}function o(e,t,n){return e[0]=t[0]+n[0],e[1]=t[1]+n[1],e}function a(e,t,n){return e[0]=t[0]-n[0],e[1]=t[1]-n[1],e}function s(e){return Math.sqrt(l(e))}n.d(t,"d",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"m",function(){return a}),n.d(t,"l",function(){return c}),n.d(t,"k",function(){return u}),n.d(t,"g",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"f",function(){return p}),n.d(t,"h",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"j",function(){return v}),n.d(t,"i",function(){return y});function l(e){return e[0]*e[0]+e[1]*e[1]}function c(e,t,n){return e[0]=t[0]*n,e[1]=t[1]*n,e}function u(e,t){var n=s(t);return 0===n?(e[0]=0,e[1]=0):(e[0]=t[0]/n,e[1]=t[1]/n),e}function h(e,t){return Math.sqrt((e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1]))}var f=h;function d(e,t){return(e[0]-t[0])*(e[0]-t[0])+(e[1]-t[1])*(e[1]-t[1])}var p=d;function m(e,t,n,r){return e[0]=t[0]+r*(n[0]-t[0]),e[1]=t[1]+r*(n[1]-t[1]),e}function g(e,t,n){var r=t[0],i=t[1];return e[0]=n[0]*r+n[2]*i+n[4],e[1]=n[1]*r+n[3]*i+n[5],e}function v(e,t,n){return e[0]=Math.min(t[0],n[0]),e[1]=Math.min(t[1],n[1]),e}function y(e,t,n){return e[0]=Math.max(t[0],n[0]),e[1]=Math.max(t[1],n[1]),e}},"QC+M":function(e,t,n){"use strict";n.d(t,"a",function(){return w});var r=n("q1tI"),i=n.n(r),o=n("i8i4"),a=n.n(o),s=n("17x9"),l=n.n(s);function c(e){"@babel/helpers - typeof";return c="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c(e)}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){for(var n=0;n255?255:e}function a(e){return e<0?0:e>1?1:e}function s(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?o(parseFloat(t)/100*255):o(parseInt(t,10))}function l(e){var t=e;return t.length&&"%"===t.charAt(t.length-1)?a(parseFloat(t)/100):a(parseFloat(t))}function c(e,t,n){return n<0?n+=1:n>1&&(n-=1),6*n<1?e+(t-e)*n*6:2*n<1?t:3*n<2?e+(t-e)*(2/3-n)*6:e}function u(e,t,n){return e+(t-e)*n}function h(e,t,n,r,i){return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}function f(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var d=new r["a"](20),p=null;function m(e,t){p&&f(p,t),p=d.put(e,p||t.slice())}function g(e,t){if(e){t=t||[];var n=d.get(e);if(n)return f(t,n);e+="";var r=e.replace(/ /g,"").toLowerCase();if(r in i)return f(t,i[r]),m(e,t),t;var o=r.length;if("#"!==r.charAt(0)){var a=r.indexOf("("),c=r.indexOf(")");if(-1!==a&&c+1===o){var u=r.substr(0,a),p=r.substr(a+1,c-(a+1)).split(","),g=1;switch(u){case"rgba":if(4!==p.length)return 3===p.length?h(t,+p[0],+p[1],+p[2],1):h(t,0,0,0,1);g=l(p.pop());case"rgb":return p.length>=3?(h(t,s(p[0]),s(p[1]),s(p[2]),3===p.length?g:l(p[3])),m(e,t),t):void h(t,0,0,0,1);case"hsla":return 4!==p.length?void h(t,0,0,0,1):(p[3]=l(p[3]),v(p,t),m(e,t),t);case"hsl":return 3!==p.length?void h(t,0,0,0,1):(v(p,t),m(e,t),t);default:return}}h(t,0,0,0,1)}else{if(4===o||5===o){var y=parseInt(r.slice(1,4),16);return y>=0&&y<=4095?(h(t,(3840&y)>>4|(3840&y)>>8,240&y|(240&y)>>4,15&y|(15&y)<<4,5===o?parseInt(r.slice(4),16)/15:1),m(e,t),t):void h(t,0,0,0,1)}if(7===o||9===o){y=parseInt(r.slice(1,7),16);return y>=0&&y<=16777215?(h(t,(16711680&y)>>16,(65280&y)>>8,255&y,9===o?parseInt(r.slice(7),16)/255:1),m(e,t),t):void h(t,0,0,0,1)}}}}function v(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=l(e[1]),i=l(e[2]),a=i<=.5?i*(r+1):i+r-i*r,s=2*i-a;return t=t||[],h(t,o(255*c(s,a,n+1/3)),o(255*c(s,a,n)),o(255*c(s,a,n-1/3)),1),4===e.length&&(t[3]=e[3]),t}function y(e,t){var n=g(e);if(n){for(var r=0;r<3;r++)n[r]=t<0?n[r]*(1-t)|0:(255-n[r])*t+n[r]|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return w(n,4===n.length?"rgba":"rgb")}}function b(e,t,n){if(t&&t.length&&e>=0&&e<=1){var r=e*(t.length-1),i=Math.floor(r),s=Math.ceil(r),l=g(t[i]),c=g(t[s]),h=r-i,f=w([o(u(l[0],c[0],h)),o(u(l[1],c[1],h)),o(u(l[2],c[2],h)),a(u(l[3],c[3],h))],"rgba");return n?{color:f,leftIndex:i,rightIndex:s,value:r}:f}}function w(e,t){if(e&&e.length){var n=e[0]+","+e[1]+","+e[2];return"rgba"!==t&&"hsva"!==t&&"hsla"!==t||(n+=","+e[3]),t+"("+n+")"}}function x(e,t){var n=g(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}},QeHl:function(e,t,n){n("Jaki")("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},Qg4q:function(e,t,n){"use strict";n("2qtc");var r=n("kLXV"),i=(n("OaEy"),n("2fM7")),o=(n("iQDF"),n("+eQT")),a=(n("5NDa"),n("5rEg")),s=n("p0pE"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("/MKj"),f=n("wd/R"),d=n.n(f);class p extends u.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{}}}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1,submit:{}})}formChange(e,t){var n=this.state.submit;n[e]=t,this.setState({submit:n})}submit(){var e=l()({},this.state.submit);this.props.dispatch({type:"user/generate",params:e,callback:()=>{this.hide()}})}render(){var e=this.props.user,t=e.user,n=e.generateLoading,s=this.props.plan.plans,l=this.state,c=l.visible,h=l.submit;return u.a.createElement(u.a.Fragment,null,u.a.cloneElement(this.props.children,{onClick:()=>this.show()}),u.a.createElement(r["a"],{title:"\u521b\u5efa\u7528\u6237",visible:c,onCancel:()=>this.hide(),cancelText:"\u53d6\u6d88",onOk:()=>this.submit(),okButtonProps:{loading:n},okText:"\u751f\u6210"},u.a.createElement("div",null,u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u90ae\u7bb1"),u.a.createElement(a["a"].Group,{compact:!0},!h.generate_count&&u.a.createElement(a["a"],{placeholder:"\u8d26\u53f7\uff08\u6279\u91cf\u751f\u6210\u8bf7\u7559\u7a7a\uff09",style:{width:"45%"},value:h.email_prefix,onChange:e=>this.formChange("email_prefix",e.target.value)}),u.a.createElement(a["a"],{placeholder:"@",style:{width:"10%",textAlign:"center"},disabled:!0}),u.a.createElement(a["a"],{placeholder:"\u57df",style:{width:"45%"},value:h.email_suffix,onChange:e=>this.formChange("email_suffix",e.target.value)}))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5bc6\u7801"),u.a.createElement(a["a"],{value:h.password,placeholder:"\u7559\u7a7a\u5219\u5bc6\u7801\u4e0e\u90ae\u7bb1\u76f8\u540c",onChange:e=>this.formChange("password",e.target.value)})),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5230\u671f\u65f6\u95f4"),u.a.createElement("div",null,u.a.createElement(o["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u5230\u671f\u65e5\u671f\uff0c\u4e3a\u7a7a\u5219\u4e0d\u9650\u5236\u5230\u671f\u65f6\u95f4",defaultValue:h.expired_at&&d()(1e3*t.expired_at),style:{width:"100%"},onChange:e=>this.formChange("expired_at",e?e.format("X"):null)}))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u8ba2\u9605\u8ba1\u5212"),u.a.createElement(i["a"],{placeholder:"\u8bf7\u9009\u62e9\u7528\u6237\u8ba2\u9605\u8ba1\u5212",style:{width:"100%"},value:h.plan_id||null,onChange:e=>this.formChange("plan_id",e)},u.a.createElement(i["a"].Option,{value:null},"\u65e0"),s.map(e=>{return u.a.createElement(i["a"].Option,{key:Math.random(),value:e.id},e.name)}))),!h.email_prefix&&u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u751f\u6210\u6570\u91cf"),u.a.createElement(a["a"],{value:h.generate_count,placeholder:"\u5982\u679c\u4e3a\u6279\u91cf\u751f\u6210\u8bf7\u8f93\u5165\u751f\u6210\u6570\u91cf",onChange:e=>this.formChange("generate_count",e.target.value)})))))}}t["a"]=Object(h["c"])(e=>{var t=e.user,n=e.plan;return{user:t,plan:n}})(p)},QpuX:function(e,t,n){e.exports=n("+qE3").EventEmitter},QsMh:function(e,t,n){"use strict";var r=n("WGNW"),i=n("wYm8"),o=n("il4q"),a=n("wUWy"),s=[].sort,l=[1,2,3];r(r.P+r.F*(a(function(){l.sort(void 0)})||!a(function(){l.sort(null)})||!n("l0kz")(s)),"Array",{sort:function(e){return void 0===e?s.call(o(this)):s.call(o(this),i(e))}})},QuXc:function(e,t,n){"use strict";var r=function(){function e(e){this.colorStops=e||[]}return e.prototype.addColorStop=function(e,t){this.colorStops.push({offset:e,color:t})},e}();t["a"]=r},"R+7+":function(e,t,n){var r=n("w6GO"),i=n("mqlF"),o=n("NV0k");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},R1X6:function(e,t,n){"use strict";var r=Math.round(9*Math.random()),i="function"===typeof Object.defineProperty,o=function(){function e(){this._id="__ec_inner_"+r++}return e.prototype.get=function(e){return this._guard(e)[this._id]},e.prototype.set=function(e,t){var n=this._guard(e);return i?Object.defineProperty(n,this._id,{value:t,enumerable:!1,configurable:!0}):n[this._id]=t,this},e.prototype["delete"]=function(e){return!!this.has(e)&&(delete this._guard(e)[this._id],!0)},e.prototype.has=function(e){return!!this._guard(e)[this._id]},e.prototype._guard=function(e){if(e!==Object(e))throw TypeError("Value of WeakMap is not a non-null object.");return e},e}();t["a"]=o},R5jr:function(e,t,n){"use strict";t["default"]={locale:"en",pluralRuleFunction:function(e,t){var n=String(e).split("."),r=!n[1],i=Number(n[0])==e,o=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==o&&11!=a?"one":2==o&&12!=a?"two":3==o&&13!=a?"few":"other":1==e&&r?"one":"other"}}},"R64+":function(e,t,n){"use strict";t.__esModule=!0;var r=n("GB+t"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}var a=function(){var e=null,t=function(t){return(0,i.default)(null==e,"A history supports only one prompt at a time"),e=t,function(){e===t&&(e=null)}},n=function(t,n,r,o){if(null!=e){var a="function"===typeof e?e(t,n):e;"string"===typeof a?"function"===typeof r?r(a,o):((0,i.default)(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},r=[],o=function(e){var t=!0,n=function(){t&&e.apply(void 0,arguments)};return r.push(n),function(){t=!1,r=r.filter(function(e){return e!==n})}},a=function(){for(var e=arguments.length,t=Array(e),n=0;n{this.props.dispatch({type:"ticket/filter",filter:{[e]:t},pagination:{pageSize:10,current:1}})},300)}render(){var e=this.props.ticket,t=e.tickets,n=e.fetchLoading,r=e.pagination,a=e.filter,f=["\u4f4e","\u4e2d","\u9ad8"],m=[{title:"#",dataIndex:"id",key:"id"},{title:"\u4e3b\u9898",dataIndex:"subject",key:"subject"},{title:"\u5de5\u5355\u7ea7\u522b",dataIndex:"level",key:"level",render:e=>{return f[e]}},{title:"\u5de5\u5355\u72b6\u6001",dataIndex:"reply_status",key:"reply_status",filters:1!==a.status&&[{text:"\u5df2\u56de\u590d",value:0},{text:"\u5f85\u56de\u590d",value:1}],render:(e,t)=>{return 1===t.status?d.a.createElement("span",null,d.a.createElement(h["a"],{status:"success"}),"\u5df2\u5173\u95ed"):d.a.createElement("span",null,d.a.createElement(h["a"],{status:e?"error":"processing"}),e?"\u5f85\u56de\u590d":"\u5df2\u56de\u590d")}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"created_at",key:"created_at",render:e=>{return v()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u6700\u540e\u56de\u590d",dataIndex:"updated_at",key:"updated_at",render:e=>{return v()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t)=>{return d.a.createElement("div",null,d.a.createElement("a",{href:"javascript:void(0);",onClick:()=>this.toChat(t.id)},"\u67e5\u770b"),d.a.createElement(u["a"],{type:"vertical"}),d.a.createElement("a",{disabled:t.status,href:"javascript:void(0);",onClick:()=>this.close(t.id)},"\u5173\u95ed"))}}];return d.a.createElement(p["a"],i()({},this.props,{title:"\u5de5\u5355\u7ba1\u7406"}),d.a.createElement(y["a"],{loading:n},d.a.createElement("div",{className:"block border-bottom"},d.a.createElement("div",{className:"bg-white"},d.a.createElement("div",{className:"p-3"},d.a.createElement(c["a"].Group,{value:a.status,onChange:e=>this.filter("status",e.target.value)},d.a.createElement(c["a"].Button,{value:0},"\u5df2\u5f00\u542f"),d.a.createElement(c["a"].Button,{value:1},"\u5df2\u5173\u95ed")),d.a.createElement("div",{style:{float:"right"}},d.a.createElement(l["a"],{placeholder:"\u8f93\u5165\u90ae\u7bb1\u641c\u7d22",onChange:e=>this.onSearch("email",e.target.value)}))),d.a.createElement(o["a"],{tableLayout:"auto",dataSource:t,pagination:s()({},r,{size:"small"}),columns:m,scroll:{x:900},onChange:(e,t,n)=>this.tableOnChange(e,n,t)})))))}}t["default"]=Object(m["c"])(e=>{var t=e.ticket;return{ticket:t}})(b)},"RU/L":function(e,t,n){n("Rqdy");var r=n("WEpk").Object;e.exports=function(e,t,n){return r.defineProperty(e,t,n)}},RXBc:function(e,t,n){"use strict";n.r(t),n.d(t,"default",function(){return s});var r=n("q1tI"),i=n.n(r),o=n("3a4m"),a=n.n(o);class s extends i.a.Component{componentDidMount(){a.a.push("/login")}render(){return i.a.createElement("div",null)}}},RXMa:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=2*Math.PI;e.moveTo(n+t.r,r),e.arc(n,r,t.r,0,i,!1),e.moveTo(n+t.r0,r),e.arc(n,r,t.r0,0,i,!0)},t}(i["b"]);a.prototype.type="ring",t["a"]=a},RfKB:function(e,t,n){var r=n("2faE").f,i=n("B+OT"),o=n("UWiX")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},RoFp:function(e,t,n){"use strict";var r=n("lm0R");function i(e,t){var n=this,i=this._readableState&&this._readableState.destroyed,o=this._writableState&&this._writableState.destroyed;return i||o?(t?t(e):!e||this._writableState&&this._writableState.errorEmitted||r.nextTick(a,this,e),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(e||null,function(e){!t&&e?(r.nextTick(a,n,e),n._writableState&&(n._writableState.errorEmitted=!0)):t&&t(e)}),this)}function o(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function a(e,t){e.emit("error",t)}e.exports={destroy:i,undestroy:o}},Rqdy:function(e,t,n){var r=n("Y7ZC");r(r.S+r.F*!n("jmDH"),"Object",{defineProperty:n("2faE").f})},S8SX:function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return i}),n.d(t,"b",function(){return o});var r=1,i=2,o=4},SBuE:function(e,t){e.exports={}},SEkw:function(e,t,n){e.exports={default:n("RU/L"),__esModule:!0}},SGa5:function(e,t,n){"use strict";n.r(t);n("2qtc");var r=n("kLXV"),i=(n("Pwec"),n("CtXQ")),o=n("q1tI"),a=n.n(o),s=n("/MKj");class l extends a.a.Component{constructor(e){super(e),this.state={},this.keyDown=this.keyDown.bind(this)}keyDown(e){13===e.keyCode&&this.login()}componentDidMount(){var e=this.props.location.query.verify,t=this.props.location.query.redirect;e&&this.props.dispatch({type:"passport/token2Login",verify:e,redirect:t}),this.props.dispatch({type:"user/checkLogin",redirect:t}),window.addEventListener("keydown",this.keyDown,!1)}componentWillUnmount(){window.removeEventListener("keydown",this.keyDown,!1)}login(){this.props.dispatch({type:"passport/login",email:this.refs.email.value,password:this.refs.password.value})}render(){var e=this.props.passport.loginLoading;return a.a.createElement("div",{id:"page-container"},a.a.createElement("main",{id:"main-container"},a.a.createElement("div",{className:"v2board-background",style:{backgroundImage:window.settings.background_url&&"url(".concat(window.settings.background_url,")")}}),a.a.createElement("div",{className:"no-gutters v2board-auth-box"},a.a.createElement("div",{className:"",style:{maxWidth:450,width:"100%",margin:"auto"}},a.a.createElement("div",{className:"mx-2 mx-sm-0"},a.a.createElement("div",{className:"block block-rounded block-transparent block-fx-pop w-100 mb-0 overflow-hidden bg-image",style:{boxShadow:"0 0.5rem 2rem #0000000d"}},a.a.createElement("div",{className:"row no-gutters"},a.a.createElement("div",{className:"col-md-12 order-md-1 bg-white"},a.a.createElement("div",{className:"block-content block-content-full px-lg-4 py-md-4 py-lg-4"},a.a.createElement("div",{className:"mb-3 text-center"},a.a.createElement("a",{className:"font-size-h1",href:"javascript:void(0);"},window.settings.logo?a.a.createElement("img",{className:"v2board-logo mb-3",src:window.settings.logo}):a.a.createElement("span",{className:"text-dark"},window.settings.title||"V2Board")),a.a.createElement("p",{className:"font-size-sm text-muted mb-3"},"\u767b\u5f55\u5230\u7ba1\u7406\u4e2d\u5fc3")),a.a.createElement("div",{className:"form-group"},a.a.createElement("input",{type:"text",className:"form-control form-control-alt",placeholder:"\u90ae\u7bb1",ref:"email"})),a.a.createElement("div",{className:"form-group"},a.a.createElement("input",{type:"password",className:"form-control form-control-alt",placeholder:"\u5bc6\u7801",ref:"password"})),a.a.createElement("div",{className:"form-group mb-0"},a.a.createElement("button",{disabled:e,type:"submit",className:"btn btn-block btn-primary font-w400",onClick:()=>this.login()},e?a.a.createElement(i["a"],{type:"loading"}):a.a.createElement("span",null,a.a.createElement("i",{className:"si si-login mr-1"}),"\u767b\u5165")))))),a.a.createElement("div",{className:"text-center bg-gray-lighter p-3 px-4"},a.a.createElement("a",{onClick:()=>{r["a"].info({title:"\u5fd8\u8bb0\u5bc6\u7801",content:a.a.createElement("div",null,a.a.createElement("div",null,"\u5728\u7ad9\u70b9\u76ee\u5f55\u4e0b\u6267\u884c\u547d\u4ee4\u627e\u56de\u5bc6\u7801"),a.a.createElement("code",null,"php artisan reset:password \u7ba1\u7406\u5458\u90ae\u7bb1")),centered:!0,okText:"\u6211\u77e5\u9053\u4e86",onOk(){}})}},"\u5fd8\u8bb0\u5bc6\u7801"))))))))}}t["default"]=Object(s["c"])(e=>{var t=e.passport;return{passport:t}})(l)},SKnc:function(e,t,n){"use strict";var r=n("mrSG"),i=n("QuXc"),o=function(e){function t(t,n,r,i,o,a){var s=e.call(this,o)||this;return s.x=null==t?0:t,s.y=null==n?0:n,s.x2=null==r?1:r,s.y2=null==i?0:i,s.type="linear",s.global=a||!1,s}return Object(r["a"])(t,e),t}(i["a"]);t["a"]=o},SPFY:function(e,t,n){n("Jaki")("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},SfDG:function(e,t,n){var r=n("u8+u"),i=n("c0Oy").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},Sj9i:function(e,t,n){"use strict";n.d(t,"a",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"f",function(){return v}),n.d(t,"c",function(){return y}),n.d(t,"g",function(){return b}),n.d(t,"e",function(){return w}),n.d(t,"d",function(){return x}),n.d(t,"h",function(){return _}),n.d(t,"i",function(){return E}),n.d(t,"m",function(){return S}),n.d(t,"j",function(){return C}),n.d(t,"n",function(){return k}),n.d(t,"l",function(){return O}),n.d(t,"k",function(){return T});var r=n("QBsz"),i=Math.pow,o=Math.sqrt,a=1e-8,s=1e-4,l=o(3),c=1/3,u=Object(r["d"])(),h=Object(r["d"])(),f=Object(r["d"])();function d(e){return e>-a&&ea||e<-a}function m(e,t,n,r,i){var o=1-i;return o*o*(o*e+3*i*t)+i*i*(i*r+3*o*n)}function g(e,t,n,r,i){var o=1-i;return 3*(((t-e)*o+2*(n-t)*i)*o+(r-n)*i*i)}function v(e,t,n,r,a,s){var u=r+3*(t-n)-e,h=3*(n-2*t+e),f=3*(t-e),p=e-a,m=h*h-3*u*f,g=h*f-9*u*p,v=f*f-3*h*p,y=0;if(d(m)&&d(g))if(d(h))s[0]=0;else{var b=-f/h;b>=0&&b<=1&&(s[y++]=b)}else{var w=g*g-4*m*v;if(d(w)){var x=g/m,_=(b=-h/u+x,-x/2);b>=0&&b<=1&&(s[y++]=b),_>=0&&_<=1&&(s[y++]=_)}else if(w>0){var E=o(w),S=m*h+1.5*u*(-g+E),C=m*h+1.5*u*(-g-E);S=S<0?-i(-S,c):i(S,c),C=C<0?-i(-C,c):i(C,c);b=(-h-(S+C))/(3*u);b>=0&&b<=1&&(s[y++]=b)}else{var k=(2*m*h-3*u*g)/(2*o(m*m*m)),O=Math.acos(k)/3,T=o(m),A=Math.cos(O),P=(b=(-h-2*T*A)/(3*u),_=(-h+T*(A+l*Math.sin(O)))/(3*u),(-h+T*(A-l*Math.sin(O)))/(3*u));b>=0&&b<=1&&(s[y++]=b),_>=0&&_<=1&&(s[y++]=_),P>=0&&P<=1&&(s[y++]=P)}}return y}function y(e,t,n,r,i){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(d(s)){if(p(a)){var u=-l/a;u>=0&&u<=1&&(i[c++]=u)}}else{var h=a*a-4*s*l;if(d(h))i[0]=-a/(2*s);else if(h>0){var f=o(h),m=(u=(-a+f)/(2*s),(-a-f)/(2*s));u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function b(e,t,n,r,i,o){var a=(t-e)*i+e,s=(n-t)*i+t,l=(r-n)*i+n,c=(s-a)*i+a,u=(l-s)*i+s,h=(u-c)*i+c;o[0]=e,o[1]=a,o[2]=c,o[3]=h,o[4]=h,o[5]=u,o[6]=l,o[7]=r}function w(e,t,n,i,a,l,c,d,p,g,v){var y,b,w,x,_,E=.005,S=1/0;u[0]=p,u[1]=g;for(var C=0;C<1;C+=.05)h[0]=m(e,n,a,c,C),h[1]=m(t,i,l,d,C),x=Object(r["f"])(u,h),x=0&&x=0&&u<=1&&(i[c++]=u)}}else{var h=s*s-4*a*l;if(d(h)){u=-s/(2*a);u>=0&&u<=1&&(i[c++]=u)}else if(h>0){var f=o(h),m=(u=(-s+f)/(2*a),(-s-f)/(2*a));u>=0&&u<=1&&(i[c++]=u),m>=0&&m<=1&&(i[c++]=m)}}return c}function C(e,t,n){var r=e+n-2*t;return 0===r?.5:(e-t)/r}function k(e,t,n,r,i){var o=(t-e)*r+e,a=(n-t)*r+t,s=(a-o)*r+o;i[0]=e,i[1]=o,i[2]=s,i[3]=s,i[4]=a,i[5]=n}function O(e,t,n,i,a,l,c,d,p){var m,g=.005,v=1/0;u[0]=c,u[1]=d;for(var y=0;y<1;y+=.05){h[0]=_(e,n,a,y),h[1]=_(t,i,l,y);var b=Object(r["f"])(u,h);b=0&&bR*R+j*j&&(k=T,O=A),{cx:k,cy:O,x0:-u,y0:-h,x1:k*(i/E-1),y1:O*(i/E-1)}}function b(e){var t;if(Object(o["r"])(e)){var n=e.length;if(!n)return e;t=1===n?[e[0],e[0],0,0]:2===n?[e[0],e[0],e[1],e[1]]:3===n?e.concat(e[2]):e}else t=[e,e,e,e];return t}function w(e,t){var n,r=p(t.r,0),i=p(t.r0||0,0),o=r>0,w=i>0;if(o||w){if(o||(r=i,i=0),i>r){var x=r;r=i,i=x}var _=t.startAngle,E=t.endAngle;if(!isNaN(_)&&!isNaN(E)){var S=t.cx,C=t.cy,k=!!t.clockwise,O=f(E-_),T=O>s&&O%s;if(T>g&&(O=T),r>g)if(O>s-g)e.moveTo(S+r*c(_),C+r*l(_)),e.arc(S,C,r,_,E,!k),i>g&&(e.moveTo(S+i*c(E),C+i*l(E)),e.arc(S,C,i,E,_,k));else{var A=void 0,P=void 0,M=void 0,R=void 0,j=void 0,L=void 0,D=void 0,N=void 0,I=void 0,$=void 0,F=void 0,B=void 0,V=void 0,W=void 0,H=void 0,U=void 0,z=r*c(_),q=r*l(_),K=i*c(E),G=i*l(E),Y=O>g;if(Y){var X=t.cornerRadius;X&&(n=b(X),A=n[0],P=n[1],M=n[2],R=n[3]);var Q=f(r-i)/2;if(j=m(Q,M),L=m(Q,R),D=m(Q,A),N=m(Q,P),F=I=p(j,L),B=$=p(D,N),(I>g||$>g)&&(V=r*c(E),W=r*l(E),H=i*c(_),U=i*l(_),Og){var oe=m(M,F),ae=m(R,F),se=y(H,U,z,q,r,oe,k),le=y(V,W,K,G,r,ae,k);e.moveTo(S+se.cx+se.x0,C+se.cy+se.y0),F0&&e.arc(S+se.cx,C+se.cy,oe,h(se.y0,se.x0),h(se.y1,se.x1),!k),e.arc(S,C,r,h(se.cy+se.y1,se.cx+se.x1),h(le.cy+le.y1,le.cx+le.x1),!k),ae>0&&e.arc(S+le.cx,C+le.cy,ae,h(le.y1,le.x1),h(le.y0,le.x0),!k))}else e.moveTo(S+z,C+q),e.arc(S,C,r,_,E,!k);else e.moveTo(S+z,C+q);if(i>g&&Y)if(B>g){oe=m(A,B),ae=m(P,B),se=y(K,G,V,W,i,-ae,k),le=y(z,q,H,U,i,-oe,k);e.lineTo(S+se.cx+se.x0,C+se.cy+se.y0),B<$&&oe===ae?e.arc(S+se.cx,C+se.cy,B,h(se.y0,se.x0),h(le.y0,le.x0),!k):(ae>0&&e.arc(S+se.cx,C+se.cy,ae,h(se.y0,se.x0),h(se.y1,se.x1),!k),e.arc(S,C,i,h(se.cy+se.y1,se.cx+se.x1),h(le.cy+le.y1,le.cx+le.x1),k),oe>0&&e.arc(S+le.cx,C+le.cy,oe,h(le.y1,le.x1),h(le.y0,le.x0),!k))}else e.lineTo(S+K,C+G),e.arc(S,C,i,E,_,k);else e.lineTo(S+K,C+G)}else e.moveTo(S,C);e.closePath()}}}var x=function(){function e(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0,this.cornerRadius=0}return e}(),_=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new x},t.prototype.buildPath=function(e,t){w(e,t)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t}(i["b"]);_.prototype.type="sector";t["a"]=_},T1nr:function(e,t,n){var r=n("Igga"),i=n("e6w7"),o=n("LsAW");e.exports=function(e){var t=r(e),n=i.f;if(n){var a,s=n(e),l=o.f,c=0;while(s.length>c)l.call(e,a=s[c++])&&t.push(a)}return t}},T4gb:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={};t["default"]={name:"stat",state:a()({},l),reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{getOverride(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(s["a"])("/admin/stat/getOverride");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"save",payload:a()({},r.data)});case 8:case"end":return e.stop()}},e)})()},getOrder(e){return i.a.mark(function t(){var n,r;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,t.next=3,Object(s["a"])("/admin/stat/getOrder");case 3:if(r=t.sent,200===r.code){t.next=6;break}return t.abrupt("return");case 6:n(r.data);case 7:case"end":return t.stop()}},t)})()},getServerLastRank(e){return i.a.mark(function t(){var n,r;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.complete,t.next=3,Object(s["a"])("/admin/stat/getServerLastRank");case 3:if(r=t.sent,200===r.code){t.next=6;break}return t.abrupt("return");case 6:n(r.data);case 7:case"end":return t.stop()}},t)})()}}}},T6xi:function(e,t,n){"use strict";var r=n("QBsz");function i(e,t,n,i){var o,a,s,l,c=[],u=[],h=[],f=[];if(i){s=[1/0,1/0],l=[-1/0,-1/0];for(var d=0,p=e.length;d=2){if(r){var a=i(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var c=a[2*l],u=a[2*l+1],h=o[(l+1)%s];e.bezierCurveTo(c[0],c[1],u[0],u[1],h[0],h[1])}}else{e.moveTo(o[0][0],o[0][1]);l=1;for(var f=o.length;l2&&void 0!==arguments[2]?arguments[2]:[],i=e.context.table,o=i.columnManager,a=i.components,s=i.props,l=s.prefixCls,c=s.childrenColumnName,u=s.rowClassName,h=s.rowRef,f=s.onRowClick,d=s.onRowDoubleClick,p=s.onRowContextMenu,m=s.onRowMouseEnter,g=s.onRowMouseLeave,v=s.onRow,y=e.props,w=y.getRowKey,x=y.fixed,_=y.expander,E=y.isAnyColumnsFixed,S=[],O=function(i){var s=t[i],y=w(s,i),O="string"===typeof u?u:u(s,i,n),T={};o.isAnyColumnsFixed()&&(T.onHover=e.handleRowHover);var A=void 0;A="left"===x?o.leftLeafColumns():"right"===x?o.rightLeafColumns():e.getColumns(o.leafColumns());var P="".concat(l,"-row"),M=b.createElement(k.default,Object.assign({},_.props,{fixed:x,index:i,prefixCls:P,record:s,key:y,rowKey:y,onRowClick:f,needIndentSpaced:_.needIndentSpaced,onExpandedChange:_.handleExpandChange}),function(e){return b.createElement(C.default,Object.assign({fixed:x,indent:n,className:O,record:s,index:i,prefixCls:P,childrenColumnName:c,columns:A,onRow:v,onRowDoubleClick:d,onRowContextMenu:p,onRowMouseEnter:m,onRowMouseLeave:g},T,{rowKey:y,ancestorKeys:r,ref:h(s,i,n),components:a,isAnyColumnsFixed:E},e))});S.push(M),_.renderRows(e.renderRows,S,s,i,n,x,y,r)},T=0;T0))}function g(e){return"string"===typeof e&&"none"!==e}function v(e){var t=e.fill;return null!=t&&"none"!==t}function y(e,t){if(null!=t.fillOpacity&&1!==t.fillOpacity){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function b(e,t){if(null!=t.strokeOpacity&&1!==t.strokeOpacity){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function w(e,t,n){var r=Object(o["a"])(t.image,t.__image,n);if(Object(o["c"])(r)){var i=e.createPattern(r,t.repeat||"repeat");if("function"===typeof DOMMatrix&&i&&i.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*u["a"]),a.scaleSelf(t.scaleX||1,t.scaleY||1),i.setTransform(a)}return i}}function x(e,t,n,r){var i,o=m(n),s=v(n),l=n.strokePercent,c=l<1,u=!t.path;t.silent&&!c||!u||t.createPathProxy();var d=t.path||p,g=t.__dirty;if(!r){var x=n.fill,_=n.stroke,E=s&&!!x.colorStops,S=o&&!!_.colorStops,C=s&&!!x.image,k=o&&!!_.image,O=void 0,T=void 0,A=void 0,P=void 0,M=void 0;(E||S)&&(M=t.getBoundingRect()),E&&(O=g?Object(a["a"])(e,x,M):t.__canvasFillGradient,t.__canvasFillGradient=O),S&&(T=g?Object(a["a"])(e,_,M):t.__canvasStrokeGradient,t.__canvasStrokeGradient=T),C&&(A=g||!t.__canvasFillPattern?w(e,x,t):t.__canvasFillPattern,t.__canvasFillPattern=A),k&&(P=g||!t.__canvasStrokePattern?w(e,_,t):t.__canvasStrokePattern,t.__canvasStrokePattern=A),E?e.fillStyle=O:C&&(A?e.fillStyle=A:s=!1),S?e.strokeStyle=T:k&&(P?e.strokeStyle=P:o=!1)}var R,j,L=t.getGlobalScale();d.setScale(L[0],L[1],t.segmentIgnoreThreshold),e.setLineDash&&n.lineDash&&(i=Object(h["a"])(t),R=i[0],j=i[1]);var D=!0;(u||g&f["b"])&&(d.setDPR(e.dpr),c?d.setContext(null):(d.setContext(e),D=!1),d.reset(),t.buildPath(d,t.shape,r),d.toStatic(),t.pathUpdated()),D&&d.rebuildPath(e,c?l:1),R&&(e.setLineDash(R),e.lineDashOffset=j),r||(n.strokeFirst?(o&&b(e,n),s&&y(e,n)):(s&&y(e,n),o&&b(e,n))),R&&e.setLineDash([])}function _(e,t,n){var r=t.__image=Object(o["a"])(n.image,t.__image,t,t.onload);if(r&&Object(o["c"])(r)){var i=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),c=r.width/r.height;if(null==s&&null!=l?s=l*c:null==l&&null!=s?l=s/c:null==s&&null==l&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var u=n.sx||0,h=n.sy||0;e.drawImage(r,u,h,n.sWidth,n.sHeight,i,a,s,l)}else if(n.sx&&n.sy){u=n.sx,h=n.sy;var f=s-u,d=l-h;e.drawImage(r,u,h,f,d,i,a,s,l)}else e.drawImage(r,i,a,s,l)}}function E(e,t,n){var r,i=n.text;if(null!=i&&(i+=""),i){e.font=n.font||d["a"],e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var o=void 0,a=void 0;e.setLineDash&&n.lineDash&&(r=Object(h["a"])(t),o=r[0],a=r[1]),o&&(e.setLineDash(o),e.lineDashOffset=a),n.strokeFirst?(m(n)&&e.strokeText(i,n.x,n.y),v(n)&&e.fillText(i,n.x,n.y)):(v(n)&&e.fillText(i,n.x,n.y),m(n)&&e.strokeText(i,n.x,n.y)),o&&e.setLineDash([])}}var S=["shadowBlur","shadowOffsetX","shadowOffsetY"],C=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function k(e,t,n,i,o){var a=!1;if(!i&&(n=n||{},t===n))return!1;if(i||t.opacity!==n.opacity){I(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?r["b"].opacity:s}(i||t.blend!==n.blend)&&(a||(I(e,o),a=!0),e.globalCompositeOperation=t.blend||r["b"].blend);for(var l=0;l0})}var c=function(e,t){var n=t.table,r=n.components,i=n.props,a=i.prefixCls,c=i.showHeader,u=i.onHeaderRow,h=e.expander,f=e.columns,d=e.fixed;if(!c)return null;var p=l({columns:f});h.renderExpandIndentCell(p,d);var m=r.header.wrapper;return o.createElement(m,{className:"".concat(a,"-thead")},p.map(function(e,t){return o.createElement(s.default,{prefixCls:a,key:t,index:t,fixed:d,columns:f,rows:p,row:e,components:r,onHeaderRow:u})}))};c.contextTypes={table:a.any},t.default=c},VPOE:function(e,t,n){var r=n("V5/1"),i=n("pQGJ");e.exports=n("8Z/V")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},VVlx:function(e,t,n){var r=n("29s/")("keys"),i=n("YqAc");e.exports=function(e){return r[e]||(r[e]=i(e))}},VbXa:function(e,t,n){var r=n("SksO");function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)}e.exports=i,e.exports.__esModule=!0,e.exports["default"]=e.exports},VeWa:function(e,t,n){(function(e){ace.define("ace/mode/json_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text_highlight_rules").TextHighlightRules,o=function(){this.$rules={start:[{token:"variable",regex:'["](?:(?:\\\\.)|(?:[^"\\\\]))*?["]\\s*(?=:)'},{token:"string",regex:'"',next:"string"},{token:"constant.numeric",regex:"0[xX][0-9a-fA-F]+\\b"},{token:"constant.numeric",regex:"[+-]?\\d+(?:(?:\\.\\d*)?(?:[eE][+-]?\\d+)?)?\\b"},{token:"constant.language.boolean",regex:"(?:true|false)\\b"},{token:"text",regex:"['](?:(?:\\\\.)|(?:[^'\\\\]))*?[']"},{token:"comment",regex:"\\/\\/.*$"},{token:"comment.start",regex:"\\/\\*",next:"comment"},{token:"paren.lparen",regex:"[[({]"},{token:"paren.rparen",regex:"[\\])}]"},{token:"text",regex:"\\s+"}],string:[{token:"constant.language.escape",regex:/\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|["\\\/bfnrt])/},{token:"string",regex:'"|$',next:"start"},{defaultToken:"string"}],comment:[{token:"comment.end",regex:"\\*\\/",next:"start"},{defaultToken:"comment"}]}};r.inherits(o,i),t.JsonHighlightRules=o}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range,i=function(){};(function(){this.checkOutdent=function(e,t){return!!/^\s+$/.test(e)&&/^\s*\}/.test(t)},this.autoOutdent=function(e,t){var n=e.getLine(t),i=n.match(/^(\s*\})/);if(!i)return 0;var o=i[1].length,a=e.findMatchingBracket({row:t,column:o});if(!a||a.row==t)return 0;var s=this.$getIndent(e.getLine(a.row));e.replace(new r(t,0,t,o-1),s)},this.$getIndent=function(e){return e.match(/^\s*/)[0]}}).call(i.prototype),t.MatchingBraceOutdent=i}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(e,t,n){"use strict";var r=e("../../lib/oop"),i=e("../../range").Range,o=e("./fold_mode").FoldMode,a=t.FoldMode=function(e){e&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+e.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+e.end)))};r.inherits(a,o),function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);if(this.singleLineBlockCommentRe.test(r)&&!this.startRegionRe.test(r)&&!this.tripleStarBlockCommentRe.test(r))return"";var i=this._getFoldWidgetBase(e,t,n);return!i&&this.startRegionRe.test(r)?"start":i},this.getFoldWidgetRange=function(e,t,n,r){var i=e.getLine(n);if(this.startRegionRe.test(i))return this.getCommentRegionBlock(e,i,n);var o=i.match(this.foldingStartMarker);if(o){var a=o.index;if(o[1])return this.openingBracketBlock(e,o[1],n,a);var s=e.getCommentFoldRange(n,a+o[0].length,1);return s&&!s.isMultiLine()&&(r?s=this.getSectionRange(e,n):"all"!=t&&(s=null)),s}if("markbegin"!==t){o=i.match(this.foldingStopMarker);if(o){a=o.index+o[0].length;return o[1]?this.closingBracketBlock(e,o[1],n,a):e.getCommentFoldRange(n,a,-1)}}},this.getSectionRange=function(e,t){var n=e.getLine(t),r=n.search(/\S/),o=t,a=n.length;t+=1;var s=t,l=e.getLength();while(++tc)break;var u=this.getFoldWidgetRange(e,"all",t);if(u){if(u.start.row<=o)break;if(u.isMultiLine())t=u.end.row;else if(r==c)break}s=t}}return new i(o,a,s,e.getLine(s).length)},this.getCommentRegionBlock=function(e,t,n){var r=t.search(/\s*$/),o=e.getLength(),a=n,s=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,l=1;while(++na)return new i(a,r,u,t.length)}}.call(a.prototype)}),ace.define("ace/mode/json",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/json_highlight_rules","ace/mode/matching_brace_outdent","ace/mode/behaviour/cstyle","ace/mode/folding/cstyle","ace/worker/worker_client"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("./text").Mode,o=e("./json_highlight_rules").JsonHighlightRules,a=e("./matching_brace_outdent").MatchingBraceOutdent,s=e("./behaviour/cstyle").CstyleBehaviour,l=e("./folding/cstyle").FoldMode,c=e("../worker/worker_client").WorkerClient,u=function(){this.HighlightRules=o,this.$outdent=new a,this.$behaviour=new s,this.foldingRules=new l};r.inherits(u,i),function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.getNextLineIndent=function(e,t,n){var r=this.$getIndent(t);if("start"==e){var i=t.match(/^.*[\{\(\[]\s*$/);i&&(r+=n)}return r},this.checkOutdent=function(e,t,n){return this.$outdent.checkOutdent(t,n)},this.autoOutdent=function(e,t,n){this.$outdent.autoOutdent(t,n)},this.createWorker=function(e){var t=new c(["ace"],"ace/mode/json_worker","JsonWorker");return t.attachToDocument(e.getDocument()),t.on("annotate",function(t){e.setAnnotations(t.data)}),t.on("terminate",function(){e.clearAnnotations()}),t},this.$id="ace/mode/json"}.call(u.prototype),t.Mode=u}),function(){ace.require(["ace/mode/json"],function(t){e&&(e.exports=t)})}()}).call(this,n("YuTi")(e))},Vegh:function(e,t,n){"use strict";var r=n("iCc5"),i=n.n(r),o=n("FYw3"),a=n.n(o),s=n("mRg0"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("i8i4"),f=n.n(h),d=n("17x9"),p=n.n(d),m=n("4IlW"),g=n("VCL8"),v=n("wd/R"),y=n.n(v),b=n("GrtH"),w=void 0,x=void 0,_=void 0,E=function(e){function t(n){i()(this,t);var r=a()(this,e.call(this,n));S.call(r);var o=n.selectedValue;return r.state={str:Object(b["a"])(o,r.props.format),invalid:!1,hasFocus:!1},r}return l()(t,e),t.prototype.componentDidUpdate=function(){!_||!this.state.hasFocus||this.state.invalid||0===w&&0===x||_.setSelectionRange(w,x)},t.getDerivedStateFromProps=function(e,t){var n={};_&&(w=_.selectionStart,x=_.selectionEnd);var r=e.selectedValue;return t.hasFocus||(n={str:Object(b["a"])(r,e.format),invalid:!1}),n},t.getInstance=function(){return _},t.prototype.render=function(){var e=this.props,t=this.state,n=t.invalid,r=t.str,i=e.locale,o=e.prefixCls,a=e.placeholder,s=e.clearIcon,l=e.inputMode,c=n?o+"-input-invalid":"";return u.a.createElement("div",{className:o+"-input-wrap"},u.a.createElement("div",{className:o+"-date-input-wrap"},u.a.createElement("input",{ref:this.saveDateInput,className:o+"-input "+c,value:r,disabled:e.disabled,placeholder:a,onChange:this.onInputChange,onKeyDown:this.onKeyDown,onFocus:this.onFocus,onBlur:this.onBlur,inputMode:l})),e.showClear?u.a.createElement("a",{role:"button",title:i.clear,onClick:this.onClear},s||u.a.createElement("span",{className:o+"-clear-btn"})):null)},t}(u.a.Component);E.propTypes={prefixCls:p.a.string,timePicker:p.a.object,value:p.a.object,disabledTime:p.a.any,format:p.a.oneOfType([p.a.string,p.a.arrayOf(p.a.string)]),locale:p.a.object,disabledDate:p.a.func,onChange:p.a.func,onClear:p.a.func,placeholder:p.a.string,onSelect:p.a.func,selectedValue:p.a.object,clearIcon:p.a.node,inputMode:p.a.string};var S=function(){var e=this;this.onClear=function(){e.setState({str:""}),e.props.onClear(null)},this.onInputChange=function(t){var n=t.target.value,r=e.props,i=r.disabledDate,o=r.format,a=r.onChange,s=r.selectedValue;if(!n)return a(null),void e.setState({invalid:!1,str:n});var l=y()(n,o,!0);if(l.isValid()){var c=e.props.value.clone();c.year(l.year()).month(l.month()).date(l.date()).hour(l.hour()).minute(l.minute()).second(l.second()),!c||i&&i(c)?e.setState({invalid:!0,str:n}):(s!==c||s&&c&&!s.isSame(c))&&(e.setState({invalid:!1,str:n}),a(c))}else e.setState({invalid:!0,str:n})},this.onFocus=function(){e.setState({hasFocus:!0})},this.onBlur=function(){e.setState(function(e,t){return{hasFocus:!1,str:Object(b["a"])(t.value,t.format)}})},this.onKeyDown=function(t){var n=t.keyCode,r=e.props,i=r.onSelect,o=r.value,a=r.disabledDate;if(n===m["a"].ENTER&&i){var s=!a||!a(o);s&&i(o.clone()),t.preventDefault()}},this.getRootDOMNode=function(){return f.a.findDOMNode(e)},this.focus=function(){_&&_.focus()},this.saveDateInput=function(e){_=e}};Object(g["polyfill"])(E),t["a"]=E},VeyY:function(e,t,n){var r=n("7vYJ"),i=n("wYm8"),o=n("gL7N")("species");e.exports=function(e,t){var n,a=r(e).constructor;return void 0===a||void 0==(n=r(a)[o])?t:i(n)}},VxKu:function(e,t,n){"use strict";var r=n("WGNW"),i=n("Lnex")(!0);r(r.P,"Array",{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("DIcO")("includes")},VyuQ:function(e,t,n){var r=n("bV5f"),i=n("c0Oy"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("FqPH")?"pure":"global",copyright:"\xa9 2019 Denis Pushkarev (zloirock.ru)"})},W070:function(e,t,n){var r=n("NsO/"),i=n("tEej"),o=n("D8kY");e.exports=function(e){return function(t,n,a){var s,l=r(t),c=i(l.length),u=o(a,c);if(e&&n!=n){while(c>u)if(s=l[u++],s!=s)return!0}else for(;c>u;u++)if((e||u in l)&&l[u]===n)return e||u||0;return!e&&-1}}},W3Xk:function(e,t,n){var r=n("WGNW"),i=n("ZDr/"),o=n("wUWy"),a=n("GsrZ"),s="["+a+"]",l="\u200b\x85",c=RegExp("^"+s+s+"*"),u=RegExp(s+s+"*$"),h=function(e,t,n){var i={},s=o(function(){return!!a[e]()||l[e]()!=l}),c=i[e]=s?t(f):a[e];n&&(i[n]=c),r(r.P+r.F*s,"String",i)},f=h.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=h},W5Cv:function(e,t,n){"use strict";function r(e,t){var n=window.Element.prototype,r=n.matches||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector;if(!e||1!==e.nodeType)return!1;var i=e.parentNode;if(r)return r.call(e,t);for(var o=i.querySelectorAll(t),a=o.length,s=0;sm()(1e3*e).format("YYYY-MM-DD")},{title:"\u4e0a\u884c",dataIndex:"u",key:"d",align:"right",render:e=>Object(g["b"])(e)},{title:"\u4e0b\u884c",dataIndex:"d",key:"d",align:"right",render:e=>Object(g["b"])(e)},{title:"\u500d\u7387",dataIndex:"server_rate",key:"server_rate",align:"right"}];return f.a.createElement(f.a.Fragment,null,f.a.cloneElement(this.props.children,{onClick:()=>this.show()}),f.a.createElement(r["a"],{width:"100%",style:{maxWidth:1e3,padding:"0 10px",top:20},onCancel:()=>this.setState({visible:!1}),bodyStyle:{padding:0},footer:!1,visible:t,title:"\u6d41\u91cf\u8bb0\u5f55"},f.a.createElement(v["a"],{loading:a},f.a.createElement(i["a"],{pagination:l()({},o,{size:"small"}),columns:s,dataSource:n,onChange:e=>{this.setState({pagination:e},()=>{this.getStatUser()})}}))))}}},XI6d:function(e,t,n){var r=n("c0Oy").document;e.exports=r&&r.documentElement},XIdC:function(e,t,n){e.exports=n("Ctgt")},"XP1/":function(e,t,n){n("Jaki")("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},XUei:function(e,t,n){"use strict";function r(e,t,n){this.locales=e,this.formats=t,this.pluralFn=n}function i(e){this.id=e}function o(e,t,n,r,i){this.id=e,this.useOrdinal=t,this.offset=n,this.options=r,this.pluralFn=i}function a(e,t,n,r){this.id=e,this.offset=t,this.numberFormat=n,this.string=r}function s(e,t){this.id=e,this.options=t}t["default"]=r,r.prototype.compile=function(e){return this.pluralStack=[],this.currentPlural=null,this.pluralNumberFormat=null,this.compileMessage(e)},r.prototype.compileMessage=function(e){if(!e||"messageFormatPattern"!==e.type)throw new Error('Message AST is not of type: "messageFormatPattern"');var t,n,r,i=e.elements,o=[];for(t=0,n=i.length;t-1}function Xe(e,t){var n=this.__data__,r=dt(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function Qe(e){var t=-1,n=null==e?0:e.length;this.clear();while(++tc))return!1;var h=s.get(e);if(h&&s.get(t))return h==t;var f=-1,d=!0,p=n&a?new rt:void 0;s.set(e,t),s.set(t,e);while(++f-1&&e%1==0&&e-1&&e%1==0&&e<=s}function zt(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qt(e){return null!=e&&"object"==typeof e}var Kt=Q?ne(Q):wt;function Gt(e){return Bt(e)?ft(e):xt(e)}function Yt(){return[]}function Xt(){return!1}n.exports=Wt}).call(this,n("yLpj"),n("YuTi")(e))},XaS2:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(null==e)return{};var n,r,i=o(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function o(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t=0&&this.setRowHeight())}},{key:"render",value:function(){if(!this.state.shouldRender)return null;var e=this.props,t=e.prefixCls,n=e.columns,r=e.record,o=e.rowKey,a=e.index,l=e.onRow,c=e.indent,u=e.indentSize,h=e.hovered,f=e.height,d=e.visible,p=e.components,m=e.hasExpandIcon,g=e.renderExpandIcon,v=e.renderExpandIconCell,y=e.onRowClick,b=e.onRowDoubleClick,w=e.onRowMouseEnter,_=e.onRowMouseLeave,S=e.onRowContextMenu,C=p.body.row,T=p.body.cell,A=this.props.className;h&&(A+=" ".concat(t,"-hover"));var P=[];v(P);for(var M=0;M0?this.tail.next=t:this.head=t,this.tail=t,++this.length},e.prototype.unshift=function(e){var t={data:e,next:this.head};0===this.length&&(this.tail=t),this.head=t,++this.length},e.prototype.shift=function(){if(0!==this.length){var e=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,e}},e.prototype.clear=function(){this.head=this.tail=null,this.length=0},e.prototype.join=function(e){if(0===this.length)return"";var t=this.head,n=""+t.data;while(t=t.next)n+=e+t.data;return n},e.prototype.concat=function(e){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;var t=i.allocUnsafe(e>>>0),n=this.head,r=0;while(n)a(n.data,t,r),r+=n.data.length,n=n.next;return t},e}(),o&&o.inspect&&o.inspect.custom&&(e.exports.prototype[o.inspect.custom]=function(){var e=o.inspect({length:this.length});return this.constructor.name+" "+e})},Xnb7:function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return c});var r=n("1RvN"),i=n("cm6r"),o=new r["a"](50);function a(e){if("string"===typeof e){var t=o.get(e);return t&&t.image}return e}function s(e,t,n,r,a){if(e){if("string"===typeof e){if(t&&t.__zrImageSrc===e||!n)return t;var s=o.get(e),u={hostEl:n,cb:r,cbPayload:a};return s?(t=s.image,!c(t)&&s.pending.push(u)):(t=i["d"].loadImage(e,l,l),t.__zrImageSrc=e,o.put(e,t.__cachedImgObj={image:t,pending:[u]})),t}return e}return t}function l(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}e.exports=i},"Y/ne":function(e,t,n){var r=n("OsVd"),i=n("03ni"),o=n("ZDr/");e.exports=function(e,t,n,a){var s=String(o(e)),l=s.length,c=void 0===n?" ":String(n),u=r(t);if(u<=l||""==c)return s;var h=u-l,f=i.call(c,Math.ceil(h/c.length));return f.length>h&&(f=f.slice(0,h)),a?f+s:s+f}},Y2fQ:function(e,t,n){e.exports=n("LLXN").default||n("LLXN")},Y7ZC:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),o=n("2GTP"),a=n("NegM"),s=n("B+OT"),l="prototype",c=function(e,t,n){var u,h,f,d=e&c.F,p=e&c.G,m=e&c.S,g=e&c.P,v=e&c.B,y=e&c.W,b=p?i:i[t]||(i[t]={}),w=b[l],x=p?r:m?r[t]:(r[t]||{})[l];for(u in p&&(n=t),n)h=!d&&x&&void 0!==x[u],h&&s(b,u)||(f=h?x[u]:n[u],b[u]=p&&"function"!=typeof x[u]?n[u]:v&&h?o(f,r):y&&x[u]==f?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t[l]=e[l],t}(f):g&&"function"==typeof f?o(Function.call,f):f,g&&((b.virtual||(b.virtual={}))[u]=f,e&c.R&&w&&!w[u]&&a(w,u,f)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},YEIV:function(e,t,n){"use strict";t.__esModule=!0;var r=n("SEkw"),i=o(r);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},YEVI:function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},YH21:function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return h}),n.d(t,"a",function(){return d}),n.d(t,"e",function(){return p}),n.d(t,"f",function(){return m});var r=n("ItGF"),i=n("Ze12"),o=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,a=[],s=r["a"].browser.firefox&&+r["a"].browser.version.split(".")[0]<39;function l(e,t,n,r){return n=n||{},r?c(e,t,n):s&&null!=t.layerX&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):null!=t.offsetX?(n.zrX=t.offsetX,n.zrY=t.offsetY):c(e,t,n),n}function c(e,t,n){if(r["a"].domSupported&&e.getBoundingClientRect){var o=t.clientX,s=t.clientY;if(Object(i["b"])(e)){var l=e.getBoundingClientRect();return n.zrX=o-l.left,void(n.zrY=s-l.top)}if(Object(i["c"])(a,e,o,s))return n.zrX=a[0],void(n.zrY=a[1])}n.zrX=n.zrY=0}function u(e){return e||window.event}function h(e,t,n){if(t=u(t),null!=t.zrX)return t;var r=t.type,i=r&&r.indexOf("touch")>=0;if(i){var a="touchend"!==r?t.targetTouches[0]:t.changedTouches[0];a&&l(e,a,t,n)}else{l(e,t,t,n);var s=f(t);t.zrDelta=s?s/120:-(t.detail||0)/3}var c=t.button;return null==t.which&&void 0!==c&&o.test(t.type)&&(t.which=1&c?1:2&c?3:4&c?2:0),t}function f(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(null==n||null==r)return t;var i=0!==r?Math.abs(r):Math.abs(n),o=r>0?-1:r<0?1:n>0?-1:1;return 3*i*o}function d(e,t,n,r){e.addEventListener(t,n,r)}function p(e,t,n,r){e.removeEventListener(t,n,r)}var m=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0}},YVYq:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("q1tI"),i=n.n(r);function o(e){var t=e.prefixCls,n=e.locale,r=e.okDisabled,o=e.onOk,a=t+"-ok-btn";return r&&(a+=" "+t+"-ok-btn-disabled"),i.a.createElement("a",{className:a,role:"button",onClick:r?null:o},n.ok)}},Yf6U:function(e,t,n){var r=n("W5Cv");e.exports=function(e,t,n){n=n||document,e={parentNode:e};while((e=e.parentNode)&&e!==n)if(r(e,t))return e}},YqAc:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},YqDF:function(e,t,n){"use strict";function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t0&&c&&(w.marginBottom="-".concat(_,"px"),w.paddingBottom="0px")}var E,S=l.createElement(h.default,{tableClassName:f,hasHead:!b,hasBody:!0,fixed:c,columns:s,expander:g,getRowKey:d,isAnyColumnsFixed:v});if(c&&s.length)return"left"===s[0].fixed||!0===s[0].fixed?E="fixedColumnsBodyLeft":"right"===s[0].fixed&&(E="fixedColumnsBodyRight"),delete w.overflowX,delete w.overflowY,l.createElement("div",{key:"bodyTable",className:"".concat(o,"-body-outer"),style:i({},w)},l.createElement("div",{className:"".concat(o,"-body-inner"),style:x,ref:y(E),onWheel:m,onScroll:p},S));var C=a&&(a.x||a.y);return l.createElement("div",{tabIndex:C?-1:void 0,key:"bodyTable",className:"".concat(o,"-body"),style:w,ref:y("bodyTable"),onWheel:m,onScroll:p},S)}t.default=f,f.contextTypes={table:c.any}},YuTi:function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},Z4ex:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;nt.length?e:t,u=e.length>t.length?t:e,h=c.indexOf(u);if(-1!=h)return l=[new n.Diff(i,c.substring(0,h)),new n.Diff(o,u),new n.Diff(i,c.substring(h+u.length))],e.length>t.length&&(l[0][0]=l[2][0]=r),l;if(1==u.length)return[new n.Diff(r,e),new n.Diff(i,t)];var f=this.diff_halfMatch_(e,t);if(f){var d=f[0],p=f[1],m=f[2],g=f[3],v=f[4],y=this.diff_main(d,m,a,s),b=this.diff_main(p,g,a,s);return y.concat([new n.Diff(o,v)],b)}return a&&e.length>100&&t.length>100?this.diff_lineMode_(e,t,s):this.diff_bisect_(e,t,s)},n.prototype.diff_lineMode_=function(e,t,a){var s=this.diff_linesToChars_(e,t);e=s.chars1,t=s.chars2;var l=s.lineArray,c=this.diff_main(e,t,!1,a);this.diff_charsToLines_(c,l),this.diff_cleanupSemantic(c),c.push(new n.Diff(o,""));var u=0,h=0,f=0,d="",p="";while(u=1&&f>=1){c.splice(u-h-f,h+f),u=u-h-f;for(var m=this.diff_main(d,p,!1,a),g=m.length-1;g>=0;g--)c.splice(u,0,m[g]);u+=m.length}f=0,h=0,d="",p="";break}u++}return c.pop(),c},n.prototype.diff_bisect_=function(e,t,o){for(var a=e.length,s=t.length,l=Math.ceil((a+s)/2),c=l,u=2*l,h=new Array(u),f=new Array(u),d=0;do)break;for(var x=-w+g;x<=w-v;x+=2){var _=c+x;T=x==-w||x!=w&&h[_-1]a)v+=2;else if(E>s)g+=2;else if(m){var S=c+p-x;if(S>=0&&S=C)return this.diff_bisectSplit_(e,t,T,E,o)}}}for(var k=-w+y;k<=w-b;k+=2){S=c+k;C=k==-w||k!=w&&f[S-1]a)b+=2;else if(O>s)y+=2;else if(!m){_=c+p-k;if(_>=0&&_=C)return this.diff_bisectSplit_(e,t,T,E,o)}}}}return[new n.Diff(r,e),new n.Diff(i,t)]},n.prototype.diff_bisectSplit_=function(e,t,n,r,i){var o=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),c=this.diff_main(o,a,!1,i),u=this.diff_main(s,l,!1,i);return c.concat(u)},n.prototype.diff_linesToChars_=function(e,t){var n=[],r={};function i(e){var t="",i=0,a=-1,s=n.length;while(ar?e=e.substring(n-r):nt.length?e:t,r=e.length>t.length?t:e;if(n.length<4||2*r.length=e.length?[r,o,a,s,u]:null}var a,s,l,c,u,h=o(n,r,Math.ceil(n.length/4)),f=o(n,r,Math.ceil(n.length/2));if(!h&&!f)return null;a=f?h&&h[4].length>f[4].length?h:f:h,e.length>t.length?(s=a[0],l=a[1],c=a[2],u=a[3]):(c=a[0],u=a[1],s=a[2],l=a[3]);var d=a[4];return[s,l,c,u,d]},n.prototype.diff_cleanupSemantic=function(e){var t=!1,a=[],s=0,l=null,c=0,u=0,h=0,f=0,d=0;while(c0?a[s-1]:-1,u=0,h=0,f=0,d=0,l=null,t=!0)),c++;t&&this.diff_cleanupMerge(e),this.diff_cleanupSemanticLossless(e),c=1;while(c=v?(g>=p.length/2||g>=m.length/2)&&(e.splice(c,0,new n.Diff(o,m.substring(0,g))),e[c-1][1]=p.substring(0,p.length-g),e[c+1][1]=m.substring(g),c++):(v>=p.length/2||v>=m.length/2)&&(e.splice(c,0,new n.Diff(o,p.substring(0,v))),e[c-1][0]=i,e[c-1][1]=m.substring(0,m.length-v),e[c+1][0]=r,e[c+1][1]=p.substring(v),c++),c++}c++}},n.prototype.diff_cleanupSemanticLossless=function(e){function t(e,t){if(!e||!t)return 6;var r=e.charAt(e.length-1),i=t.charAt(0),o=r.match(n.nonAlphaNumericRegex_),a=i.match(n.nonAlphaNumericRegex_),s=o&&r.match(n.whitespaceRegex_),l=a&&i.match(n.whitespaceRegex_),c=s&&r.match(n.linebreakRegex_),u=l&&i.match(n.linebreakRegex_),h=c&&e.match(n.blanklineEndRegex_),f=u&&t.match(n.blanklineStartRegex_);return h||f?5:c||u?4:o&&!s&&l?3:s||l?2:o||a?1:0}var r=1;while(r=d&&(d=p,u=i,h=a,f=s)}e[r-1][1]!=u&&(u?e[r-1][1]=u:(e.splice(r-1,1),r--),e[r][1]=h,f?e[r+1][1]=f:(e.splice(r+1,1),r--))}r++}},n.nonAlphaNumericRegex_=/[^a-zA-Z0-9]/,n.whitespaceRegex_=/\s/,n.linebreakRegex_=/[\r\n]/,n.blanklineEndRegex_=/\n\r?\n$/,n.blanklineStartRegex_=/^\r?\n\r?\n/,n.prototype.diff_cleanupEfficiency=function(e){var t=!1,a=[],s=0,l=null,c=0,u=!1,h=!1,f=!1,d=!1;while(c0?a[s-1]:-1,f=d=!1),t=!0)),c++;t&&this.diff_cleanupMerge(e)},n.prototype.diff_cleanupMerge=function(e){e.push(new n.Diff(o,""));var t,a=0,s=0,l=0,c="",u="";while(a1?(0!==s&&0!==l&&(t=this.diff_commonPrefix(u,c),0!==t&&(a-s-l>0&&e[a-s-l-1][0]==o?e[a-s-l-1][1]+=u.substring(0,t):(e.splice(0,0,new n.Diff(o,u.substring(0,t))),a++),u=u.substring(t),c=c.substring(t)),t=this.diff_commonSuffix(u,c),0!==t&&(e[a][1]=u.substring(u.length-t)+e[a][1],u=u.substring(0,u.length-t),c=c.substring(0,c.length-t))),a-=s+l,e.splice(a,s+l),c.length&&(e.splice(a,0,new n.Diff(r,c)),a++),u.length&&(e.splice(a,0,new n.Diff(i,u)),a++),a++):0!==a&&e[a-1][0]==o?(e[a-1][1]+=e[a][1],e.splice(a,1)):a++,l=0,s=0,c="",u="";break}""===e[e.length-1][1]&&e.pop();var h=!1;a=1;while(at)break;s=o,l=a}return e.length!=n&&e[n][0]===r?l:l+(t-s)},n.prototype.diff_prettyHtml=function(e){for(var t=[],n=/&/g,a=//g,l=/\n/g,c=0;c");switch(u){case i:t[c]=''+f+"";break;case r:t[c]=''+f+"";break;case o:t[c]=""+f+"";break}}return t.join("")},n.prototype.diff_text1=function(e){for(var t=[],n=0;nthis.Match_MaxBits)throw new Error("Pattern too long for this browser.");var r=this.match_alphabet_(t),i=this;function o(e,r){var o=e/t.length,a=Math.abs(n-r);return i.Match_Distance?o+a/i.Match_Distance:a?1:o}var a=this.Match_Threshold,s=e.indexOf(t,n);-1!=s&&(a=Math.min(o(0,s),a),s=e.lastIndexOf(t,n+t.length),-1!=s&&(a=Math.min(o(0,s),a)));var l,c,u=1<=p;v--){var y=r[e.charAt(v-1)];if(g[v]=0===d?(g[v+1]<<1|1)&y:(g[v+1]<<1|1)&y|(h[v+1]|h[v])<<1|1|h[v+1],g[v]&u){var b=o(d,v-1);if(b<=a){if(a=b,s=v-1,!(s>n))break;p=Math.max(1,2*n-s)}}}if(o(d+1,n)>a)break;h=g}return s},n.prototype.match_alphabet_=function(e){for(var t={},n=0;n2&&(this.diff_cleanupSemantic(l),this.diff_cleanupEfficiency(l));else if(e&&"object"==typeof e&&"undefined"==typeof t&&"undefined"==typeof a)l=e,s=this.diff_text1(l);else if("string"==typeof e&&t&&"object"==typeof t&&"undefined"==typeof a)s=e,l=t;else{if("string"!=typeof e||"string"!=typeof t||!a||"object"!=typeof a)throw new Error("Unknown call format to patch_make.");s=e,l=a}if(0===l.length)return[];for(var c=[],u=new n.patch_obj,h=0,f=0,d=0,p=s,m=s,g=0;g=2*this.Patch_Margin&&h&&(this.patch_addContext_(u,p),c.push(u),u=new n.patch_obj,h=0,p=m,f=d);break}v!==i&&(f+=y.length),v!==r&&(d+=y.length)}return h&&(this.patch_addContext_(u,p),c.push(u)),c},n.prototype.patch_deepCopy=function(e){for(var t=[],r=0;rthis.Match_MaxBits?(c=this.match_main(t,f.substring(0,this.Match_MaxBits),h),-1!=c&&(d=this.match_main(t,f.substring(f.length-this.Match_MaxBits),h+f.length-this.Match_MaxBits),(-1==d||c>=d)&&(c=-1))):c=this.match_main(t,f,h),-1==c)s[l]=!1,a-=e[l].length2-e[l].length1;else if(s[l]=!0,a=c-h,u=-1==d?t.substring(c,c+f.length):t.substring(c,d+this.Match_MaxBits),f==u)t=t.substring(0,c)+this.diff_text2(e[l].diffs)+t.substring(c+f.length);else{var p=this.diff_main(f,u,!1);if(f.length>this.Match_MaxBits&&this.diff_levenshtein(p)/f.length>this.Patch_DeleteThreshold)s[l]=!1;else{this.diff_cleanupSemanticLossless(p);for(var m,g=0,v=0;vs[0][1].length){var l=t-s[0][1].length;s[0][1]=r.substring(s[0][1].length)+s[0][1],a.start1-=l,a.start2-=l,a.length1+=l,a.length2+=l}if(a=e[e.length-1],s=a.diffs,0==s.length||s[s.length-1][0]!=o)s.push(new n.Diff(o,r)),a.length1+=t,a.length2+=t;else if(t>s[s.length-1][1].length){l=t-s[s.length-1][1].length;s[s.length-1][1]+=r.substring(0,l),a.length1+=l,a.length2+=l}return r},n.prototype.patch_splitMax=function(e){for(var t=this.Match_MaxBits,a=0;a2*t?(h.length1+=p.length,l+=p.length,f=!1,h.diffs.push(new n.Diff(d,p)),s.diffs.shift()):(p=p.substring(0,t-h.length1-this.Patch_Margin),h.length1+=p.length,l+=p.length,d===o?(h.length2+=p.length,c+=p.length):f=!1,h.diffs.push(new n.Diff(d,p)),p==s.diffs[0][1]?s.diffs.shift():s.diffs[0][1]=s.diffs[0][1].substring(p.length))}u=this.diff_text2(h.diffs),u=u.substring(u.length-this.Patch_Margin);var m=this.diff_text1(s.diffs).substring(0,this.Patch_Margin);""!==m&&(h.length1+=m.length,h.length2+=m.length,0!==h.diffs.length&&h.diffs[h.diffs.length-1][0]===o?h.diffs[h.diffs.length-1][1]+=m:h.diffs.push(new n.Diff(o,m))),f||e.splice(++a,0,h)}}},n.prototype.patch_toText=function(e){for(var t=[],n=0;n>1)%2;s.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[l]+":0",i[c]+":0",r[1-l]+":auto",i[1-c]+":auto",""].join("!important;"),e.appendChild(a),n.push(a)}return n}function f(e,t,n){for(var r=n?"invTrans":"trans",i=t[r],o=t.srcCoords,s=[],l=[],c=!0,u=0;u<4;u++){var h=e[u].getBoundingClientRect(),f=2*u,d=h.left,p=h.top;s.push(d,p),c=c&&o&&d===o[f]&&p===o[f+1],l.push(e[u].offsetLeft,e[u].offsetTop)}return c&&i?i:(t.srcCoords=s,t[r]=n?a(l,s):a(s,l))}function d(e){return"CANVAS"===e.nodeName.toUpperCase()}var p=/([&<>"'])/g,m={"&":"&","<":"<",">":">",'"':""","'":"'"};function g(e){return null==e?"":(e+"").replace(p,function(e,t){return m[t]})}},Zgoe:function(e,t,n){var r=n("9HFh"),i=n("e6w7"),o=n("7vYJ"),a=n("c0Oy").Reflect;e.exports=a&&a.ownKeys||function(e){var t=r.f(o(e)),n=i.f;return n?t.concat(n(e)):t}},ZlA7:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={groups:[],switchLoading:{},saveLoading:!1,fetchLoading:!1};t["default"]={name:"serverGroup",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/server/group/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{groups:r.data}});case 12:case"end":return e.stop()}},e)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/group/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,Object(s["b"])("/admin/server/group/save",r);case 4:if(l=n.sent,200===l.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,a({type:"fetch"});case 9:"function"===typeof o&&o();case 10:case"end":return n.stop()}},n)})()}}}},Zss7:function(e,t,n){var r;(function(i){var o=/^\s+/,a=/\s+$/,s=0,l=i.round,c=i.min,u=i.max,h=i.random;function f(e,t){if(e=e||"",t=t||{},e instanceof f)return e;if(!(this instanceof f))return new f(e,t);var n=d(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=l(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=l(this._r)),this._g<1&&(this._g=l(this._g)),this._b<1&&(this._b=l(this._b)),this._ok=n.ok,this._tc_id=s++}function d(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,o=null,a=!1,s=!1;return"string"==typeof e&&(e=X(e)),"object"==typeof e&&(Y(e.r)&&Y(e.g)&&Y(e.b)?(t=p(e.r,e.g,e.b),a=!0,s="%"===String(e.r).substr(-1)?"prgb":"rgb"):Y(e.h)&&Y(e.s)&&Y(e.v)?(r=z(e.s),i=z(e.v),t=y(e.h,r,i),a=!0,s="hsv"):Y(e.h)&&Y(e.s)&&Y(e.l)&&(r=z(e.s),o=z(e.l),t=g(e.h,r,o),a=!0,s="hsl"),e.hasOwnProperty("a")&&(n=e.a)),n=$(n),{ok:a,format:e.format||s,r:c(255,u(t.r,0)),g:c(255,u(t.g,0)),b:c(255,u(t.b,0)),a:n}}function p(e,t,n){return{r:255*F(e,255),g:255*F(t,255),b:255*F(n,255)}}function m(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,i,o=u(e,t,n),a=c(e,t,n),s=(o+a)/2;if(o==a)r=i=0;else{var l=o-a;switch(i=s>.5?l/(2-o-a):l/(o+a),o){case e:r=(t-n)/l+(t1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=F(e,360),t=F(t,100),n=F(n,100),0===t)r=i=o=n;else{var s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;r=a(l,s,e+1/3),i=a(l,s,e),o=a(l,s,e-1/3)}return{r:255*r,g:255*i,b:255*o}}function v(e,t,n){e=F(e,255),t=F(t,255),n=F(n,255);var r,i,o=u(e,t,n),a=c(e,t,n),s=o,l=o-a;if(i=0===o?0:l/o,o==a)r=0;else{switch(o){case e:r=(t-n)/l+(t>1)+720)%360;--t;)r.h=(r.h+i)%360,o.push(f(r));return o}function L(e,t){t=t||6;var n=f(e).toHsv(),r=n.h,i=n.s,o=n.v,a=[],s=1/t;while(t--)a.push(f({h:r,s:i,v:o})),o=(o+s)%1;return a}f.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r,o,a,s=this.toRgb();return e=s.r/255,t=s.g/255,n=s.b/255,r=e<=.03928?e/12.92:i.pow((e+.055)/1.055,2.4),o=t<=.03928?t/12.92:i.pow((t+.055)/1.055,2.4),a=n<=.03928?n/12.92:i.pow((n+.055)/1.055,2.4),.2126*r+.7152*o+.0722*a},setAlpha:function(e){return this._a=$(e),this._roundA=l(100*this._a)/100,this},toHsv:function(){var e=v(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=v(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.v);return 1==this._a?"hsv("+t+", "+n+"%, "+r+"%)":"hsva("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHsl:function(){var e=m(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=m(this._r,this._g,this._b),t=l(360*e.h),n=l(100*e.s),r=l(100*e.l);return 1==this._a?"hsl("+t+", "+n+"%, "+r+"%)":"hsla("+t+", "+n+"%, "+r+"%, "+this._roundA+")"},toHex:function(e){return b(this._r,this._g,this._b,e)},toHexString:function(e){return"#"+this.toHex(e)},toHex8:function(e){return w(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return"#"+this.toHex8(e)},toRgb:function(){return{r:l(this._r),g:l(this._g),b:l(this._b),a:this._a}},toRgbString:function(){return 1==this._a?"rgb("+l(this._r)+", "+l(this._g)+", "+l(this._b)+")":"rgba("+l(this._r)+", "+l(this._g)+", "+l(this._b)+", "+this._roundA+")"},toPercentageRgb:function(){return{r:l(100*F(this._r,255))+"%",g:l(100*F(this._g,255))+"%",b:l(100*F(this._b,255))+"%",a:this._a}},toPercentageRgbString:function(){return 1==this._a?"rgb("+l(100*F(this._r,255))+"%, "+l(100*F(this._g,255))+"%, "+l(100*F(this._b,255))+"%)":"rgba("+l(100*F(this._r,255))+"%, "+l(100*F(this._g,255))+"%, "+l(100*F(this._b,255))+"%, "+this._roundA+")"},toName:function(){return 0===this._a?"transparent":!(this._a<1)&&(N[b(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t="#"+x(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?"GradientType = 1, ":"";if(e){var i=f(e);n="#"+x(i._r,i._g,i._b,i._a)}return"progid:DXImageTransform.Microsoft.gradient("+r+"startColorstr="+t+",endColorstr="+n+")"},toString:function(e){var t=!!e;e=e||this._format;var n=!1,r=this._a<1&&this._a>=0,i=!t&&r&&("hex"===e||"hex6"===e||"hex3"===e||"hex4"===e||"hex8"===e||"name"===e);return i?"name"===e&&0===this._a?this.toName():this.toRgbString():("rgb"===e&&(n=this.toRgbString()),"prgb"===e&&(n=this.toPercentageRgbString()),"hex"!==e&&"hex6"!==e||(n=this.toHexString()),"hex3"===e&&(n=this.toHexString(!0)),"hex4"===e&&(n=this.toHex8String(!0)),"hex8"===e&&(n=this.toHex8String()),"name"===e&&(n=this.toName()),"hsl"===e&&(n=this.toHslString()),"hsv"===e&&(n=this.toHsvString()),n||this.toHexString())},clone:function(){return f(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(C,arguments)},brighten:function(){return this._applyModification(k,arguments)},darken:function(){return this._applyModification(O,arguments)},desaturate:function(){return this._applyModification(_,arguments)},saturate:function(){return this._applyModification(E,arguments)},greyscale:function(){return this._applyModification(S,arguments)},spin:function(){return this._applyModification(T,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(j,arguments)},complement:function(){return this._applyCombination(A,arguments)},monochromatic:function(){return this._applyCombination(L,arguments)},splitcomplement:function(){return this._applyCombination(R,arguments)},triad:function(){return this._applyCombination(P,arguments)},tetrad:function(){return this._applyCombination(M,arguments)}},f.fromRatio=function(e,t){if("object"==typeof e){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]="a"===r?e[r]:z(e[r]));e=n}return f(e,t)},f.equals=function(e,t){return!(!e||!t)&&f(e).toRgbString()==f(t).toRgbString()},f.random=function(){return f.fromRatio({r:h(),g:h(),b:h()})},f.mix=function(e,t,n){n=0===n?0:n||50;var r=f(e).toRgb(),i=f(t).toRgb(),o=n/100,a={r:(i.r-r.r)*o+r.r,g:(i.g-r.g)*o+r.g,b:(i.b-r.b)*o+r.b,a:(i.a-r.a)*o+r.a};return f(a)},f.readability=function(e,t){var n=f(e),r=f(t);return(i.max(n.getLuminance(),r.getLuminance())+.05)/(i.min(n.getLuminance(),r.getLuminance())+.05)},f.isReadable=function(e,t,n){var r,i,o=f.readability(e,t);switch(i=!1,r=Q(n),r.level+r.size){case"AAsmall":case"AAAlarge":i=o>=4.5;break;case"AAlarge":i=o>=3;break;case"AAAsmall":i=o>=7;break}return i},f.mostReadable=function(e,t,n){var r,i,o,a,s=null,l=0;n=n||{},i=n.includeFallbackColors,o=n.level,a=n.size;for(var c=0;cl&&(l=r,s=f(t[c]));return f.isReadable(e,s,{level:o,size:a})||!i?s:(n.includeFallbackColors=!1,f.mostReadable(e,["#fff","#000"],n))};var D=f.names={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"0ff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000",blanchedalmond:"ffebcd",blue:"00f",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",burntsienna:"ea7e5d",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"0ff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkgrey:"a9a9a9",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkslategrey:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dimgrey:"696969",dodgerblue:"1e90ff",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"f0f",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",grey:"808080",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgray:"d3d3d3",lightgreen:"90ee90",lightgrey:"d3d3d3",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslategray:"789",lightslategrey:"789",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"0f0",limegreen:"32cd32",linen:"faf0e6",magenta:"f0f",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370db",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"db7093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"f00",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",slategrey:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",wheat:"f5deb3",white:"fff",whitesmoke:"f5f5f5",yellow:"ff0",yellowgreen:"9acd32"},N=f.hexNames=I(D);function I(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function $(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function F(e,t){W(e)&&(e="100%");var n=H(e);return e=c(t,u(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),i.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function B(e){return c(1,u(0,e))}function V(e){return parseInt(e,16)}function W(e){return"string"==typeof e&&-1!=e.indexOf(".")&&1===parseFloat(e)}function H(e){return"string"===typeof e&&-1!=e.indexOf("%")}function U(e){return 1==e.length?"0"+e:""+e}function z(e){return e<=1&&(e=100*e+"%"),e}function q(e){return i.round(255*parseFloat(e)).toString(16)}function K(e){return V(e)/255}var G=function(){var e="[-\\+]?\\d+%?",t="[-\\+]?\\d*\\.\\d+%?",n="(?:"+t+")|(?:"+e+")",r="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?",i="[\\s|\\(]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")[,|\\s]+("+n+")\\s*\\)?";return{CSS_UNIT:new RegExp(n),rgb:new RegExp("rgb"+r),rgba:new RegExp("rgba"+i),hsl:new RegExp("hsl"+r),hsla:new RegExp("hsla"+i),hsv:new RegExp("hsv"+r),hsva:new RegExp("hsva"+i),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}}();function Y(e){return!!G.CSS_UNIT.exec(e)}function X(e){e=e.replace(o,"").replace(a,"").toLowerCase();var t,n=!1;if(D[e])e=D[e],n=!0;else if("transparent"==e)return{r:0,g:0,b:0,a:0,format:"name"};return(t=G.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=G.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=G.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=G.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=G.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=G.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=G.hex8.exec(e))?{r:V(t[1]),g:V(t[2]),b:V(t[3]),a:K(t[4]),format:n?"name":"hex8"}:(t=G.hex6.exec(e))?{r:V(t[1]),g:V(t[2]),b:V(t[3]),format:n?"name":"hex"}:(t=G.hex4.exec(e))?{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),a:K(t[4]+""+t[4]),format:n?"name":"hex8"}:!!(t=G.hex3.exec(e))&&{r:V(t[1]+""+t[1]),g:V(t[2]+""+t[2]),b:V(t[3]+""+t[3]),format:n?"name":"hex"}}function Q(e){var t,n;return e=e||{level:"AA",size:"small"},t=(e.level||"AA").toUpperCase(),n=(e.size||"small").toLowerCase(),"AA"!==t&&"AAA"!==t&&(t="AA"),"small"!==n&&"large"!==n&&(n="small"),{level:t,size:n}}e.exports?e.exports=f:(r=function(){return f}.call(t,n,t,e),void 0===r||(e.exports=r))})(Math)},Zxgi:function(e,t,n){var r=n("5T2Y"),i=n("WEpk"),o=n("uOPS"),a=n("zLkG"),s=n("2faE").f;e.exports=function(e){var t=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},Zy53:function(e,t,n){"use strict";t=e.exports=n("oOsv")["default"],t["default"]=t},a0xu:function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},a3WO:function(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);n1&&r&&r.length>1){var o=d(r)/d(i);!isFinite(o)&&(o=1),t.pinchScale=o;var a=p(r);return t.pinchX=a[0],t.pinchY=a[1],{type:"pinch",target:e[0].target,event:t}}}}},g=n("mFDi"),v="silent";function y(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:b}}function b(){h["f"](this.event)}var w=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handler=null,t}return Object(o["a"])(t,e),t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t}(u["a"]),x=function(){function e(e,t){this.x=e,this.y=t}return e}(),_=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],E=new g["a"](0,0,0,0),S=function(e){function t(t,n,r,i,o){var a=e.call(this)||this;return a._hovered=new x(0,0),a.storage=t,a.painter=n,a.painterRoot=i,a._pointerSize=o,r=r||new w,a.proxy=null,a.setHandlerProxy(r),a._draggingMgr=new c(a),a}return Object(o["a"])(t,e),t.prototype.setHandlerProxy=function(e){this.proxy&&this.proxy.dispose(),e&&(i["j"](_,function(t){e.on&&e.on(t,this[t],this)},this),e.handler=this),this.proxy=e},t.prototype.mousemove=function(e){var t=e.zrX,n=e.zrY,r=O(this,t,n),i=this._hovered,o=i.target;o&&!o.__zr&&(i=this.findHover(i.x,i.y),o=i.target);var a=this._hovered=r?new x(t,n):this.findHover(t,n),s=a.target,l=this.proxy;l.setCursor&&l.setCursor(s?s.cursor:"default"),o&&s!==o&&this.dispatchToElement(i,"mouseout",e),this.dispatchToElement(a,"mousemove",e),s&&s!==o&&this.dispatchToElement(a,"mouseover",e)},t.prototype.mouseout=function(e){var t=e.zrEventControl;"only_globalout"!==t&&this.dispatchToElement(this._hovered,"mouseout",e),"no_globalout"!==t&&this.trigger("globalout",{type:"globalout",event:e})},t.prototype.resize=function(){this._hovered=new x(0,0)},t.prototype.dispatch=function(e,t){var n=this[e];n&&n.call(this,t)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(e){var t=this.proxy;t.setCursor&&t.setCursor(e)},t.prototype.dispatchToElement=function(e,t,n){e=e||{};var r=e.target;if(!r||!r.silent){var i="on"+t,o=y(t,e,n);while(r)if(r[i]&&(o.cancelBubble=!!r[i].call(r,o)),r.trigger(t,o),r=r.__hostTarget?r.__hostTarget:r.parent,o.cancelBubble)break;o.cancelBubble||(this.trigger(t,o),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(e){"function"===typeof e[i]&&e[i].call(e,o),e.trigger&&e.trigger(t,o)}))}},t.prototype.findHover=function(e,t,n){var r=this.storage.getDisplayList(),i=new x(e,t);if(k(r,i,e,t,n),this._pointerSize&&!i.target){for(var o=[],a=this._pointerSize,s=a/2,l=new g["a"](e-s,t-s,a,a),c=r.length-1;c>=0;c--){var u=r[c];u===n||u.ignore||u.ignoreCoarsePointer||u.parent&&u.parent.ignoreCoarsePointer||(E.copy(u.getBoundingRect()),u.transform&&E.applyTransform(u.transform),E.intersect(l)&&o.push(u))}if(o.length)for(var h=4,f=Math.PI/12,d=2*Math.PI,p=0;p=0;o--){var a=e[o],s=void 0;if(a!==i&&!a.ignore&&(s=C(a,n,r))&&(!t.topTarget&&(t.topTarget=a),s!==v)){t.target=a;break}}}function O(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}i["j"](["click","mousedown","mouseup","mousewheel","dblclick","contextmenu"],function(e){S.prototype[e]=function(t){var n,r,i=t.zrX,o=t.zrY,s=O(this,i,o);if("mouseup"===e&&s||(n=this.findHover(i,o),r=n.target),"mousedown"===e)this._downEl=r,this._downPoint=[t.zrX,t.zrY],this._upEl=r;else if("mouseup"===e)this._upEl=r;else if("click"===e){if(this._downEl!==this._upEl||!this._downPoint||a["e"](this._downPoint,[t.zrX,t.zrY])>4)return;this._downPoint=null}this.dispatchToElement(n,e,t)}});var T=S,A=n("BPZU"),P=n("S8SX"),M=!1;function R(){M||(M=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function j(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var L,D=function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=j}return e.prototype.traverse=function(e,t){for(var n=0;n0&&(c.__clipPaths=[]),isNaN(c.z)&&(R(),c.z=0),isNaN(c.z2)&&(R(),c.z2=0),isNaN(c.zlevel)&&(R(),c.zlevel=0),this._displayList[this._displayListLen++]=c}var u=e.getDecalElement&&e.getDecalElement();u&&this._updateAndAddDisplayable(u,t,n);var h=e.getTextGuideLine();h&&this._updateAndAddDisplayable(h,t,n);var f=e.getTextContent();f&&this._updateAndAddDisplayable(f,t,n)}},e.prototype.addRoot=function(e){e.__zr&&e.__zr.storage===this||this._roots.push(e)},e.prototype.delRoot=function(e){if(e instanceof Array)for(var t=0,n=e.length;t=0&&this._roots.splice(r,1)}},e.prototype.delAllRoots=function(){this._roots=[],this._displayList=[],this._displayListLen=0},e.prototype.getRoots=function(){return this._roots},e.prototype.dispose=function(){this._displayList=null,this._roots=null},e}(),N=D;L=r["a"].hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var I=L,$=n("Bq2U");function F(){return(new Date).getTime()}var B=function(e){function t(t){var n=e.call(this)||this;return n._running=!1,n._time=0,n._pausedTime=0,n._pauseStart=0,n._paused=!1,t=t||{},n.stage=t.stage||{},n}return Object(o["a"])(t,e),t.prototype.addClip=function(e){e.animation&&this.removeClip(e),this._head?(this._tail.next=e,e.prev=this._tail,e.next=null,this._tail=e):this._head=this._tail=e,e.animation=this},t.prototype.addAnimator=function(e){e.animation=this;var t=e.getClip();t&&this.addClip(t)},t.prototype.removeClip=function(e){if(e.animation){var t=e.prev,n=e.next;t?t.next=n:this._head=n,n?n.prev=t:this._tail=t,e.next=e.prev=e.animation=null}},t.prototype.removeAnimator=function(e){var t=e.getClip();t&&this.removeClip(t),e.animation=null},t.prototype.update=function(e){var t=F()-this._pausedTime,n=t-this._time,r=this._head;while(r){var i=r.next,o=r.step(t,n);o?(r.ondestroy(),this.removeClip(r),r=i):r=i}this._time=t,e||(this.trigger("frame",n),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var e=this;function t(){e._running&&(I(t),!e._paused&&e.update())}this._running=!0,I(t)},t.prototype.start=function(){this._running||(this._time=F(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=F(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=F()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){var e=this._head;while(e){var t=e.next;e.prev=e.next=e.animation=null,e=t}this._head=this._tail=null},t.prototype.isFinished=function(){return null==this._head},t.prototype.animate=function(e,t){t=t||{},this.start();var n=new $["b"](e,t.loop);return this.addAnimator(n),n},t}(u["a"]),V=B,W=300,H=r["a"].domSupported,U=function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=i["D"](e,function(e){var t=e.replace("mouse","pointer");return n.hasOwnProperty(t)?t:e});return{mouse:e,touch:t,pointer:r}}(),z={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},q=!1;function K(e){var t=e.pointerType;return"pen"===t||"touch"===t}function G(e){e.touching=!0,null!=e.touchTimer&&(clearTimeout(e.touchTimer),e.touchTimer=null),e.touchTimer=setTimeout(function(){e.touching=!1,e.touchTimer=null},700)}function Y(e){e&&(e.zrByTouch=!0)}function X(e,t){return Object(h["d"])(e.dom,new Z(e,t),!0)}function Q(e,t){var n=t,r=!1;while(n&&9!==n.nodeType&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot))n=n.parentNode;return r}var Z=function(){function e(e,t){this.stopPropagation=i["G"],this.stopImmediatePropagation=i["G"],this.preventDefault=i["G"],this.type=t.type,this.target=this.currentTarget=e.dom,this.pointerType=t.pointerType,this.clientX=t.clientX,this.clientY=t.clientY}return e}(),J={mousedown:function(e){e=Object(h["d"])(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Object(h["d"])(this.dom,e);var t=this.__mayPointerCapture;!t||e.zrX===t[0]&&e.zrY===t[1]||this.__togglePointerCapture(!0),this.trigger("mousemove",e)},mouseup:function(e){e=Object(h["d"])(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Object(h["d"])(this.dom,e);var t=e.toElement||e.relatedTarget;Q(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){q=!0,e=Object(h["d"])(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){q||(e=Object(h["d"])(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Object(h["d"])(this.dom,e),Y(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),J.mousemove.call(this,e),J.mousedown.call(this,e)},touchmove:function(e){e=Object(h["d"])(this.dom,e),Y(e),this.handler.processGesture(e,"change"),J.mousemove.call(this,e)},touchend:function(e){e=Object(h["d"])(this.dom,e),Y(e),this.handler.processGesture(e,"end"),J.mouseup.call(this,e),+new Date-+this.__lastTouchMoment0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(e){this._sleepAfterStill=e},e.prototype.wakeUp=function(){this.animation.start(),this._stillFrameAccum=0},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._needsRefreshHover=!1,this.painter.refreshHover&&"canvas"===this.painter.getType()&&this.painter.refreshHover()},e.prototype.resize=function(e){e=e||{},this.painter.resize(e.width,e.height),this.handler.resize()},e.prototype.clearAnimation=function(){this.animation.clear()},e.prototype.getWidth=function(){return this.painter.getWidth()},e.prototype.getHeight=function(){return this.painter.getHeight()},e.prototype.setCursorStyle=function(e){this.handler.setCursorStyle(e)},e.prototype.findHover=function(e,t){return this.handler.findHover(e,t)},e.prototype.on=function(e,t,n){return this.handler.on(e,t,n),this},e.prototype.off=function(e,t){this.handler.off(e,t)},e.prototype.trigger=function(e,t){this.handler.trigger(e,t)},e.prototype.clear=function(){for(var e=this.storage.getRoots(),t=0;t1&&void 0!==arguments[1]?arguments[1]:{},r=e.props;"value"in r||e.setState({value:t}),("keyboard"===n.source||"dateInputSelect"===n.source||!r.calendar.props.timePicker&&"dateInput"!==n.source||"todayButton"===n.source)&&e.close(e.focus),r.onChange(t)},this.onKeyDown=function(t){e.state.open||t.keyCode!==v["a"].DOWN&&t.keyCode!==v["a"].ENTER||(e.open(),t.preventDefault())},this.onCalendarOk=function(){e.close(e.focus)},this.onCalendarClear=function(){e.close(e.focus)},this.onCalendarBlur=function(){e.setOpen(!1)},this.onVisibleChange=function(t){e.setOpen(t)},this.getCalendarElement=function(){var t=e.props,n=e.state,r=t.calendar.props,i=n.value,o=i,a={ref:e.saveCalendarRef,defaultValue:o||r.defaultValue,selectedValue:i,onKeyDown:e.onCalendarKeyDown,onOk:Object(g["a"])(r.onOk,e.onCalendarOk),onSelect:Object(g["a"])(r.onSelect,e.onCalendarSelect),onClear:Object(g["a"])(r.onClear,e.onCalendarClear),onBlur:Object(g["a"])(r.onBlur,e.onCalendarBlur)};return u.a.cloneElement(t.calendar,a)},this.setOpen=function(t,n){var r=e.props.onOpenChange;e.state.open!==t&&("open"in e.props||e.setState({open:t},n),r(t))},this.open=function(t){e.setOpen(!0,t)},this.close=function(t){e.setOpen(!1,t)},this.focus=function(){e.state.open||f.a.findDOMNode(e).focus()},this.focusCalendar=function(){e.state.open&&e.calendarInstance&&e.calendarInstance.focus()}};Object(m["polyfill"])(C);t["a"]=C},"ar/p":function(e,t,n){var r=n("5vMV"),i=n("FpHa").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},b5re:function(e,t,n){e.exports=n("VyuQ")("native-function-to-string",Function.toString)},b9EY:function(e,t){e.exports=/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/},b9Ot:function(e,t,n){"use strict";var r=function(){function e(e){e&&(this._$eventProcessor=e)}return e.prototype.on=function(e,t,n,r){this._$handlers||(this._$handlers={});var i=this._$handlers;if("function"===typeof t&&(r=n,n=t,t=null),!n||!e)return this;var o=this._$eventProcessor;null!=t&&o&&o.normalizeQuery&&(t=o.normalizeQuery(t)),i[e]||(i[e]=[]);for(var a=0;a=0?parseFloat((o.match(/(?:MSIE |Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]):parseFloat((o.match(/(?:Trident\/[0-9]+[\.0-9]+;.*rv:)([0-9]+[\.0-9]+)/)||[])[1]),t.isOldIE=t.isIE&&t.isIE<9,t.isGecko=t.isMozilla=o.match(/ Gecko\/\d+/),t.isOpera="object"==typeof opera&&"[object Opera]"==Object.prototype.toString.call(window.opera),t.isWebKit=parseFloat(o.split("WebKit/")[1])||void 0,t.isChrome=parseFloat(o.split(" Chrome/")[1])||void 0,t.isEdge=parseFloat(o.split(" Edge/")[1])||void 0,t.isAIR=o.indexOf("AdobeAIR")>=0,t.isAndroid=o.indexOf("Android")>=0,t.isChromeOS=o.indexOf(" CrOS ")>=0,t.isIOS=/iPad|iPhone|iPod/.test(o)&&!window.MSStream,t.isIOS&&(t.isMac=!0),t.isMobile=t.isIOS||t.isAndroid}),ace.define("ace/lib/dom",["require","exports","module","ace/lib/useragent"],function(e,t,n){"use strict";var r,i=e("./useragent"),o="http://www.w3.org/1999/xhtml";t.buildDom=function e(t,n,r){if("string"==typeof t&&t){var i=document.createTextNode(t);return n&&n.appendChild(i),i}if(!Array.isArray(t))return t&&t.appendChild&&n&&n.appendChild(t),t;if("string"!=typeof t[0]||!t[0]){for(var o=[],a=0;a=1.5,i.isChromeOS&&(t.HI_DPI=!1),"undefined"!==typeof document){var c=document.createElement("div");t.HI_DPI&&void 0!==c.style.transform&&(t.HAS_CSS_TRANSFORMS=!0),i.isEdge||"undefined"===typeof c.style.animationName||(t.HAS_CSS_ANIMATION=!0),c=null}t.HAS_CSS_TRANSFORMS?t.translate=function(e,t,n){e.style.transform="translate("+Math.round(t)+"px, "+Math.round(n)+"px)"}:t.translate=function(e,t,n){e.style.top=Math.round(n)+"px",e.style.left=Math.round(t)+"px"}}),ace.define("ace/lib/oop",["require","exports","module"],function(e,t,n){"use strict";t.inherits=function(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})},t.mixin=function(e,t){for(var n in t)e[n]=t[n];return e},t.implement=function(e,n){t.mixin(e,n)}}),ace.define("ace/lib/keys",["require","exports","module","ace/lib/oop"],function(e,t,n){"use strict";var r=e("./oop"),i=function(){var e,t,n={MODIFIER_KEYS:{16:"Shift",17:"Ctrl",18:"Alt",224:"Meta",91:"MetaLeft",92:"MetaRight",93:"ContextMenu"},KEY_MODS:{ctrl:1,alt:2,option:2,shift:4,super:8,meta:8,command:8,cmd:8,control:1},FUNCTION_KEYS:{8:"Backspace",9:"Tab",13:"Return",19:"Pause",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"Print",45:"Insert",46:"Delete",96:"Numpad0",97:"Numpad1",98:"Numpad2",99:"Numpad3",100:"Numpad4",101:"Numpad5",102:"Numpad6",103:"Numpad7",104:"Numpad8",105:"Numpad9","-13":"NumpadEnter",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"Numlock",145:"Scrolllock"},PRINTABLE_KEYS:{32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",61:"=",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",107:"+",109:"-",110:".",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",111:"/",106:"*"}};for(t in n.FUNCTION_KEYS)e=n.FUNCTION_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);for(t in n.PRINTABLE_KEYS)e=n.PRINTABLE_KEYS[t].toLowerCase(),n[e]=parseInt(t,10);return r.mixin(n,n.MODIFIER_KEYS),r.mixin(n,n.PRINTABLE_KEYS),r.mixin(n,n.FUNCTION_KEYS),n.enter=n["return"],n.escape=n.esc,n.del=n["delete"],n[173]="-",function(){for(var e=["cmd","ctrl","alt","shift"],t=Math.pow(2,e.length);t--;)n.KEY_MODS[t]=e.filter(function(e){return t&n.KEY_MODS[e]}).join("-")+"-"}(),n.KEY_MODS[0]="",n.KEY_MODS[-1]="input-",n}();r.mixin(t,i),t.keyCodeToString=function(e){var t=i[e];return"string"!=typeof t&&(t=String.fromCharCode(e)),t.toLowerCase()}}),ace.define("ace/lib/event",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var r,i=e("./keys"),o=e("./useragent"),a=null,s=0;function l(){r=!1;try{document.createComment("").addEventListener("test",function(){},{get passive(){r={passive:!1}}})}catch(e){}}function c(){return void 0==r&&l(),r}function u(e,t,n){this.elem=e,this.type=t,this.callback=n}u.prototype.destroy=function(){f(this.elem,this.type,this.callback),this.elem=this.type=this.callback=void 0};var h=t.addListener=function(e,t,n,r){e.addEventListener(t,n,c()),r&&r.$toDestroy.push(new u(e,t,n))},f=t.removeListener=function(e,t,n){e.removeEventListener(t,n,c())};t.stopEvent=function(e){return t.stopPropagation(e),t.preventDefault(e),!1},t.stopPropagation=function(e){e.stopPropagation&&e.stopPropagation()},t.preventDefault=function(e){e.preventDefault&&e.preventDefault()},t.getButton=function(e){return"dblclick"==e.type?0:"contextmenu"==e.type||o.isMac&&e.ctrlKey&&!e.altKey&&!e.shiftKey?2:e.button},t.capture=function(e,t,n){var r=e&&e.ownerDocument||document;function i(e){t&&t(e),n&&n(e),f(r,"mousemove",t),f(r,"mouseup",i),f(r,"dragstart",i)}return h(r,"mousemove",t),h(r,"mouseup",i),h(r,"dragstart",i),i},t.addMouseWheelListener=function(e,t,n){"onmousewheel"in e?h(e,"mousewheel",function(e){var n=8;void 0!==e.wheelDeltaX?(e.wheelX=-e.wheelDeltaX/n,e.wheelY=-e.wheelDeltaY/n):(e.wheelX=0,e.wheelY=-e.wheelDelta/n),t(e)},n):"onwheel"in e?h(e,"wheel",function(e){var n=.35;switch(e.deltaMode){case e.DOM_DELTA_PIXEL:e.wheelX=e.deltaX*n||0,e.wheelY=e.deltaY*n||0;break;case e.DOM_DELTA_LINE:case e.DOM_DELTA_PAGE:e.wheelX=5*(e.deltaX||0),e.wheelY=5*(e.deltaY||0);break}t(e)},n):h(e,"DOMMouseScroll",function(e){e.axis&&e.axis==e.HORIZONTAL_AXIS?(e.wheelX=5*(e.detail||0),e.wheelY=0):(e.wheelX=0,e.wheelY=5*(e.detail||0)),t(e)},n)},t.addMultiMouseDownListener=function(e,n,r,i,a){var s,l,c,u=0,f={2:"dblclick",3:"tripleclick",4:"quadclick"};function d(e){if(0!==t.getButton(e)?u=0:e.detail>1?(u++,u>4&&(u=1)):u=1,o.isIE){var a=Math.abs(e.clientX-s)>5||Math.abs(e.clientY-l)>5;c&&!a||(u=1),c&&clearTimeout(c),c=setTimeout(function(){c=null},n[u-1]||600),1==u&&(s=e.clientX,l=e.clientY)}if(e._clicks=u,r[i]("mousedown",e),u>4)u=0;else if(u>1)return r[i](f[u],e)}Array.isArray(e)||(e=[e]),e.forEach(function(e){h(e,"mousedown",d,a)})};var d=function(e){return 0|(e.ctrlKey?1:0)|(e.altKey?2:0)|(e.shiftKey?4:0)|(e.metaKey?8:0)};function p(e,t,n){var r=d(t);if(!o.isMac&&a){if(t.getModifierState&&(t.getModifierState("OS")||t.getModifierState("Win"))&&(r|=8),a.altGr){if(3==(3&r))return;a.altGr=0}if(18===n||17===n){var l="location"in t?t.location:t.keyLocation;if(17===n&&1===l)1==a[n]&&(s=t.timeStamp);else if(18===n&&3===r&&2===l){var c=t.timeStamp-s;c<50&&(a.altGr=!0)}}}if(n in i.MODIFIER_KEYS&&(n=-1),!r&&13===n){l="location"in t?t.location:t.keyLocation;if(3===l&&(e(t,r,-n),t.defaultPrevented))return}if(o.isChromeOS&&8&r){if(e(t,r,n),t.defaultPrevented)return;r&=-9}return!!(r||n in i.FUNCTION_KEYS||n in i.PRINTABLE_KEYS)&&e(t,r,n)}function m(){a=Object.create(null)}if(t.getModifierString=function(e){return i.KEY_MODS[d(e)]},t.addCommandKeyListener=function(e,n,r){if(o.isOldGecko||o.isOpera&&!("KeyboardEvent"in window)){var i=null;h(e,"keydown",function(e){i=e.keyCode},r),h(e,"keypress",function(e){return p(n,e,i)},r)}else{var s=null;h(e,"keydown",function(e){a[e.keyCode]=(a[e.keyCode]||0)+1;var t=p(n,e,e.keyCode);return s=e.defaultPrevented,t},r),h(e,"keypress",function(e){s&&(e.ctrlKey||e.altKey||e.shiftKey||e.metaKey)&&(t.stopEvent(e),s=null)},r),h(e,"keyup",function(e){a[e.keyCode]=null},r),a||(m(),h(window,"focus",m))}},"object"==typeof window&&window.postMessage&&!o.isOldIE){var g=1;t.nextTick=function(e,n){n=n||window;var r="zero-timeout-message-"+g++,i=function(o){o.data==r&&(t.stopPropagation(o),f(n,"message",i),e())};h(n,"message",i),n.postMessage(r,"*")}}t.$idleBlocked=!1,t.onIdle=function(e,n){return setTimeout(function n(){t.$idleBlocked?setTimeout(n,100):e()},n)},t.$idleBlockId=null,t.blockIdle=function(e){t.$idleBlockId&&clearTimeout(t.$idleBlockId),t.$idleBlocked=!0,t.$idleBlockId=setTimeout(function(){t.$idleBlocked=!1},e||100)},t.nextFrame="object"==typeof window&&(window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||window.msRequestAnimationFrame||window.oRequestAnimationFrame),t.nextFrame?t.nextFrame=t.nextFrame.bind(window):t.nextFrame=function(e){setTimeout(e,17)}}),ace.define("ace/range",["require","exports","module"],function(e,t,n){"use strict";var r=function(e,t){return e.row-t.row||e.column-t.column},i=function(e,t,n,r){this.start={row:e,column:t},this.end={row:n,column:r}};(function(){this.isEqual=function(e){return this.start.row===e.start.row&&this.end.row===e.end.row&&this.start.column===e.start.column&&this.end.column===e.end.column},this.toString=function(){return"Range: ["+this.start.row+"/"+this.start.column+"] -> ["+this.end.row+"/"+this.end.column+"]"},this.contains=function(e,t){return 0==this.compare(e,t)},this.compareRange=function(e){var t,n=e.end,r=e.start;return t=this.compare(n.row,n.column),1==t?(t=this.compare(r.row,r.column),1==t?2:0==t?1:0):-1==t?-2:(t=this.compare(r.row,r.column),-1==t?-1:1==t?42:0)},this.comparePoint=function(e){return this.compare(e.row,e.column)},this.containsRange=function(e){return 0==this.comparePoint(e.start)&&0==this.comparePoint(e.end)},this.intersects=function(e){var t=this.compareRange(e);return-1==t||0==t||1==t},this.isEnd=function(e,t){return this.end.row==e&&this.end.column==t},this.isStart=function(e,t){return this.start.row==e&&this.start.column==t},this.setStart=function(e,t){"object"==typeof e?(this.start.column=e.column,this.start.row=e.row):(this.start.row=e,this.start.column=t)},this.setEnd=function(e,t){"object"==typeof e?(this.end.column=e.column,this.end.row=e.row):(this.end.row=e,this.end.column=t)},this.inside=function(e,t){return 0==this.compare(e,t)&&(!this.isEnd(e,t)&&!this.isStart(e,t))},this.insideStart=function(e,t){return 0==this.compare(e,t)&&!this.isEnd(e,t)},this.insideEnd=function(e,t){return 0==this.compare(e,t)&&!this.isStart(e,t)},this.compare=function(e,t){return this.isMultiLine()||e!==this.start.row?ethis.end.row?1:this.start.row===e?t>=this.start.column?0:-1:this.end.row===e?t<=this.end.column?0:1:0:tthis.end.column?1:0},this.compareStart=function(e,t){return this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.compareEnd=function(e,t){return this.end.row==e&&this.end.column==t?1:this.compare(e,t)},this.compareInside=function(e,t){return this.end.row==e&&this.end.column==t?1:this.start.row==e&&this.start.column==t?-1:this.compare(e,t)},this.clipRows=function(e,t){if(this.end.row>t)var n={row:t+1,column:0};else if(this.end.rowt)var r={row:t+1,column:0};else if(this.start.row0)1&t&&(n+=e),(t>>=1)&&(e+=e);return n};var r=/^\s\s*/,i=/\s\s*$/;t.stringTrimLeft=function(e){return e.replace(r,"")},t.stringTrimRight=function(e){return e.replace(i,"")},t.copyObject=function(e){var t={};for(var n in e)t[n]=e[n];return t},t.copyArray=function(e){for(var t=[],n=0,r=e.length;nDate.now()-50)||(r=!1)},cancel:function(){r=Date.now()}}}),ace.define("ace/keyboard/textinput",["require","exports","module","ace/lib/event","ace/lib/useragent","ace/lib/dom","ace/lib/lang","ace/clipboard","ace/lib/keys"],function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=e("../lib/dom"),a=e("../lib/lang"),s=e("../clipboard"),l=i.isChrome<18,c=i.isIE,u=i.isChrome>63,h=400,f=e("../lib/keys"),d=f.KEY_MODS,p=i.isIOS,m=p?/\s/:/\n/,g=i.isMobile,v=function(e,t){var n=o.createElement("textarea");n.className="ace_text-input",n.setAttribute("wrap","off"),n.setAttribute("autocorrect","off"),n.setAttribute("autocapitalize","off"),n.setAttribute("spellcheck",!1),n.style.opacity="0",e.insertBefore(n,e.firstChild);var v=!1,y=!1,b=!1,w=!1,x="";g||(n.style.fontSize="1px");var _=!1,E=!1,S="",C=0,k=0,O=0;try{var T=document.activeElement===n}catch(e){}r.addListener(n,"blur",function(e){E||(t.onBlur(e),T=!1)},t),r.addListener(n,"focus",function(e){if(!E){if(T=!0,i.isEdge)try{if(!document.hasFocus())return}catch(e){}t.onFocus(e),i.isEdge?setTimeout(A):A()}},t),this.$focusScroll=!1,this.focus=function(){if(x||u||"browser"==this.$focusScroll)return n.focus({preventScroll:!0});var e=n.style.top;n.style.position="fixed",n.style.top="0px";try{var t=0!=n.getBoundingClientRect().top}catch(e){return}var r=[];if(t){var i=n.parentElement;while(i&&1==i.nodeType)r.push(i),i.setAttribute("ace_nocontext",!0),i=!i.parentElement&&i.getRootNode?i.getRootNode().host:i.parentElement}n.focus({preventScroll:!0}),t&&r.forEach(function(e){e.removeAttribute("ace_nocontext")}),setTimeout(function(){n.style.position="","0px"==n.style.top&&(n.style.top=e)},0)},this.blur=function(){n.blur()},this.isFocused=function(){return T},t.on("beforeEndOperation",function(){var e=t.curOp,r=e&&e.command&&e.command.name;if("insertstring"!=r){var i=r&&(e.docChanged||e.selectionChanged);b&&i&&(S=n.value="",H()),A()}});var A=p?function(e){if(T&&(!v||e)&&!w){e||(e="");var r="\n ab"+e+"cde fg\n";r!=n.value&&(n.value=S=r);var i=4,o=4+(e.length||(t.selection.isEmpty()?0:1));C==i&&k==o||n.setSelectionRange(i,o),C=i,k=o}}:function(){if(!b&&!w&&(T||j)){b=!0;var e=0,r=0,i="";if(t.session){var o=t.selection,a=o.getRange(),s=o.cursor.row;if(e=a.start.column,r=a.end.column,i=t.session.getLine(s),a.start.row!=s){var l=t.session.getLine(s-1);e=a.start.rows+1?c.length:r,r+=i.length+1,i=i+"\n"+c}else g&&s>0&&(i="\n"+i,r+=1,e+=1);i.length>h&&(e=S.length&&e.value===S&&S&&e.selectionEnd!==k},M=function(e){b||(v?v=!1:P(n)?(t.selectAll(),A()):g&&n.selectionStart!=C&&A())},R=null;this.setInputHandler=function(e){R=e},this.getInputHandler=function(){return R};var j=!1,L=function(e,r){if(j&&(j=!1),y)return A(),e&&t.onPaste(e),y=!1,"";var o=n.selectionStart,a=n.selectionEnd,s=C,l=S.length-k,c=e,u=e.length-o,h=e.length-a,f=0;while(s>0&&S[f]==e[f])f++,s--;c=c.slice(f),f=1;while(l>0&&S.length-f>C-1&&S[S.length-f]==e[e.length-f])f++,l--;u-=f-1,h-=f-1;var d=c.length-f+1;if(d<0&&(s=-d,d=0),c=c.slice(0,d),!r&&!c&&!u&&!s&&!l&&!h)return"";w=!0;var p=!1;return i.isAndroid&&". "==c&&(c=" ",p=!0),c&&!s&&!l&&!u&&!h||_?t.onTextInput(c):t.onTextInput(c,{extendLeft:s,extendRight:l,restoreStart:u,restoreEnd:h}),w=!1,S=e,C=o,k=a,O=h,p?"\n":c},D=function(e){if(b)return W();if(e&&e.inputType){if("historyUndo"==e.inputType)return t.execCommand("undo");if("historyRedo"==e.inputType)return t.execCommand("redo")}var r=n.value,i=L(r,!0);(r.length>h+100||m.test(i)||g&&C<1&&C==k)&&A()},N=function(e,t,n){var r=e.clipboardData||window.clipboardData;if(r&&!l){var i=c||n?"Text":"text/plain";try{return t?!1!==r.setData(i,t):r.getData(i)}catch(e){if(!n)return N(e,t,!0)}}},I=function(e,i){var o=t.getCopyText();if(!o)return r.preventDefault(e);N(e,o)?(p&&(A(o),v=o,setTimeout(function(){v=!1},10)),i?t.onCut():t.onCopy(),r.preventDefault(e)):(v=!0,n.value=o,n.select(),setTimeout(function(){v=!1,A(),i?t.onCut():t.onCopy()}))},$=function(e){I(e,!0)},F=function(e){I(e,!1)},B=function(e){var o=N(e);s.pasteCancelled()||("string"==typeof o?(o&&t.onPaste(o,e),i.isIE&&setTimeout(A),r.preventDefault(e)):(n.value="",y=!0))};r.addCommandKeyListener(n,t.onCommandKey.bind(t),t),r.addListener(n,"select",M,t),r.addListener(n,"input",D,t),r.addListener(n,"cut",$,t),r.addListener(n,"copy",F,t),r.addListener(n,"paste",B,t),"oncut"in n&&"oncopy"in n&&"onpaste"in n||r.addListener(e,"keydown",function(e){if((!i.isMac||e.metaKey)&&e.ctrlKey)switch(e.keyCode){case 67:F(e);break;case 86:B(e);break;case 88:$(e);break}},t);var V=function(e){if(!b&&t.onCompositionStart&&!t.$readOnly&&(b={},!_)){e.data&&(b.useTextareaForIME=!1),setTimeout(W,0),t._signal("compositionStart"),t.on("mousedown",U);var r=t.getSelectionRange();r.end.row=r.start.row,r.end.column=r.start.column,b.markerRange=r,b.selectionStart=C,t.onCompositionStart(b),b.useTextareaForIME?(S=n.value="",C=0,k=0):(n.msGetInputContext&&(b.context=n.msGetInputContext()),n.getInputContext&&(b.context=n.getInputContext()))}},W=function(){if(b&&t.onCompositionUpdate&&!t.$readOnly){if(_)return U();if(b.useTextareaForIME)t.onCompositionUpdate(n.value);else{var e=n.value;L(e),b.markerRange&&(b.context&&(b.markerRange.start.column=b.selectionStart=b.context.compositionStartOffset),b.markerRange.end.column=b.markerRange.start.column+k-b.selectionStart+O)}}},H=function(e){t.onCompositionEnd&&!t.$readOnly&&(b=!1,t.onCompositionEnd(),t.off("mousedown",U),e&&D())};function U(){E=!0,n.blur(),n.focus(),E=!1}var z,q=a.delayedCall(W,50).schedule.bind(null,null);function K(e){27==e.keyCode&&n.value.lengthk&&"\n"==S[o]?a=f.end:rk&&S.slice(0,o).split("\n").length>2?a=f.down:o>k&&" "==S[o-1]?(a=f.right,s=d.option):(o>k||o==k&&k!=C&&r==o)&&(a=f.right),r!==o&&(s|=d.shift),a){var l=t.onCommandKey({},s,a);if(!l&&t.commands){a=f.keyCodeToString(a);var c=t.commands.findKeyCommand(s,a);c&&t.execCommand(c)}C=r,k=o,A("")}}};document.addEventListener("selectionchange",o),t.on("destroy",function(){document.removeEventListener("selectionchange",o)})}r.addListener(n,"mouseup",Y,t),r.addListener(n,"mousedown",function(e){e.preventDefault(),G()},t),r.addListener(t.renderer.scroller,"contextmenu",Y,t),r.addListener(n,"contextmenu",Y,t),p&&X(e,t,n)};t.TextInput=v,t.$setUserAgentForTests=function(e,t){g=e,p=t}}),ace.define("ace/mouse/default_handlers",["require","exports","module","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/useragent"),i=0,o=550;function a(e){e.$clickSelection=null;var t=e.editor;t.setDefaultHandler("mousedown",this.onMouseDown.bind(e)),t.setDefaultHandler("dblclick",this.onDoubleClick.bind(e)),t.setDefaultHandler("tripleclick",this.onTripleClick.bind(e)),t.setDefaultHandler("quadclick",this.onQuadClick.bind(e)),t.setDefaultHandler("mousewheel",this.onMouseWheel.bind(e));var n=["select","startSelect","selectEnd","selectAllEnd","selectByWordsEnd","selectByLinesEnd","dragWait","dragWaitEnd","focusWait"];n.forEach(function(t){e[t]=this[t]},this),e.selectByLines=this.extendSelectionBy.bind(e,"getLineRange"),e.selectByWords=this.extendSelectionBy.bind(e,"getWordRange")}function s(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}function l(e,t){if(e.start.row==e.end.row)var n=2*t.column-e.start.column-e.end.column;else if(e.start.row!=e.end.row-1||e.start.column||e.end.column)n=2*t.row-e.start.row-e.end.row;else var n=t.column-4;return n<0?{cursor:e.start,anchor:e.end}:{cursor:e.end,anchor:e.start}}(function(){this.onMouseDown=function(e){var t=e.inSelection(),n=e.getDocumentPosition();this.mousedownEvent=e;var i=this.editor,o=e.getButton();if(0!==o){var a=i.getSelectionRange(),s=a.isEmpty();return(s||1==o)&&i.selection.moveToPosition(n),void(2==o&&(i.textInput.onContextMenu(e.domEvent),r.isMozilla||e.preventDefault()))}return this.mousedownEvent.time=Date.now(),!t||i.isFocused()||(i.focus(),!this.$focusTimeout||this.$clickSelection||i.inMultiSelectMode)?(this.captureMouse(e),this.startSelect(n,e.domEvent._clicks>1),e.preventDefault()):(this.setState("focusWait"),void this.captureMouse(e))},this.startSelect=function(e,t){e=e||this.editor.renderer.screenToTextCoordinates(this.x,this.y);var n=this.editor;this.mousedownEvent&&(this.mousedownEvent.getShiftKey()?n.selection.selectToPosition(e):t||n.selection.moveToPosition(e),t||this.select(),n.renderer.scroller.setCapture&&n.renderer.scroller.setCapture(),n.setStyle("ace_selecting"),this.setState("select"))},this.select=function(){var e,t=this.editor,n=t.renderer.screenToTextCoordinates(this.x,this.y);if(this.$clickSelection){var r=this.$clickSelection.comparePoint(n);if(-1==r)e=this.$clickSelection.end;else if(1==r)e=this.$clickSelection.start;else{var i=l(this.$clickSelection,n);n=i.cursor,e=i.anchor}t.selection.setSelectionAnchor(e.row,e.column)}t.selection.selectToPosition(n),t.renderer.scrollCursorIntoView()},this.extendSelectionBy=function(e){var t,n=this.editor,r=n.renderer.screenToTextCoordinates(this.x,this.y),i=n.selection[e](r.row,r.column);if(this.$clickSelection){var o=this.$clickSelection.comparePoint(i.start),a=this.$clickSelection.comparePoint(i.end);if(-1==o&&a<=0)t=this.$clickSelection.end,i.end.row==r.row&&i.end.column==r.column||(r=i.start);else if(1==a&&o>=0)t=this.$clickSelection.start,i.start.row==r.row&&i.start.column==r.column||(r=i.end);else if(-1==o&&1==a)r=i.end,t=i.start;else{var s=l(this.$clickSelection,r);r=s.cursor,t=s.anchor}n.selection.setSelectionAnchor(t.row,t.column)}n.selection.selectToPosition(r),n.renderer.scrollCursorIntoView()},this.selectEnd=this.selectAllEnd=this.selectByWordsEnd=this.selectByLinesEnd=function(){this.$clickSelection=null,this.editor.unsetStyle("ace_selecting"),this.editor.renderer.scroller.releaseCapture&&this.editor.renderer.scroller.releaseCapture()},this.focusWait=function(){var e=s(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y),t=Date.now();(e>i||t-this.mousedownEvent.time>this.$focusTimeout)&&this.startSelect(this.mousedownEvent.getDocumentPosition())},this.onDoubleClick=function(e){var t=e.getDocumentPosition(),n=this.editor,r=n.session,i=r.getBracketRange(t);i?(i.isEmpty()&&(i.start.column--,i.end.column++),this.setState("select")):(i=n.selection.getWordRange(t.row,t.column),this.setState("selectByWords")),this.$clickSelection=i,this.select()},this.onTripleClick=function(e){var t=e.getDocumentPosition(),n=this.editor;this.setState("selectByLines");var r=n.getSelectionRange();r.isMultiLine()&&r.contains(t.row,t.column)?(this.$clickSelection=n.selection.getLineRange(r.start.row),this.$clickSelection.end=n.selection.getLineRange(r.end.row).end):this.$clickSelection=n.selection.getLineRange(t.row),this.select()},this.onQuadClick=function(e){var t=this.editor;t.selectAll(),this.$clickSelection=t.getSelectionRange(),this.setState("selectAll")},this.onMouseWheel=function(e){if(!e.getAccelKey()){e.getShiftKey()&&e.wheelY&&!e.wheelX&&(e.wheelX=e.wheelY,e.wheelY=0);var t=this.editor;this.$lastScroll||(this.$lastScroll={t:0,vx:0,vy:0,allowed:0});var n=this.$lastScroll,r=e.domEvent.timeStamp,i=r-n.t,a=i?e.wheelX/i:n.vx,s=i?e.wheelY/i:n.vy;i=1&&t.renderer.isScrollableBy(e.wheelX*e.speed,0)&&(c=!0),l<=1&&t.renderer.isScrollableBy(0,e.wheelY*e.speed)&&(c=!0),c)n.allowed=r;else if(r-n.alloweda.session.documentToScreenRow(u.row,u.column))return h()}if(i!=r)if(i=r.text.join("
"),c.setHtml(i),c.show(),a._signal("showGutterTooltip",c),a.on("mousewheel",h),e.$tooltipFollowsMouse)f(n);else{var d=n.domEvent.target,p=d.getBoundingClientRect(),m=c.getElement().style;m.left=p.right+"px",m.top=p.bottom+"px"}}function h(){t&&(t=clearTimeout(t)),i&&(c.hide(),i=null,a._signal("hideGutterTooltip",c),a.off("mousewheel",h))}function f(e){c.setPosition(e.x,e.y)}e.editor.setDefaultHandler("guttermousedown",function(t){if(a.isFocused()&&0==t.getButton()){var n=s.getRegion(t);if("foldWidgets"!=n){var r=t.getDocumentPosition().row,i=a.session.selection;if(t.getShiftKey())i.selectTo(r,0);else{if(2==t.domEvent.detail)return a.selectAll(),t.preventDefault();e.$clickSelection=a.selection.getLineRange(r)}return e.setState("selectByLines"),e.captureMouse(t),t.preventDefault()}}}),e.editor.setDefaultHandler("guttermousemove",function(o){var a=o.domEvent.target||o.domEvent.srcElement;if(r.hasCssClass(a,"ace_fold-widget"))return h();i&&e.$tooltipFollowsMouse&&f(o),n=o,t||(t=setTimeout(function(){t=null,n&&!e.isMousePressed?u():h()},50))}),o.addListener(a.renderer.$gutter,"mouseout",function(e){n=null,i&&!t&&(t=setTimeout(function(){t=null,h()},50))},a),a.on("changeSession",h)}function l(e){a.call(this,e)}i.inherits(l,a),function(){this.setPosition=function(e,t){var n=window.innerWidth||document.documentElement.clientWidth,r=window.innerHeight||document.documentElement.clientHeight,i=this.getWidth(),o=this.getHeight();e+=15,t+=15,e+i>n&&(e-=e+i-n),t+o>r&&(t-=20+o),a.prototype.setPosition.call(this,e,t)}}.call(l.prototype),t.GutterHandler=s}),ace.define("ace/mouse/mouse_event",["require","exports","module","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/event"),i=e("../lib/useragent"),o=t.MouseEvent=function(e,t){this.domEvent=e,this.editor=t,this.x=this.clientX=e.clientX,this.y=this.clientY=e.clientY,this.$pos=null,this.$inSelection=null,this.propagationStopped=!1,this.defaultPrevented=!1};(function(){this.stopPropagation=function(){r.stopPropagation(this.domEvent),this.propagationStopped=!0},this.preventDefault=function(){r.preventDefault(this.domEvent),this.defaultPrevented=!0},this.stop=function(){this.stopPropagation(),this.preventDefault()},this.getDocumentPosition=function(){return this.$pos?this.$pos:(this.$pos=this.editor.renderer.screenToTextCoordinates(this.clientX,this.clientY),this.$pos)},this.inSelection=function(){if(null!==this.$inSelection)return this.$inSelection;var e=this.editor,t=e.getSelectionRange();if(t.isEmpty())this.$inSelection=!1;else{var n=this.getDocumentPosition();this.$inSelection=t.contains(n.row,n.column)}return this.$inSelection},this.getButton=function(){return r.getButton(this.domEvent)},this.getShiftKey=function(){return this.domEvent.shiftKey},this.getAccelKey=i.isMac?function(){return this.domEvent.metaKey}:function(){return this.domEvent.ctrlKey}}).call(o.prototype)}),ace.define("ace/mouse/dragdrop_handler",["require","exports","module","ace/lib/dom","ace/lib/event","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/dom"),i=e("../lib/event"),o=e("../lib/useragent"),a=200,s=200,l=5;function c(e){var t=e.editor,n=r.createElement("div");n.style.cssText="top:-100px;position:absolute;z-index:2147483647;opacity:0.5",n.textContent="\xa0";var c=["dragWait","dragWaitEnd","startDrag","dragReadyEnd","onMouseDrag"];c.forEach(function(t){e[t]=this[t]},this),t.on("mousedown",this.onMouseDown.bind(e));var h,f,d,p,m,g,v,y,b,w,x,_=t.container,E=0;function S(e,n){var r=Date.now(),i=!n||e.row!=n.row,o=!n||e.column!=n.column;if(!w||i||o)t.moveCursorToPosition(e),w=r,x={x:f,y:d};else{var a=u(x.x,x.y,f,d);a>l?w=null:r-w>=s&&(t.renderer.scrollCursorIntoView(),w=null)}}function C(e,n){var r=Date.now(),i=t.renderer.layerConfig.lineHeight,o=t.renderer.layerConfig.characterWidth,s=t.renderer.scroller.getBoundingClientRect(),l={x:{left:f-s.left,right:s.right-f},y:{top:d-s.top,bottom:s.bottom-d}},c=Math.min(l.x.left,l.x.right),u=Math.min(l.y.top,l.y.bottom),h={row:e.row,column:e.column};c/o<=2&&(h.column+=l.x.left=a&&t.renderer.scrollCursorIntoView(h):b=r:b=null}function k(){var e=g;g=t.renderer.screenToTextCoordinates(f,d),S(g,e),C(g,e)}function O(){m=t.selection.toOrientedRange(),h=t.session.addMarker(m,"ace_selection",t.getSelectionStyle()),t.clearSelection(),t.isFocused()&&t.renderer.$cursorLayer.setBlinking(!1),clearInterval(p),k(),p=setInterval(k,20),E=0,i.addListener(document,"mousemove",P)}function T(){clearInterval(p),t.session.removeMarker(h),h=null,t.selection.fromOrientedRange(m),t.isFocused()&&!y&&t.$resetCursorStyle(),m=null,g=null,E=0,b=null,w=null,i.removeListener(document,"mousemove",P)}this.onDragStart=function(e){if(this.cancelDrag||!_.draggable){var r=this;return setTimeout(function(){r.startSelect(),r.captureMouse(e)},0),e.preventDefault()}m=t.getSelectionRange();var i=e.dataTransfer;i.effectAllowed=t.getReadOnly()?"copy":"copyMove",t.container.appendChild(n),i.setDragImage&&i.setDragImage(n,0,0),setTimeout(function(){t.container.removeChild(n)}),i.clearData(),i.setData("Text",t.session.getTextRange()),y=!0,this.setState("drag")},this.onDragEnd=function(e){if(_.draggable=!1,y=!1,this.setState(null),!t.getReadOnly()){var n=e.dataTransfer.dropEffect;v||"move"!=n||t.session.remove(t.getSelectionRange()),t.$resetCursorStyle()}this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle("")},this.onDragEnter=function(e){if(!t.getReadOnly()&&M(e.dataTransfer))return f=e.clientX,d=e.clientY,h||O(),E++,e.dataTransfer.dropEffect=v=R(e),i.preventDefault(e)},this.onDragOver=function(e){if(!t.getReadOnly()&&M(e.dataTransfer))return f=e.clientX,d=e.clientY,h||(O(),E++),null!==A&&(A=null),e.dataTransfer.dropEffect=v=R(e),i.preventDefault(e)},this.onDragLeave=function(e){if(E--,E<=0&&h)return T(),v=null,i.preventDefault(e)},this.onDrop=function(e){if(g){var n=e.dataTransfer;if(y)switch(v){case"move":m=m.contains(g.row,g.column)?{start:g,end:g}:t.moveText(m,g);break;case"copy":m=t.moveText(m,g,!0);break}else{var r=n.getData("Text");m={start:g,end:t.session.insert(g,r)},t.focus(),v=null}return T(),i.preventDefault(e)}},i.addListener(_,"dragstart",this.onDragStart.bind(e),t),i.addListener(_,"dragend",this.onDragEnd.bind(e),t),i.addListener(_,"dragenter",this.onDragEnter.bind(e),t),i.addListener(_,"dragover",this.onDragOver.bind(e),t),i.addListener(_,"dragleave",this.onDragLeave.bind(e),t),i.addListener(_,"drop",this.onDrop.bind(e),t);var A=null;function P(){null==A&&(A=setTimeout(function(){null!=A&&h&&T()},20))}function M(e){var t=e.types;return!t||Array.prototype.some.call(t,function(e){return"text/plain"==e||"Text"==e})}function R(e){var t=["copy","copymove","all","uninitialized"],n=["move","copymove","linkmove","all","uninitialized"],r=o.isMac?e.altKey:e.ctrlKey,i="uninitialized";try{i=e.dataTransfer.effectAllowed.toLowerCase()}catch(e){}var a="none";return r&&t.indexOf(i)>=0?a="copy":n.indexOf(i)>=0?a="move":t.indexOf(i)>=0&&(a="copy"),a}}function u(e,t,n,r){return Math.sqrt(Math.pow(n-e,2)+Math.pow(r-t,2))}(function(){this.dragWait=function(){var e=Date.now()-this.mousedownEvent.time;e>this.editor.getDragDelay()&&this.startDrag()},this.dragWaitEnd=function(){var e=this.editor.container;e.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()),this.selectEnd()},this.dragReadyEnd=function(e){this.editor.$resetCursorStyle(),this.editor.unsetStyle("ace_dragging"),this.editor.renderer.setCursorStyle(""),this.dragWaitEnd()},this.startDrag=function(){this.cancelDrag=!1;var e=this.editor,t=e.container;t.draggable=!0,e.renderer.$cursorLayer.setBlinking(!1),e.setStyle("ace_dragging");var n=o.isWin?"default":"move";e.renderer.setCursorStyle(n),this.setState("dragReady")},this.onMouseDrag=function(e){var t=this.editor.container;if(o.isIE&&"dragReady"==this.state){var n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>3&&t.dragDrop()}if("dragWait"===this.state){n=u(this.mousedownEvent.x,this.mousedownEvent.y,this.x,this.y);n>0&&(t.draggable=!1,this.startSelect(this.mousedownEvent.getDocumentPosition()))}},this.onMouseDown=function(e){if(this.$dragEnabled){this.mousedownEvent=e;var t=this.editor,n=e.inSelection(),r=e.getButton(),i=e.domEvent.detail||1;if(1===i&&0===r&&n){if(e.editor.inMultiSelectMode&&(e.getAccelKey()||e.getShiftKey()))return;this.mousedownEvent.time=Date.now();var a=e.domEvent.target||e.domEvent.srcElement;if("unselectable"in a&&(a.unselectable="on"),t.getDragDelay()){if(o.isWebKit){this.cancelDrag=!0;var s=t.container;s.draggable=!0}this.setState("dragWait")}else this.startDrag();this.captureMouse(e,this.onMouseDrag.bind(this)),e.defaultPrevented=!0}}}}).call(c.prototype),t.DragdropHandler=c}),ace.define("ace/mouse/touch_handler",["require","exports","module","ace/mouse/mouse_event","ace/lib/event","ace/lib/dom"],function(e,t,n){"use strict";var r=e("./mouse_event").MouseEvent,i=e("../lib/event"),o=e("../lib/dom");t.addTouchListeners=function(e,t){var n,a,s,l,c,u,h,f,d,p="scroll",m=0,g=0,v=0,y=0;function b(){var e=window.navigator&&window.navigator.clipboard,n=!1,r=function(){var r=t.getCopyText(),i=t.session.getUndoManager().hasUndo();d.replaceChild(o.buildDom(n?["span",!r&&["span",{class:"ace_mobile-button",action:"selectall"},"Select All"],r&&["span",{class:"ace_mobile-button",action:"copy"},"Copy"],r&&["span",{class:"ace_mobile-button",action:"cut"},"Cut"],e&&["span",{class:"ace_mobile-button",action:"paste"},"Paste"],i&&["span",{class:"ace_mobile-button",action:"undo"},"Undo"],["span",{class:"ace_mobile-button",action:"find"},"Find"],["span",{class:"ace_mobile-button",action:"openCommandPallete"},"Pallete"]]:["span"]),d.firstChild)},i=function(i){var o=i.target.getAttribute("action");if("more"==o||!n)return n=!n,r();"paste"==o?e.readText().then(function(e){t.execCommand(o,e)}):o&&("cut"!=o&&"copy"!=o||(e?e.writeText(t.getCopyText()):document.execCommand("copy")),t.execCommand(o)),d.firstChild.style.display="none",n=!1,"openCommandPallete"!=o&&t.focus()};d=o.buildDom(["div",{class:"ace_mobile-menu",ontouchstart:function(e){p="menu",e.stopPropagation(),e.preventDefault(),t.textInput.focus()},ontouchend:function(e){e.stopPropagation(),e.preventDefault(),i(e)},onclick:i},["span"],["span",{class:"ace_mobile-button",action:"more"},"..."]],t.container)}function w(){d||b();var e=t.selection.cursor,n=t.renderer.textToScreenCoordinates(e.row,e.column),r=t.renderer.textToScreenCoordinates(0,0).pageX,i=t.renderer.scrollLeft,o=t.container.getBoundingClientRect();d.style.top=n.pageY-o.top-3+"px",n.pageX-o.left=2?t.selection.getLineRange(h.row):t.session.getBracketRange(h);e&&!e.isEmpty()?t.selection.setRange(e):t.selection.selectWord(),p="wait"}function S(){m+=60,u=setInterval(function(){m--<=0&&(clearInterval(u),u=null),Math.abs(v)<.01&&(v=0),Math.abs(y)<.01&&(y=0),m<20&&(v*=.9),m<20&&(y*=.9);var e=t.session.getScrollTop();t.renderer.scrollBy(10*v,10*y),e==t.session.getScrollTop()&&(m=0)},10)}i.addListener(e,"contextmenu",function(e){if(f){var n=t.textInput.getElement();n.focus()}},t),i.addListener(e,"touchstart",function(e){var i=e.touches;if(c||i.length>1)return clearTimeout(c),c=null,s=-1,void(p="zoom");f=t.$mouseHandler.isMousePressed=!0;var o=t.renderer.layerConfig.lineHeight,u=t.renderer.layerConfig.lineHeight,d=e.timeStamp;l=d;var b=i[0],w=b.clientX,x=b.clientY;Math.abs(n-w)+Math.abs(a-x)>o&&(s=-1),n=e.clientX=w,a=e.clientY=x,v=y=0;var S=new r(e,t);if(h=S.getDocumentPosition(),d-s<500&&1==i.length&&!m)g++,e.preventDefault(),e.button=0,E();else{g=0;var C=t.selection.cursor,k=t.selection.isEmpty()?C:t.selection.anchor,O=t.renderer.$cursorLayer.getPixelPosition(C,!0),T=t.renderer.$cursorLayer.getPixelPosition(k,!0),A=t.renderer.scroller.getBoundingClientRect(),P=t.renderer.layerConfig.offset,M=t.renderer.scrollLeft,R=function(e,t){return e/=u,t=t/o-.75,e*e+t*t};if(e.clientXL?"cursor":"anchor"),p=L<3.5?"anchor":j<3.5?"cursor":"scroll",c=setTimeout(_,450)}s=d},t),i.addListener(e,"touchend",function(e){f=t.$mouseHandler.isMousePressed=!1,u&&clearInterval(u),"zoom"==p?(p="",m=0):c?(t.selection.moveToPosition(h),m=0,w()):"scroll"==p?(S(),x()):w(),clearTimeout(c),c=null},t),i.addListener(e,"touchmove",function(e){c&&(clearTimeout(c),c=null);var i=e.touches;if(!(i.length>1||"zoom"==p)){var o=i[0],s=n-o.clientX,u=a-o.clientY;if("wait"==p){if(!(s*s+u*u>4))return e.preventDefault();p="cursor"}n=o.clientX,a=o.clientY,e.clientX=o.clientX,e.clientY=o.clientY;var h=e.timeStamp,f=h-l;if(l=h,"scroll"==p){var d=new r(e,t);d.speed=1,d.wheelX=s,d.wheelY=u,10*Math.abs(s)1&&(i=n[n.length-2]);var a=c[t+"Path"];return null==a?a=c.basePath:"/"==r&&(t=r=""),a&&"/"!=a.slice(-1)&&(a+="/"),a+t+r+i+this.get("suffix")},t.setModuleUrl=function(e,t){return c.$moduleUrls[e]=t},t.$loading={},t.loadModule=function(n,r){var i,a;Array.isArray(n)&&(a=n[0],n=n[1]);try{i=e(n)}catch(e){}if(i&&!t.$loading[n])return r&&r(i);if(t.$loading[n]||(t.$loading[n]=[]),t.$loading[n].push(r),!(t.$loading[n].length>1)){var s=function(){e([n],function(e){t._emit("load.module",{name:n,module:e});var r=t.$loading[n];t.$loading[n]=null,r.forEach(function(t){t&&t(e)})})};if(!t.get("packaged"))return s();o.loadScript(t.moduleUrl(n,a),s),u()}};var u=function(){c.basePath||c.workerPath||c.modePath||c.themePath||Object.keys(c.$moduleUrls).length||(console.error("Unable to infer path to ace from script src,","use ace.config.set('basePath', 'path') to enable dynamic loading of modes and themes","or with webpack use ace/webpack-resolver"),u=function(){})};function h(i){if(l&&l.document){c.packaged=i||e.packaged||r.packaged||l.define&&n("B9Yq").packaged;for(var o={},a="",s=document.currentScript||document._currentScript,u=s&&s.ownerDocument||document,h=u.getElementsByTagName("script"),d=0;d0)if(16==g){for(_=x;_-1){for(_=x;_=0;C--){if(u[C]!=w)break;t[C]=r}}}function L(e,t,n){if(!(i=e){o=f+1;while(o=e)o++;for(s=f,l=o-1;s=t.length||(l=n[i-1])!=p&&l!=m||(c=t[i+1])!=p&&c!=m?g:(o&&(c=m),c==l?c:g);case _:return l=i>0?n[i-1]:v,l==p&&i+10&&n[i-1]==p)return p;if(o)return g;h=i+1,u=t.length;while(h=1425&&R<=2303||64286==R;if(l=t[h],j&&(l==d||l==b))return d}return i<1||(l=t[i-1])==v?g:n[i-1];case v:return o=!1,a=!0,r;case y:return s=!0,g;case C:case k:case T:case A:case O:o=!1;case P:return g}}function N(e){var t=e.charCodeAt(0),n=t>>8;return 0==n?t>191?f:M[t]:5==n?/[\u0591-\u05f4]/.test(e)?d:f:6==n?/[\u0610-\u061a\u064b-\u065f\u06d6-\u06e4\u06e7-\u06ed]/.test(e)?S:/[\u0660-\u0669\u066b-\u066c]/.test(e)?m:1642==t?E:/[\u06f0-\u06f9]/.test(e)?p:b:32==n&&t<=8287?R[255&t]:254==n&&t>=65136?b:g}t.L=f,t.R=d,t.EN=p,t.ON_R=3,t.AN=4,t.R_H=5,t.B=6,t.RLE=7,t.DOT="\xb7",t.doBidiReorder=function(e,n,i){if(e.length<2)return{};var o=e.split(""),a=new Array(o.length),s=new Array(o.length),l=[];r=i?h:u,j(o,l,o.length,n);for(var c=0;cb&&n[c]0&&"\u0644"===o[c-1]&&/\u0622|\u0623|\u0625|\u0627/.test(o[c])&&(l[c-1]=l[c]=t.R_H,c++);o[o.length-1]===t.DOT&&(l[o.length-1]=t.B),"\u202b"===o[0]&&(l[0]=t.RLE);for(c=0;c=0&&(e=this.session.$docRowCache[n])}return e},this.getSplitIndex=function(){var e=0,t=this.session.$screenRowCache;if(t.length){var n,r=this.session.$getRowCacheIndex(t,this.currentRow);while(this.currentRow-e>0){if(n=this.session.$getRowCacheIndex(t,this.currentRow-e-1),n!==r)break;r=n,e++}}else e=this.currentRow;return e},this.updateRowLine=function(e,t){void 0===e&&(e=this.getDocumentRow());var n=e===this.session.getLength()-1,o=n?this.EOF:this.EOL;if(this.wrapIndent=0,this.line=this.session.getLine(e),this.isRtlDir=this.$isRtl||this.line.charAt(0)===this.RLE,this.session.$useWrapMode){var a=this.session.$wrapData[e];a&&(void 0===t&&(t=this.getSplitIndex()),t>0&&a.length?(this.wrapIndent=a.indent,this.wrapOffset=this.wrapIndent*this.charWidths[r.L],this.line=tt?this.session.getOverwrite()?e:e-1:t,i=r.getVisualFromLogicalIdx(n,this.bidiMap),o=this.bidiMap.bidiLevels,a=0;!this.session.getOverwrite()&&e<=t&&o[i]%2!==0&&i++;for(var s=0;st&&o[i]%2===0&&(a+=this.charWidths[o[i]]),this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset),this.isRtlDir&&(a+=this.rtlLineOffset),a},this.getSelections=function(e,t){var n,r=this.bidiMap,i=r.bidiLevels,o=[],a=0,s=Math.min(e,t)-this.wrapIndent,l=Math.max(e,t)-this.wrapIndent,c=!1,u=!1,h=0;this.wrapIndent&&(a+=this.isRtlDir?-1*this.wrapOffset:this.wrapOffset);for(var f,d=0;d=s&&fn+o/2){if(n+=o,r===i.length-1){o=0;break}o=this.charWidths[i[++r]]}return r>0&&i[r-1]%2!==0&&i[r]%2===0?(e0&&i[r-1]%2===0&&i[r]%2!==0?t=1+(e>n?this.bidiMap.logicalFromVisual[r]:this.bidiMap.logicalFromVisual[r-1]):this.isRtlDir&&r===i.length-1&&0===o&&i[r-1]%2===0||!this.isRtlDir&&0===r&&i[r]%2!==0?t=1+this.bidiMap.logicalFromVisual[r]:(r>0&&i[r-1]%2!==0&&0!==o&&r--,t=this.bidiMap.logicalFromVisual[r]),0===t&&this.isRtlDir&&t++,t+this.wrapIndent}}).call(a.prototype),t.BidiHandler=a}),ace.define("ace/selection",["require","exports","module","ace/lib/oop","ace/lib/lang","ace/lib/event_emitter","ace/range"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/lang"),o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=function(e){this.session=e,this.doc=e.getDocument(),this.clearSelection(),this.cursor=this.lead=this.doc.createAnchor(0,0),this.anchor=this.doc.createAnchor(0,0),this.$silent=!1;var t=this;this.cursor.on("change",function(e){t.$cursorChanged=!0,t.$silent||t._emit("changeCursor"),t.$isEmpty||t.$silent||t._emit("changeSelection"),t.$keepDesiredColumnOnChange||e.old.column==e.value.column||(t.$desiredColumn=null)}),this.anchor.on("change",function(){t.$anchorChanged=!0,t.$isEmpty||t.$silent||t._emit("changeSelection")})};(function(){r.implement(this,o),this.isEmpty=function(){return this.$isEmpty||this.anchor.row==this.lead.row&&this.anchor.column==this.lead.column},this.isMultiLine=function(){return!this.$isEmpty&&this.anchor.row!=this.cursor.row},this.getCursor=function(){return this.lead.getPosition()},this.setSelectionAnchor=function(e,t){this.$isEmpty=!1,this.anchor.setPosition(e,t)},this.getAnchor=this.getSelectionAnchor=function(){return this.$isEmpty?this.getSelectionLead():this.anchor.getPosition()},this.getSelectionLead=function(){return this.lead.getPosition()},this.isBackwards=function(){var e=this.anchor,t=this.lead;return e.row>t.row||e.row==t.row&&e.column>t.column},this.getRange=function(){var e=this.anchor,t=this.lead;return this.$isEmpty?a.fromPoints(t,t):this.isBackwards()?a.fromPoints(t,e):a.fromPoints(e,t)},this.clearSelection=function(){this.$isEmpty||(this.$isEmpty=!0,this._emit("changeSelection"))},this.selectAll=function(){this.$setSelection(0,0,Number.MAX_VALUE,Number.MAX_VALUE)},this.setRange=this.setSelectionRange=function(e,t){var n=t?e.end:e.start,r=t?e.start:e.end;this.$setSelection(n.row,n.column,r.row,r.column)},this.$setSelection=function(e,t,n,r){if(!this.$silent){var i=this.$isEmpty,o=this.inMultiSelectMode;this.$silent=!0,this.$cursorChanged=this.$anchorChanged=!1,this.anchor.setPosition(e,t),this.cursor.setPosition(n,r),this.$isEmpty=!a.comparePoints(this.anchor,this.cursor),this.$silent=!1,this.$cursorChanged&&this._emit("changeCursor"),(this.$cursorChanged||this.$anchorChanged||i!=this.$isEmpty||o)&&this._emit("changeSelection")}},this.$moveSelection=function(e){var t=this.lead;this.$isEmpty&&this.setSelectionAnchor(t.row,t.column),e.call(this)},this.selectTo=function(e,t){this.$moveSelection(function(){this.moveCursorTo(e,t)})},this.selectToPosition=function(e){this.$moveSelection(function(){this.moveCursorToPosition(e)})},this.moveTo=function(e,t){this.clearSelection(),this.moveCursorTo(e,t)},this.moveToPosition=function(e){this.clearSelection(),this.moveCursorToPosition(e)},this.selectUp=function(){this.$moveSelection(this.moveCursorUp)},this.selectDown=function(){this.$moveSelection(this.moveCursorDown)},this.selectRight=function(){this.$moveSelection(this.moveCursorRight)},this.selectLeft=function(){this.$moveSelection(this.moveCursorLeft)},this.selectLineStart=function(){this.$moveSelection(this.moveCursorLineStart)},this.selectLineEnd=function(){this.$moveSelection(this.moveCursorLineEnd)},this.selectFileEnd=function(){this.$moveSelection(this.moveCursorFileEnd)},this.selectFileStart=function(){this.$moveSelection(this.moveCursorFileStart)},this.selectWordRight=function(){this.$moveSelection(this.moveCursorWordRight)},this.selectWordLeft=function(){this.$moveSelection(this.moveCursorWordLeft)},this.getWordRange=function(e,t){if("undefined"==typeof t){var n=e||this.lead;e=n.row,t=n.column}return this.session.getWordRange(e,t)},this.selectWord=function(){this.setSelectionRange(this.getWordRange())},this.selectAWord=function(){var e=this.getCursor(),t=this.session.getAWordRange(e.row,e.column);this.setSelectionRange(t)},this.getLineRange=function(e,t){var n,r="number"==typeof e?e:this.lead.row,i=this.session.getFoldLine(r);return i?(r=i.start.row,n=i.end.row):n=r,!0===t?new a(r,0,n,this.session.getLine(n).length):new a(r,0,n+1,0)},this.selectLine=function(){this.setSelectionRange(this.getLineRange())},this.moveCursorUp=function(){this.moveCursorBy(-1,0)},this.moveCursorDown=function(){this.moveCursorBy(1,0)},this.wouldMoveIntoSoftTab=function(e,t,n){var r=e.column,i=e.column+t;return n<0&&(r=e.column-t,i=e.column),this.session.isTabStop(e)&&this.doc.getLine(e.row).slice(r,i).split(" ").length-1==t},this.moveCursorLeft=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,-1))this.moveCursorTo(e.start.row,e.start.column);else if(0===t.column)t.row>0&&this.moveCursorTo(t.row-1,this.doc.getLine(t.row-1).length);else{var n=this.session.getTabSize();this.wouldMoveIntoSoftTab(t,n,-1)&&!this.session.getNavigateWithinSoftTabs()?this.moveCursorBy(0,-n):this.moveCursorBy(0,-1)}},this.moveCursorRight=function(){var e,t=this.lead.getPosition();if(e=this.session.getFoldAt(t.row,t.column,1))this.moveCursorTo(e.end.row,e.end.column);else if(this.lead.column==this.doc.getLine(this.lead.row).length)this.lead.row0&&(t.column=r)}}this.moveCursorTo(t.row,t.column)},this.moveCursorFileEnd=function(){var e=this.doc.getLength()-1,t=this.doc.getLine(e).length;this.moveCursorTo(e,t)},this.moveCursorFileStart=function(){this.moveCursorTo(0,0)},this.moveCursorLongWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t);this.session.nonTokenRe.lastIndex=0,this.session.tokenRe.lastIndex=0;var i=this.session.getFoldAt(e,t,1);if(i)this.moveCursorTo(i.end.row,i.end.column);else{if(this.session.nonTokenRe.exec(r)&&(t+=this.session.nonTokenRe.lastIndex,this.session.nonTokenRe.lastIndex=0,r=n.substring(t)),t>=n.length)return this.moveCursorTo(e,n.length),this.moveCursorRight(),void(e0&&this.moveCursorWordLeft());this.session.tokenRe.exec(o)&&(n-=this.session.tokenRe.lastIndex,this.session.tokenRe.lastIndex=0),this.moveCursorTo(t,n)}},this.$shortWordEndIndex=function(e){var t,n=0,r=/\s/,i=this.session.tokenRe;if(i.lastIndex=0,this.session.tokenRe.exec(e))n=this.session.tokenRe.lastIndex;else{while((t=e[n])&&r.test(t))n++;if(n<1){i.lastIndex=0;while((t=e[n])&&!i.test(t))if(i.lastIndex=0,n++,r.test(t)){if(n>2){n--;break}while((t=e[n])&&r.test(t))n++;if(n>2)break}}}return i.lastIndex=0,n},this.moveCursorShortWordRight=function(){var e=this.lead.row,t=this.lead.column,n=this.doc.getLine(e),r=n.substring(t),i=this.session.getFoldAt(e,t,1);if(i)return this.moveCursorTo(i.end.row,i.end.column);if(t==n.length){var o=this.doc.getLength();do{e++,r=this.doc.getLine(e)}while(e0&&/^\s*$/.test(r));n=r.length,/\s+$/.test(r)||(r="")}var o=i.stringReverse(r),a=this.$shortWordEndIndex(o);return this.moveCursorTo(t,n-a)},this.moveCursorWordRight=function(){this.session.$selectLongWords?this.moveCursorLongWordRight():this.moveCursorShortWordRight()},this.moveCursorWordLeft=function(){this.session.$selectLongWords?this.moveCursorLongWordLeft():this.moveCursorShortWordLeft()},this.moveCursorBy=function(e,t){var n,r=this.session.documentToScreenPosition(this.lead.row,this.lead.column);if(0===t&&(0!==e&&(this.session.$bidiHandler.isBidiRow(r.row,this.lead.row)?(n=this.session.$bidiHandler.getPosLeft(r.column),r.column=Math.round(n/this.session.$bidiHandler.charWidths[0])):n=r.column*this.session.$bidiHandler.charWidths[0]),this.$desiredColumn?r.column=this.$desiredColumn:this.$desiredColumn=r.column),0!=e&&this.session.lineWidgets&&this.session.lineWidgets[this.lead.row]){var i=this.session.lineWidgets[this.lead.row];e<0?e-=i.rowsAbove||0:e>0&&(e+=i.rowCount-(i.rowsAbove||0))}var o=this.session.screenToDocumentPosition(r.row+e,r.column,n);0!==e&&0===t&&o.row===this.lead.row&&(o.column,this.lead.column),this.moveCursorTo(o.row,o.column+t,0===t)},this.moveCursorToPosition=function(e){this.moveCursorTo(e.row,e.column)},this.moveCursorTo=function(e,t,n){var r=this.session.getFoldAt(e,t,1);r&&(e=r.start.row,t=r.start.column),this.$keepDesiredColumnOnChange=!0;var i=this.session.getLine(e);/[\uDC00-\uDFFF]/.test(i.charAt(t))&&i.charAt(t-1)&&(this.lead.row==e&&this.lead.column==t+1?t-=1:t+=1),this.lead.setPosition(e,t),this.$keepDesiredColumnOnChange=!1,n||(this.$desiredColumn=null)},this.moveCursorToScreen=function(e,t,n){var r=this.session.screenToDocumentPosition(e,t);this.moveCursorTo(r.row,r.column,n)},this.detach=function(){this.lead.detach(),this.anchor.detach()},this.fromOrientedRange=function(e){this.setSelectionRange(e,e.cursor==e.start),this.$desiredColumn=e.desiredColumn||this.$desiredColumn},this.toOrientedRange=function(e){var t=this.getRange();return e?(e.start.column=t.start.column,e.start.row=t.start.row,e.end.column=t.end.column,e.end.row=t.end.row):e=t,e.cursor=this.isBackwards()?e.start:e.end,e.desiredColumn=this.$desiredColumn,e},this.getRangeOfMovements=function(e){var t=this.getCursor();try{e(this);var n=this.getCursor();return a.fromPoints(t,n)}catch(e){return a.fromPoints(t,t)}finally{this.moveCursorToPosition(t)}},this.toJSON=function(){if(this.rangeCount)var e=this.ranges.map(function(e){var t=e.clone();return t.isBackwards=e.cursor==e.start,t});else{e=this.getRange();e.isBackwards=this.isBackwards()}return e},this.fromJSON=function(e){if(void 0==e.start){if(this.rangeList&&e.length>1){this.toSingleRange(e[0]);for(var t=e.length;t--;){var n=a.fromPoints(e[t].start,e[t].end);e[t].isBackwards&&(n.cursor=n.start),this.addRange(n,!0)}return}e=e[0]}this.rangeList&&this.toSingleRange(e),this.setSelectionRange(e,e.isBackwards)},this.isEqual=function(e){if((e.length||this.rangeCount)&&e.length!=this.rangeCount)return!1;if(!e.length||!this.ranges)return this.getRange().isEqual(e);for(var t=this.ranges.length;t--;)if(!this.ranges[t].isEqual(e[t]))return!1;return!0}}).call(s.prototype),t.Selection=s}),ace.define("ace/tokenizer",["require","exports","module","ace/config"],function(e,t,n){"use strict";var r=e("./config"),i=2e3,o=function(e){for(var t in this.states=e,this.regExps={},this.matchMappings={},this.states){for(var n=this.states[t],r=[],i=0,o=this.matchMappings[t]={defaultToken:"text"},a="g",s=[],l=0;l1?this.$applyToken:c.token),h>1&&(/\\\d/.test(c.regex)?u=c.regex.replace(/\\([0-9]+)/g,function(e,t){return"\\"+(parseInt(t,10)+i+1)}):(h=1,u=this.removeCapturingGroups(c.regex)),c.splitRegex||"string"==typeof c.token||s.push(c)),o[i]=l,i+=h,r.push(u),c.onMatch||(c.onMatch=null)}}r.length||(o[0]=0,r.push("$")),s.forEach(function(e){e.splitRegex=this.createSplitterRegexp(e.regex,a)},this),this.regExps[t]=new RegExp("("+r.join(")|(")+")|($)",a)}};(function(){this.$setMaxTokenCount=function(e){i=0|e},this.$applyToken=function(e){var t=this.splitRegex.exec(e).slice(1),n=this.token.apply(this,t);if("string"===typeof n)return[{type:n,value:e}];for(var r=[],i=0,o=n.length;iu){var v=e.substring(u,g-m.length);f.type==d?f.value+=v:(f.type&&c.push(f),f={type:d,value:v})}for(var y=0;yi){h>2*e.length&&this.reportError("infinite loop with in ace tokenizer",{startState:t,line:e});while(u1&&n[0]!==r&&n.unshift("#tmp",r),{tokens:c,state:n.length?n:r}},this.reportError=r.reportError}).call(o.prototype),t.Tokenizer=o}),ace.define("ace/mode/text_highlight_rules",["require","exports","module","ace/lib/lang"],function(e,t,n){"use strict";var r=e("../lib/lang"),i=function(){this.$rules={start:[{token:"empty_line",regex:"^$"},{defaultToken:"text"}]}};(function(){this.addRules=function(e,t){if(t)for(var n in e){for(var r=e[n],i=0;i=this.$rowTokens.length){if(this.$row+=1,e||(e=this.$session.getLength()),this.$row>=e)return this.$row=e-1,null;this.$rowTokens=this.$session.getTokens(this.$row),this.$tokenIndex=0}return this.$rowTokens[this.$tokenIndex]},this.getCurrentToken=function(){return this.$rowTokens[this.$tokenIndex]},this.getCurrentTokenRow=function(){return this.$row},this.getCurrentTokenColumn=function(){var e=this.$rowTokens,t=this.$tokenIndex,n=e[t].start;if(void 0!==n)return n;n=0;while(t>0)t-=1,n+=e[t].value.length;return n},this.getCurrentTokenPosition=function(){return{row:this.$row,column:this.getCurrentTokenColumn()}},this.getCurrentTokenRange=function(){var e=this.$rowTokens[this.$tokenIndex],t=this.getCurrentTokenColumn();return new r(this.$row,t,this.$row,t+e.value.length)}}).call(i.prototype),t.TokenIterator=i}),ace.define("ace/mode/behaviour/cstyle",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator","ace/lib/lang"],function(e,t,n){"use strict";var r,i=e("../../lib/oop"),o=e("../behaviour").Behaviour,a=e("../../token_iterator").TokenIterator,s=e("../../lib/lang"),l=["text","paren.rparen","rparen","paren","punctuation.operator"],c=["text","paren.rparen","rparen","paren","punctuation.operator","comment"],u={},h={'"':'"',"'":"'"},f=function(e){var t=-1;if(e.multiSelect&&(t=e.selection.index,u.rangeCount!=e.multiSelect.rangeCount&&(u={rangeCount:e.multiSelect.rangeCount})),u[t])return r=u[t];r=u[t]={autoInsertedBrackets:0,autoInsertedRow:-1,autoInsertedLineEnd:"",maybeInsertedBrackets:0,maybeInsertedRow:-1,maybeInsertedLineStart:"",maybeInsertedLineEnd:""}},d=function(e,t,n,r){var i=e.end.row-e.start.row;return{text:n+t+r,selection:[0,e.start.column+1,i,e.end.column+(i?0:1)]}},p=function(e){this.add("braces","insertion",function(t,n,i,o,a){var l=i.getCursorPosition(),c=o.doc.getLine(l.row);if("{"==a){f(i);var u=i.getSelectionRange(),h=o.doc.getTextRange(u);if(""!==h&&"{"!==h&&i.getWrapBehavioursEnabled())return d(u,h,"{","}");if(p.isSaneInsertion(i,o))return/[\]\}\)]/.test(c[l.column])||i.inMultiSelectMode||e&&e.braces?(p.recordAutoInsert(i,o,"}"),{text:"{}",selection:[1,1]}):(p.recordMaybeInsert(i,o,"{"),{text:"{",selection:[1,1]})}else if("}"==a){f(i);var m=c.substring(l.column,l.column+1);if("}"==m){var g=o.$findOpeningBracket("}",{column:l.column+1,row:l.row});if(null!==g&&p.isAutoInsertedClosing(l,c,a))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}else{if("\n"==a||"\r\n"==a){f(i);var v="";p.isMaybeInsertedClosing(l,c)&&(v=s.stringRepeat("}",r.maybeInsertedBrackets),p.clearMaybeInsertedClosing());m=c.substring(l.column,l.column+1);if("}"===m){var y=o.findMatchingBracket({row:l.row,column:l.column+1},"}");if(!y)return null;var b=this.$getIndent(o.getLine(y.row))}else{if(!v)return void p.clearMaybeInsertedClosing();b=this.$getIndent(c)}var w=b+o.getTabString();return{text:"\n"+w+"\n"+b+v,selection:[1,w.length,1,w.length]}}p.clearMaybeInsertedClosing()}}),this.add("braces","deletion",function(e,t,n,i,o){var a=i.doc.getTextRange(o);if(!o.isMultiLine()&&"{"==a){f(n);var s=i.doc.getLine(o.start.row),l=s.substring(o.end.column,o.end.column+1);if("}"==l)return o.end.column++,o;r.maybeInsertedBrackets--}}),this.add("parens","insertion",function(e,t,n,r,i){if("("==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return d(o,a,"(",")");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,")"),{text:"()",selection:[1,1]}}else if(")"==i){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row),c=l.substring(s.column,s.column+1);if(")"==c){var u=r.$findOpeningBracket(")",{column:s.column+1,row:s.row});if(null!==u&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("parens","deletion",function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"("==o){f(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if(")"==s)return i.end.column++,i}}),this.add("brackets","insertion",function(e,t,n,r,i){if("["==i){f(n);var o=n.getSelectionRange(),a=r.doc.getTextRange(o);if(""!==a&&n.getWrapBehavioursEnabled())return d(o,a,"[","]");if(p.isSaneInsertion(n,r))return p.recordAutoInsert(n,r,"]"),{text:"[]",selection:[1,1]}}else if("]"==i){f(n);var s=n.getCursorPosition(),l=r.doc.getLine(s.row),c=l.substring(s.column,s.column+1);if("]"==c){var u=r.$findOpeningBracket("]",{column:s.column+1,row:s.row});if(null!==u&&p.isAutoInsertedClosing(s,l,i))return p.popAutoInsertedClosing(),{text:"",selection:[1,1]}}}}),this.add("brackets","deletion",function(e,t,n,r,i){var o=r.doc.getTextRange(i);if(!i.isMultiLine()&&"["==o){f(n);var a=r.doc.getLine(i.start.row),s=a.substring(i.start.column+1,i.start.column+2);if("]"==s)return i.end.column++,i}}),this.add("string_dquotes","insertion",function(e,t,n,r,i){var o=r.$mode.$quotes||h;if(1==i.length&&o[i]){if(this.lineCommentStart&&-1!=this.lineCommentStart.indexOf(i))return;f(n);var a=i,s=n.getSelectionRange(),l=r.doc.getTextRange(s);if(!(""===l||1==l.length&&o[l])&&n.getWrapBehavioursEnabled())return d(s,l,a,a);if(!l){var c=n.getCursorPosition(),u=r.doc.getLine(c.row),p=u.substring(c.column-1,c.column),m=u.substring(c.column,c.column+1),g=r.getTokenAt(c.row,c.column),v=r.getTokenAt(c.row,c.column+1);if("\\"==p&&g&&/escape/.test(g.type))return null;var y,b=g&&/string|escape/.test(g.type),w=!v||/string|escape/.test(v.type);if(m==a)y=b!==w,y&&/string\.end/.test(v.type)&&(y=!1);else{if(b&&!w)return null;if(b&&w)return null;var x=r.$mode.tokenRe;x.lastIndex=0;var _=x.test(p);x.lastIndex=0;var E=x.test(p);if(_||E)return null;if(m&&!/[\s;,.})\]\\]/.test(m))return null;var S=u[c.column-2];if(p==a&&(S==a||x.test(S)))return null;y=!0}return{text:y?a+a:"",selection:[1,1]}}}}),this.add("string_dquotes","deletion",function(e,t,n,r,i){var o=r.$mode.$quotes||h,a=r.doc.getTextRange(i);if(!i.isMultiLine()&&o.hasOwnProperty(a)){f(n);var s=r.doc.getLine(i.start.row),l=s.substring(i.start.column+1,i.start.column+2);if(l==a)return i.end.column++,i}})};p.isSaneInsertion=function(e,t){var n=e.getCursorPosition(),r=new a(t,n.row,n.column);if(!this.$matchTokenType(r.getCurrentToken()||"text",l)){if(/[)}\]]/.test(e.session.getLine(n.row)[n.column]))return!0;var i=new a(t,n.row,n.column+1);if(!this.$matchTokenType(i.getCurrentToken()||"text",l))return!1}return r.stepForward(),r.getCurrentTokenRow()!==n.row||this.$matchTokenType(r.getCurrentToken()||"text",c)},p.$matchTokenType=function(e,t){return t.indexOf(e.type||e)>-1},p.recordAutoInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isAutoInsertedClosing(i,o,r.autoInsertedLineEnd[0])||(r.autoInsertedBrackets=0),r.autoInsertedRow=i.row,r.autoInsertedLineEnd=n+o.substr(i.column),r.autoInsertedBrackets++},p.recordMaybeInsert=function(e,t,n){var i=e.getCursorPosition(),o=t.doc.getLine(i.row);this.isMaybeInsertedClosing(i,o)||(r.maybeInsertedBrackets=0),r.maybeInsertedRow=i.row,r.maybeInsertedLineStart=o.substr(0,i.column)+n,r.maybeInsertedLineEnd=o.substr(i.column),r.maybeInsertedBrackets++},p.isAutoInsertedClosing=function(e,t,n){return r.autoInsertedBrackets>0&&e.row===r.autoInsertedRow&&n===r.autoInsertedLineEnd[0]&&t.substr(e.column)===r.autoInsertedLineEnd},p.isMaybeInsertedClosing=function(e,t){return r.maybeInsertedBrackets>0&&e.row===r.maybeInsertedRow&&t.substr(e.column)===r.maybeInsertedLineEnd&&t.substr(0,e.column)==r.maybeInsertedLineStart},p.popAutoInsertedClosing=function(){r.autoInsertedLineEnd=r.autoInsertedLineEnd.substr(1),r.autoInsertedBrackets--},p.clearMaybeInsertedClosing=function(){r&&(r.maybeInsertedBrackets=0,r.maybeInsertedRow=-1)},i.inherits(p,o),t.CstyleBehaviour=p}),ace.define("ace/unicode",["require","exports","module"],function(e,t,n){"use strict";for(var r=[48,9,8,25,5,0,2,25,48,0,11,0,5,0,6,22,2,30,2,457,5,11,15,4,8,0,2,0,18,116,2,1,3,3,9,0,2,2,2,0,2,19,2,82,2,138,2,4,3,155,12,37,3,0,8,38,10,44,2,0,2,1,2,1,2,0,9,26,6,2,30,10,7,61,2,9,5,101,2,7,3,9,2,18,3,0,17,58,3,100,15,53,5,0,6,45,211,57,3,18,2,5,3,11,3,9,2,1,7,6,2,2,2,7,3,1,3,21,2,6,2,0,4,3,3,8,3,1,3,3,9,0,5,1,2,4,3,11,16,2,2,5,5,1,3,21,2,6,2,1,2,1,2,1,3,0,2,4,5,1,3,2,4,0,8,3,2,0,8,15,12,2,2,8,2,2,2,21,2,6,2,1,2,4,3,9,2,2,2,2,3,0,16,3,3,9,18,2,2,7,3,1,3,21,2,6,2,1,2,4,3,8,3,1,3,2,9,1,5,1,2,4,3,9,2,0,17,1,2,5,4,2,2,3,4,1,2,0,2,1,4,1,4,2,4,11,5,4,4,2,2,3,3,0,7,0,15,9,18,2,2,7,2,2,2,22,2,9,2,4,4,7,2,2,2,3,8,1,2,1,7,3,3,9,19,1,2,7,2,2,2,22,2,9,2,4,3,8,2,2,2,3,8,1,8,0,2,3,3,9,19,1,2,7,2,2,2,22,2,15,4,7,2,2,2,3,10,0,9,3,3,9,11,5,3,1,2,17,4,23,2,8,2,0,3,6,4,0,5,5,2,0,2,7,19,1,14,57,6,14,2,9,40,1,2,0,3,1,2,0,3,0,7,3,2,6,2,2,2,0,2,0,3,1,2,12,2,2,3,4,2,0,2,5,3,9,3,1,35,0,24,1,7,9,12,0,2,0,2,0,5,9,2,35,5,19,2,5,5,7,2,35,10,0,58,73,7,77,3,37,11,42,2,0,4,328,2,3,3,6,2,0,2,3,3,40,2,3,3,32,2,3,3,6,2,0,2,3,3,14,2,56,2,3,3,66,5,0,33,15,17,84,13,619,3,16,2,25,6,74,22,12,2,6,12,20,12,19,13,12,2,2,2,1,13,51,3,29,4,0,5,1,3,9,34,2,3,9,7,87,9,42,6,69,11,28,4,11,5,11,11,39,3,4,12,43,5,25,7,10,38,27,5,62,2,28,3,10,7,9,14,0,89,75,5,9,18,8,13,42,4,11,71,55,9,9,4,48,83,2,2,30,14,230,23,280,3,5,3,37,3,5,3,7,2,0,2,0,2,0,2,30,3,52,2,6,2,0,4,2,2,6,4,3,3,5,5,12,6,2,2,6,67,1,20,0,29,0,14,0,17,4,60,12,5,0,4,11,18,0,5,0,3,9,2,0,4,4,7,0,2,0,2,0,2,3,2,10,3,3,6,4,5,0,53,1,2684,46,2,46,2,132,7,6,15,37,11,53,10,0,17,22,10,6,2,6,2,6,2,6,2,6,2,6,2,6,2,6,2,31,48,0,470,1,36,5,2,4,6,1,5,85,3,1,3,2,2,89,2,3,6,40,4,93,18,23,57,15,513,6581,75,20939,53,1164,68,45,3,268,4,27,21,31,3,13,13,1,2,24,9,69,11,1,38,8,3,102,3,1,111,44,25,51,13,68,12,9,7,23,4,0,5,45,3,35,13,28,4,64,15,10,39,54,10,13,3,9,7,22,4,1,5,66,25,2,227,42,2,1,3,9,7,11171,13,22,5,48,8453,301,3,61,3,105,39,6,13,4,6,11,2,12,2,4,2,0,2,1,2,1,2,107,34,362,19,63,3,53,41,11,5,15,17,6,13,1,25,2,33,4,2,134,20,9,8,25,5,0,2,25,12,88,4,5,3,5,3,5,3,2],i=0,o=[],a=0;a2?r%c!=c-1:r%c==0})}else{if(!this.blockComment)return!1;var d=this.blockComment.start,p=this.blockComment.end,m=new RegExp("^(\\s*)(?:"+l.escapeRegExp(d)+")"),g=new RegExp("(?:"+l.escapeRegExp(p)+")\\s*$"),v=function(e,t){b(e,t)||o&&!/\S/.test(e)||(i.insertInLine({row:t,column:e.length},p),i.insertInLine({row:t,column:s},d))},y=function(e,t){var n;(n=e.match(g))&&i.removeInLine(t,e.length-n[0].length,e.length),(n=e.match(m))&&i.removeInLine(t,n[1].length,n[0].length)},b=function(e,n){if(m.test(e))return!0;for(var r=t.getTokens(n),i=0;ie.length&&(x=e.length)}),s==1/0&&(s=x,o=!1,a=!1),u&&s%c!=0&&(s=Math.floor(s/c)*c),w(a?y:v)},this.toggleBlockComment=function(e,t,n,r){var i=this.blockComment;if(i){!i.start&&i[0]&&(i=i[0]);var o,a,s=new c(t,r.row,r.column),l=s.getCurrentToken(),h=(t.selection,t.selection.toOrientedRange());if(l&&/comment/.test(l.type)){var f,d;while(l&&/comment/.test(l.type)){var p=l.value.indexOf(i.start);if(-1!=p){var m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+p;f=new u(m,g,m,g+i.start.length);break}l=s.stepBackward()}s=new c(t,r.row,r.column),l=s.getCurrentToken();while(l&&/comment/.test(l.type)){p=l.value.indexOf(i.end);if(-1!=p){m=s.getCurrentTokenRow(),g=s.getCurrentTokenColumn()+p;d=new u(m,g,m,g+i.end.length);break}l=s.stepForward()}d&&t.remove(d),f&&(t.remove(f),o=f.start.row,a=-i.start.length)}else a=i.start.length,o=n.start.row,t.insert(n.end,i.end),t.insert(n.start,i.start);h.start.row==o&&(h.start.column+=a),h.end.row==o&&(h.end.column+=a),t.selection.fromOrientedRange(h)}},this.getNextLineIndent=function(e,t,n){return this.$getIndent(t)},this.checkOutdent=function(e,t,n){return!1},this.autoOutdent=function(e,t,n){},this.$getIndent=function(e){return e.match(/^\s*/)[0]},this.createWorker=function(e){return null},this.createModeDelegates=function(e){for(var t in this.$embeds=[],this.$modes={},e)if(e[t]){var n=e[t],i=n.prototype.$id,o=r.$modes[i];o||(r.$modes[i]=o=new n),r.$modes[t]||(r.$modes[t]=o),this.$embeds.push(t),this.$modes[t]=o}var a=["toggleBlockComment","toggleCommentLines","getNextLineIndent","checkOutdent","autoOutdent","transformAction","getCompletions"];for(t=0;tthis.row)){var n=t(e,{row:this.row,column:this.column},this.$insertRight);this.setPosition(n.row,n.column,!0)}},this.setPosition=function(e,t,n){var r;if(r=n?{row:e,column:t}:this.$clipPositionToDocument(e,t),this.row!=r.row||this.column!=r.column){var i={row:this.row,column:this.column};this.row=r.row,this.column=r.column,this._signal("change",{old:i,value:r})}},this.detach=function(){this.document.off("change",this.$onChange)},this.attach=function(e){this.document=e||this.document,this.document.on("change",this.$onChange)},this.$clipPositionToDocument=function(e,t){var n={};return e>=this.document.getLength()?(n.row=Math.max(0,this.document.getLength()-1),n.column=this.document.getLine(n.row).length):e<0?(n.row=0,n.column=0):(n.row=e,n.column=Math.min(this.document.getLine(n.row).length,Math.max(0,t))),t<0&&(n.column=0),n}}).call(o.prototype)}),ace.define("ace/document",["require","exports","module","ace/lib/oop","ace/apply_delta","ace/lib/event_emitter","ace/range","ace/anchor"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./apply_delta").applyDelta,o=e("./lib/event_emitter").EventEmitter,a=e("./range").Range,s=e("./anchor").Anchor,l=function(e){this.$lines=[""],0===e.length?this.$lines=[""]:Array.isArray(e)?this.insertMergedLines({row:0,column:0},e):this.insert({row:0,column:0},e)};(function(){r.implement(this,o),this.setValue=function(e){var t=this.getLength()-1;this.remove(new a(0,0,t,this.getLine(t).length)),this.insert({row:0,column:0},e)},this.getValue=function(){return this.getAllLines().join(this.getNewLineCharacter())},this.createAnchor=function(e,t){return new s(this,e,t)},0==="aaa".split(/a/).length?this.$split=function(e){return e.replace(/\r\n|\r/g,"\n").split("\n")}:this.$split=function(e){return e.split(/\r\n|\r|\n/)},this.$detectNewLine=function(e){var t=e.match(/^.*?(\r\n|\r|\n)/m);this.$autoNewLine=t?t[1]:"\n",this._signal("changeNewLineMode")},this.getNewLineCharacter=function(){switch(this.$newLineMode){case"windows":return"\r\n";case"unix":return"\n";default:return this.$autoNewLine||"\n"}},this.$autoNewLine="",this.$newLineMode="auto",this.setNewLineMode=function(e){this.$newLineMode!==e&&(this.$newLineMode=e,this._signal("changeNewLineMode"))},this.getNewLineMode=function(){return this.$newLineMode},this.isNewLine=function(e){return"\r\n"==e||"\r"==e||"\n"==e},this.getLine=function(e){return this.$lines[e]||""},this.getLines=function(e,t){return this.$lines.slice(e,t+1)},this.getAllLines=function(){return this.getLines(0,this.getLength())},this.getLength=function(){return this.$lines.length},this.getTextRange=function(e){return this.getLinesForRange(e).join(this.getNewLineCharacter())},this.getLinesForRange=function(e){var t;if(e.start.row===e.end.row)t=[this.getLine(e.start.row).substring(e.start.column,e.end.column)];else{t=this.getLines(e.start.row,e.end.row),t[0]=(t[0]||"").substring(e.start.column);var n=t.length-1;e.end.row-e.start.row==n&&(t[n]=t[n].substring(0,e.end.column))}return t},this.insertLines=function(e,t){return console.warn("Use of document.insertLines is deprecated. Use the insertFullLines method instead."),this.insertFullLines(e,t)},this.removeLines=function(e,t){return console.warn("Use of document.removeLines is deprecated. Use the removeFullLines method instead."),this.removeFullLines(e,t)},this.insertNewLine=function(e){return console.warn("Use of document.insertNewLine is deprecated. Use insertMergedLines(position, ['', '']) instead."),this.insertMergedLines(e,["",""])},this.insert=function(e,t){return this.getLength()<=1&&this.$detectNewLine(t),this.insertMergedLines(e,this.$split(t))},this.insertInLine=function(e,t){var n=this.clippedPos(e.row,e.column),r=this.pos(e.row,e.column+t.length);return this.applyDelta({start:n,end:r,action:"insert",lines:[t]},!0),this.clonePos(r)},this.clippedPos=function(e,t){var n=this.getLength();void 0===e?e=n:e<0?e=0:e>=n&&(e=n-1,t=void 0);var r=this.getLine(e);return void 0==t&&(t=r.length),t=Math.min(Math.max(t,0),r.length),{row:e,column:t}},this.clonePos=function(e){return{row:e.row,column:e.column}},this.pos=function(e,t){return{row:e,column:t}},this.$clipPosition=function(e){var t=this.getLength();return e.row>=t?(e.row=Math.max(0,t-1),e.column=this.getLine(t-1).length):(e.row=Math.max(0,e.row),e.column=Math.min(Math.max(e.column,0),this.getLine(e.row).length)),e},this.insertFullLines=function(e,t){e=Math.min(Math.max(e,0),this.getLength());var n=0;e0,r=t=0&&this.applyDelta({start:this.pos(e,this.getLine(e).length),end:this.pos(e+1,0),action:"remove",lines:["",""]})},this.replace=function(e,t){return e instanceof a||(e=a.fromPoints(e.start,e.end)),0===t.length&&e.isEmpty()?e.start:t==this.getTextRange(e)?e.end:(this.remove(e),n=t?this.insert(e.start,t):e.start,n);var n},this.applyDeltas=function(e){for(var t=0;t=0;t--)this.revertDelta(e[t])},this.applyDelta=function(e,t){var n="insert"==e.action;(n?e.lines.length<=1&&!e.lines[0]:!a.comparePoints(e.start,e.end))||(n&&e.lines.length>2e4?this.$splitAndapplyLargeDelta(e,2e4):(i(this.$lines,e,t),this._signal("change",e)))},this.$safeApplyDelta=function(e){var t=this.$lines.length;("remove"==e.action&&e.start.row20){n.running=setTimeout(n.$worker,20);break}}n.currentLine=t,-1==r&&(r=t),o<=r&&n.fireUpdateEvent(o,r)}}};(function(){r.implement(this,i),this.setTokenizer=function(e){this.tokenizer=e,this.lines=[],this.states=[],this.start(0)},this.setDocument=function(e){this.doc=e,this.lines=[],this.states=[],this.stop()},this.fireUpdateEvent=function(e,t){var n={first:e,last:t};this._signal("update",{data:n})},this.start=function(e){this.currentLine=Math.min(e||0,this.currentLine,this.doc.getLength()),this.lines.splice(this.currentLine,this.lines.length),this.states.splice(this.currentLine,this.states.length),this.stop(),this.running=setTimeout(this.$worker,700)},this.scheduleStart=function(){this.running||(this.running=setTimeout(this.$worker,700))},this.$updateOnChange=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.lines[t]=null;else if("remove"==e.action)this.lines.splice(t,n+1,null),this.states.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.lines.splice.apply(this.lines,r),this.states.splice.apply(this.states,r)}this.currentLine=Math.min(t,this.currentLine,this.doc.getLength()),this.stop()},this.stop=function(){this.running&&clearTimeout(this.running),this.running=!1},this.getTokens=function(e){return this.lines[e]||this.$tokenizeRow(e)},this.getState=function(e){return this.currentLine==e&&this.$tokenizeRow(e),this.states[e]||"start"},this.$tokenizeRow=function(e){var t=this.doc.getLine(e),n=this.states[e-1],r=this.tokenizer.getLineTokens(t,n,e);return this.states[e]+""!==r.state+""?(this.states[e]=r.state,this.lines[e+1]=null,this.currentLine>e+1&&(this.currentLine=e+1)):this.currentLine==e&&(this.currentLine=e+1),this.lines[e]=r.tokens}}).call(o.prototype),t.BackgroundTokenizer=o}),ace.define("ace/search_highlight",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";var r=e("./lib/lang"),i=(e("./lib/oop"),e("./range").Range),o=function(e,t,n){this.setRegexp(e),this.clazz=t,this.type=n||"text"};(function(){this.MAX_RANGES=500,this.setRegexp=function(e){this.regExp+""!=e+""&&(this.regExp=e,this.cache=[])},this.update=function(e,t,n,o){if(this.regExp)for(var a=o.firstRow,s=o.lastRow,l=a;l<=s;l++){var c=this.cache[l];null==c&&(c=r.getMatchOffsets(n.getLine(l),this.regExp),c.length>this.MAX_RANGES&&(c=c.slice(0,this.MAX_RANGES)),c=c.map(function(e){return new i(l,e.offset,l,e.offset+e.length)}),this.cache[l]=c.length?c:"");for(var u=c.length;u--;)t.drawSingleLineMarker(e,c[u].toScreenRange(n),this.clazz,o)}}}).call(o.prototype),t.SearchHighlight=o}),ace.define("ace/edit_session/fold_line",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../range").Range;function i(e,t){this.foldData=e,Array.isArray(t)?this.folds=t:t=this.folds=[t];var n=t[t.length-1];this.range=new r(t[0].start.row,t[0].start.column,n.end.row,n.end.column),this.start=this.range.start,this.end=this.range.end,this.folds.forEach(function(e){e.setFoldLine(this)},this)}(function(){this.shiftRow=function(e){this.start.row+=e,this.end.row+=e,this.folds.forEach(function(t){t.start.row+=e,t.end.row+=e})},this.addFold=function(e){if(e.sameRow){if(e.start.rowthis.endRow)throw new Error("Can't add a fold to this FoldLine as it has no connection");this.folds.push(e),this.folds.sort(function(e,t){return-e.range.compareEnd(t.start.row,t.start.column)}),this.range.compareEnd(e.start.row,e.start.column)>0?(this.end.row=e.end.row,this.end.column=e.end.column):this.range.compareStart(e.end.row,e.end.column)<0&&(this.start.row=e.start.row,this.start.column=e.start.column)}else if(e.start.row==this.end.row)this.folds.push(e),this.end.row=e.end.row,this.end.column=e.end.column;else{if(e.end.row!=this.start.row)throw new Error("Trying to add fold to FoldRow that doesn't have a matching row");this.folds.unshift(e),this.start.row=e.start.row,this.start.column=e.start.column}e.foldLine=this},this.containsRow=function(e){return e>=this.start.row&&e<=this.end.row},this.walk=function(e,t,n){var r,i,o,a=0,s=this.folds,l=!0;null==t&&(t=this.end.row,n=this.end.column);for(var c=0;c0)){var l=i(e,a.start);return 0===s?t&&0!==l?-o-2:o:l>0||0===l&&!t?o:-o-1}}return-o-1},this.add=function(e){var t=!e.isEmpty(),n=this.pointIndex(e.start,t);n<0&&(n=-n-1);var r=this.pointIndex(e.end,t,n);return r<0?r=-r-1:r++,this.ranges.splice(n,r-n,e)},this.addList=function(e){for(var t=[],n=e.length;n--;)t.push.apply(t,this.add(e[n]));return t},this.substractPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges.splice(t,1)},this.merge=function(){var e=[],t=this.ranges;t=t.sort(function(e,t){return i(e.start,t.start)});for(var n,r=t[0],o=1;o=0},this.containsPoint=function(e){return this.pointIndex(e)>=0},this.rangeAtPoint=function(e){var t=this.pointIndex(e);if(t>=0)return this.ranges[t]},this.clipRows=function(e,t){var n=this.ranges;if(n[0].start.row>t||n[n.length-1].start.row=r)break}if("insert"==e.action)for(var c=i-r,u=-t.column+n.column;ar)break;if(l.start.row==r&&l.start.column>=t.column&&(l.start.column==t.column&&this.$bias<=0||(l.start.column+=u,l.start.row+=c)),l.end.row==r&&l.end.column>=t.column){if(l.end.column==t.column&&this.$bias<0)continue;l.end.column==t.column&&u>0&&al.start.column&&l.end.column==o[a+1].start.column&&(l.end.column-=u),l.end.column+=u,l.end.row+=c}}else for(c=r-i,u=t.column-n.column;ai)break;l.end.rowt.column)&&(l.end.column=t.column,l.end.row=t.row):(l.end.column+=u,l.end.row+=c):l.end.row>i&&(l.end.row+=c),l.start.rowt.column)&&(l.start.column=t.column,l.start.row=t.row):(l.start.column+=u,l.start.row+=c):l.start.row>i&&(l.start.row+=c)}if(0!=c&&a=e)return i;if(i.end.row>e)return null}return null},this.getNextFoldLine=function(e,t){var n=this.$foldData,r=0;for(t&&(r=n.indexOf(t)),-1==r&&(r=0),r;r=e)return i}return null},this.getFoldedRowCount=function(e,t){for(var n=this.$foldData,r=t-e+1,i=0;i=t){s=e?r-=t-s:r=0);break}a>=e&&(r-=s>=e?a-s:a-e+1)}return r},this.$addFoldLine=function(e){return this.$foldData.push(e),this.$foldData.sort(function(e,t){return e.start.row-t.start.row}),e},this.addFold=function(e,t){var n,r=this.$foldData,a=!1;e instanceof o?n=e:(n=new o(t,e),n.collapseChildren=t.collapseChildren),this.$clipRangeToDocument(n.range);var s=n.start.row,l=n.start.column,c=n.end.row,u=n.end.column,h=this.getFoldAt(s,l,1),f=this.getFoldAt(c,u,-1);if(h&&f==h)return h.addSubFold(n);h&&!h.range.isStart(s,l)&&this.removeFold(h),f&&!f.range.isEnd(c,u)&&this.removeFold(f);var d=this.getFoldsInRange(n.range);d.length>0&&(this.removeFolds(d),n.collapseChildren||d.forEach(function(e){n.addSubFold(e)}));for(var p=0;p0&&this.foldAll(e.start.row+1,e.end.row,e.collapseChildren-1),e.subFolds=[]},this.expandFolds=function(e){e.forEach(function(e){this.expandFold(e)},this)},this.unfold=function(e,t){var n,i;if(null==e)n=new r(0,0,this.getLength(),0),null==t&&(t=!0);else if("number"==typeof e)n=new r(e,0,e,this.getLine(e).length);else if("row"in e)n=r.fromPoints(e,e);else{if(Array.isArray(e))return i=[],e.forEach(function(e){i=i.concat(this.unfold(e))},this),i;n=e}i=this.getFoldsInRangeList(n);var o=i;while(1==i.length&&r.comparePoints(i[0].start,n.start)<0&&r.comparePoints(i[0].end,n.end)>0)this.expandFolds(i),i=this.getFoldsInRangeList(n);if(0!=t?this.removeFolds(i):this.expandFolds(i),o.length)return o},this.isRowFolded=function(e,t){return!!this.getFoldLine(e,t)},this.getRowFoldEnd=function(e,t){var n=this.getFoldLine(e,t);return n?n.end.row:e},this.getRowFoldStart=function(e,t){var n=this.getFoldLine(e,t);return n?n.start.row:e},this.getFoldDisplayLine=function(e,t,n,r,i){null==r&&(r=e.start.row),null==i&&(i=0),null==t&&(t=e.end.row),null==n&&(n=this.getLine(t).length);var o=this.doc,a="";return e.walk(function(e,t,n,s){if(!(tu)break}while(o&&l.test(o.type));o=i.stepBackward()}else o=i.getCurrentToken();return c.end.row=i.getCurrentTokenRow(),c.end.column=i.getCurrentTokenColumn()+o.value.length-2,c}},this.foldAll=function(e,t,n,r){void 0==n&&(n=1e5);var i=this.foldWidgets;if(i){t=t||this.getLength(),e=e||0;for(var o=e;o=e&&(o=a.end.row,a.collapseChildren=n,this.addFold("...",a))}}},this.foldToLevel=function(e){this.foldAll();while(e-- >0)this.unfold(null,!1)},this.foldAllComments=function(){var e=this;this.foldAll(null,null,null,function(t){for(var n=e.getTokens(t),r=0;r=0){var o=n[i];if(null==o&&(o=n[i]=this.getFoldWidget(i)),"start"==o){var a=this.getFoldWidgetRange(i);if(r||(r=a),a&&a.end.row>=e)break}i--}return{range:-1!==i&&a,firstRange:r}},this.onFoldWidgetClick=function(e,t){t=t.domEvent;var n={children:t.shiftKey,all:t.ctrlKey||t.metaKey,siblings:t.altKey},r=this.$toggleFoldWidget(e,n);if(!r){var i=t.target||t.srcElement;i&&/ace_fold-widget/.test(i.className)&&(i.className+=" ace_invalid")}},this.$toggleFoldWidget=function(e,t){if(this.getFoldWidget){var n=this.getFoldWidget(e),r=this.getLine(e),i="end"===n?-1:1,o=this.getFoldAt(e,-1===i?0:r.length,i);if(o)return t.children||t.all?this.removeFold(o):this.expandFold(o),o;var a=this.getFoldWidgetRange(e,!0);if(a&&!a.isMultiLine()&&(o=this.getFoldAt(a.start.row,a.start.column,1),o&&a.isEqual(o.range)))return this.removeFold(o),o;if(t.siblings){var s=this.getParentFoldRangeData(e);if(s.range)var l=s.range.start.row+1,c=s.range.end.row;this.foldAll(l,c,t.all?1e4:0)}else t.children?(c=a?a.end.row:this.getLength(),this.foldAll(e+1,c,t.all?1e4:0)):a&&(t.all&&(a.collapseChildren=1e4),this.addFold("...",a));return a}},this.toggleFoldWidget=function(e){var t=this.selection.getCursor().row;t=this.getRowFoldStart(t);var n=this.$toggleFoldWidget(t,{});if(!n){var r=this.getParentFoldRangeData(t,!0);if(n=r.range||r.firstRange,n){t=n.start.row;var i=this.getFoldAt(t,this.getLine(t).length,1);i?this.removeFold(i):this.addFold("...",n)}}},this.updateFoldWidgets=function(e){var t=e.start.row,n=e.end.row-t;if(0===n)this.foldWidgets[t]=null;else if("remove"==e.action)this.foldWidgets.splice(t,n+1,null);else{var r=Array(n+1);r.unshift(t,1),this.foldWidgets.splice.apply(this.foldWidgets,r)}},this.tokenizerUpdateFoldWidgets=function(e){var t=e.data;t.first!=t.last&&this.foldWidgets.length>t.first&&this.foldWidgets.splice(t.first,this.foldWidgets.length)}}t.Folding=s}),ace.define("ace/edit_session/bracket_match",["require","exports","module","ace/token_iterator","ace/range"],function(e,t,n){"use strict";var r=e("../token_iterator").TokenIterator,i=e("../range").Range;function o(){this.findMatchingBracket=function(e,t){if(0==e.column)return null;var n=t||this.getLine(e.row).charAt(e.column-1);if(""==n)return null;var r=n.match(/([\(\[\{])|([\)\]\}])/);return r?r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e):null},this.getBracketRange=function(e){var t,n=this.getLine(e.row),r=!0,o=n.charAt(e.column-1),a=o&&o.match(/([\(\[\{])|([\)\]\}])/);if(a||(o=n.charAt(e.column),e={row:e.row,column:e.column+1},a=o&&o.match(/([\(\[\{])|([\)\]\}])/),r=!1),!a)return null;if(a[1]){var s=this.$findClosingBracket(a[1],e);if(!s)return null;t=i.fromPoints(e,s),r||(t.end.column++,t.start.column--),t.cursor=t.end}else{s=this.$findOpeningBracket(a[2],e);if(!s)return null;t=i.fromPoints(s,e),r||(t.start.column++,t.end.column--),t.cursor=t.start}return t},this.getMatchingBracketRanges=function(e){var t=this.getLine(e.row),n=t.charAt(e.column-1),r=n&&n.match(/([\(\[\{])|([\)\]\}])/);if(r||(n=t.charAt(e.column),e={row:e.row,column:e.column+1},r=n&&n.match(/([\(\[\{])|([\)\]\}])/)),!r)return null;var o=new i(e.row,e.column-1,e.row,e.column),a=r[1]?this.$findClosingBracket(r[1],e):this.$findOpeningBracket(r[2],e);if(!a)return[o];var s=new i(a.row,a.column,a.row,a.column+1);return[o,s]},this.$brackets={")":"(","(":")","]":"[","[":"]","{":"}","}":"{","<":">",">":"<"},this.$findOpeningBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("rparen",".paren").replace(/\b(?:end)\b/,"(?:start|begin|end)")+")+"));var l=t.column-a.getCurrentTokenColumn()-2,c=s.value;while(1){while(l>=0){var u=c.charAt(l);if(u==i){if(o-=1,0==o)return{row:a.getCurrentTokenRow(),column:l+a.getCurrentTokenColumn()}}else u==e&&(o+=1);l-=1}do{s=a.stepBackward()}while(s&&!n.test(s.type));if(null==s)break;c=s.value,l=c.length-1}return null}},this.$findClosingBracket=function(e,t,n){var i=this.$brackets[e],o=1,a=new r(this,t.row,t.column),s=a.getCurrentToken();if(s||(s=a.stepForward()),s){n||(n=new RegExp("(\\.?"+s.type.replace(".","\\.").replace("lparen",".paren").replace(/\b(?:start|begin)\b/,"(?:start|begin|end)")+")+"));var l=t.column-a.getCurrentTokenColumn();while(1){var c=s.value,u=c.length;while(ln&&(this.$docRowCache.splice(n,t),this.$screenRowCache.splice(n,t))},this.$getRowCacheIndex=function(e,t){var n=0,r=e.length-1;while(n<=r){var i=n+r>>1,o=e[i];if(t>o)n=i+1;else{if(!(t=t)break;return n=r[o],n?(n.index=o,n.start=i-n.value.length,n):null},this.setUndoManager=function(e){if(this.$undoManager=e,this.$informUndoManager&&this.$informUndoManager.cancel(),e){var t=this;e.addSession(this),this.$syncInformUndoManager=function(){t.$informUndoManager.cancel(),t.mergeUndoDeltas=!1},this.$informUndoManager=i.delayedCall(this.$syncInformUndoManager)}else this.$syncInformUndoManager=function(){}},this.markUndoGroup=function(){this.$syncInformUndoManager&&this.$syncInformUndoManager()},this.$defaultUndoManager={undo:function(){},redo:function(){},hasUndo:function(){},hasRedo:function(){},reset:function(){},add:function(){},addSelection:function(){},startNewGroup:function(){},addSession:function(){}},this.getUndoManager=function(){return this.$undoManager||this.$defaultUndoManager},this.getTabString=function(){return this.getUseSoftTabs()?i.stringRepeat(" ",this.getTabSize()):"\t"},this.setUseSoftTabs=function(e){this.setOption("useSoftTabs",e)},this.getUseSoftTabs=function(){return this.$useSoftTabs&&!this.$mode.$indentWithTabs},this.setTabSize=function(e){this.setOption("tabSize",e)},this.getTabSize=function(){return this.$tabSize},this.isTabStop=function(e){return this.$useSoftTabs&&e.column%this.$tabSize===0},this.setNavigateWithinSoftTabs=function(e){this.setOption("navigateWithinSoftTabs",e)},this.getNavigateWithinSoftTabs=function(){return this.$navigateWithinSoftTabs},this.$overwrite=!1,this.setOverwrite=function(e){this.setOption("overwrite",e)},this.getOverwrite=function(){return this.$overwrite},this.toggleOverwrite=function(){this.setOverwrite(!this.$overwrite)},this.addGutterDecoration=function(e,t){this.$decorations[e]||(this.$decorations[e]=""),this.$decorations[e]+=" "+t,this._signal("changeBreakpoint",{})},this.removeGutterDecoration=function(e,t){this.$decorations[e]=(this.$decorations[e]||"").replace(" "+t,""),this._signal("changeBreakpoint",{})},this.getBreakpoints=function(){return this.$breakpoints},this.setBreakpoints=function(e){this.$breakpoints=[];for(var t=0;t0&&(r=!!n.charAt(t-1).match(this.tokenRe)),r||(r=!!n.charAt(t).match(this.tokenRe)),r)var i=this.tokenRe;else if(/^\s+$/.test(n.slice(t-1,t+1)))i=/\s/;else i=this.nonTokenRe;var o=t;if(o>0){do{o--}while(o>=0&&n.charAt(o).match(i));o++}var a=t;while(ae&&(e=t.screenWidth)}),this.lineWidgetWidth=e},this.$computeWidth=function(e){if(this.$modified||e){if(this.$modified=!1,this.$useWrapMode)return this.screenWidth=this.$wrapLimit;for(var t=this.doc.getAllLines(),n=this.$rowLengthCache,r=0,i=0,o=this.$foldData[i],a=o?o.start.row:1/0,s=t.length,l=0;la){if(l=o.end.row+1,l>=s)break;o=this.$foldData[i++],a=o?o.start.row:1/0}null==n[l]&&(n[l]=this.$getStringScreenWidth(t[l])[0]),n[l]>r&&(r=n[l])}this.screenWidth=r}},this.getLine=function(e){return this.doc.getLine(e)},this.getLines=function(e,t){return this.doc.getLines(e,t)},this.getLength=function(){return this.doc.getLength()},this.getTextRange=function(e){return this.doc.getTextRange(e||this.selection.getRange())},this.insert=function(e,t){return this.doc.insert(e,t)},this.remove=function(e){return this.doc.remove(e)},this.removeFullLines=function(e,t){return this.doc.removeFullLines(e,t)},this.undoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=e.length-1;-1!=n;n--){var r=e[n];"insert"==r.action||"remove"==r.action?this.doc.revertDelta(r):r.folds&&this.addFolds(r.folds)}!t&&this.$undoSelect&&(e.selectionBefore?this.selection.fromJSON(e.selectionBefore):this.selection.setRange(this.$getUndoSelection(e,!0))),this.$fromUndo=!1}},this.redoChanges=function(e,t){if(e.length){this.$fromUndo=!0;for(var n=0;ne.end.column&&(o.start.column+=s),o.end.row==e.end.row&&o.end.column>e.end.column&&(o.end.column+=s)),a&&o.start.row>=e.end.row&&(o.start.row+=a,o.end.row+=a)}if(o.end=this.insert(o.start,r),i.length){var l=e.start,c=o.start;a=c.row-l.row,s=c.column-l.column;this.addFolds(i.map(function(e){return e=e.clone(),e.start.row==l.row&&(e.start.column+=s),e.end.row==l.row&&(e.end.column+=s),e.start.row+=a,e.end.row+=a,e}))}return o},this.indentRows=function(e,t,n){n=n.replace(/\t/g,this.getTabString());for(var r=e;r<=t;r++)this.doc.insertInLine({row:r,column:0},n)},this.outdentRows=function(e){for(var t=e.collapseRows(),n=new u(0,0,0,0),r=this.getTabSize(),i=t.start.row;i<=t.end.row;++i){var o=this.getLine(i);n.start.row=i,n.end.row=i;for(var a=0;a0){r=this.getRowFoldEnd(t+n);if(r>this.doc.getLength()-1)return 0;i=r-t}else{e=this.$clipRowToDocument(e),t=this.$clipRowToDocument(t);i=t-e+1}var o=new u(e,0,t,Number.MAX_VALUE),a=this.getFoldsInRange(o).map(function(e){return e=e.clone(),e.start.row+=i,e.end.row+=i,e}),s=0==n?this.doc.getLines(e,t):this.doc.removeFullLines(e,t);return this.doc.insertFullLines(e+i,s),a.length&&this.addFolds(a),i},this.moveLinesUp=function(e,t){return this.$moveLines(e,t,-1)},this.moveLinesDown=function(e,t){return this.$moveLines(e,t,1)},this.duplicateLines=function(e,t){return this.$moveLines(e,t,0)},this.$clipRowToDocument=function(e){return Math.max(0,Math.min(e,this.doc.getLength()-1))},this.$clipColumnToRow=function(e,t){return t<0?0:Math.min(this.doc.getLine(e).length,t)},this.$clipPositionToDocument=function(e,t){if(t=Math.max(0,t),e<0)e=0,t=0;else{var n=this.doc.getLength();e>=n?(e=n-1,t=this.doc.getLine(n-1).length):t=Math.min(this.doc.getLine(e).length,t)}return{row:e,column:t}},this.$clipRangeToDocument=function(e){e.start.row<0?(e.start.row=0,e.start.column=0):e.start.column=this.$clipColumnToRow(e.start.row,e.start.column);var t=this.doc.getLength()-1;return e.end.row>t?(e.end.row=t,e.end.column=this.doc.getLine(t).length):e.end.column=this.$clipColumnToRow(e.end.row,e.end.column),e},this.$wrapLimit=80,this.$useWrapMode=!1,this.$wrapLimitRange={min:null,max:null},this.setUseWrapMode=function(e){if(e!=this.$useWrapMode){if(this.$useWrapMode=e,this.$modified=!0,this.$resetRowCache(0),e){var t=this.getLength();this.$wrapData=Array(t),this.$updateWrapData(0,t-1)}this._signal("changeWrapMode")}},this.getUseWrapMode=function(){return this.$useWrapMode},this.setWrapLimitRange=function(e,t){this.$wrapLimitRange.min===e&&this.$wrapLimitRange.max===t||(this.$wrapLimitRange={min:e,max:t},this.$modified=!0,this.$bidiHandler.markAsDirty(),this.$useWrapMode&&this._signal("changeWrapMode"))},this.adjustWrapLimit=function(e,t){var n=this.$wrapLimitRange;n.max<0&&(n={min:t,max:t});var r=this.$constrainWrapLimit(e,n.min,n.max);return r!=this.$wrapLimit&&r>1&&(this.$wrapLimit=r,this.$modified=!0,this.$useWrapMode&&(this.$updateWrapData(0,this.getLength()-1),this.$resetRowCache(0),this._signal("changeWrapLimit")),!0)},this.$constrainWrapLimit=function(e,t,n){return t&&(e=Math.max(t,e)),n&&(e=Math.min(n,e)),e},this.getWrapLimit=function(){return this.$wrapLimit},this.setWrapLimit=function(e){this.setWrapLimitRange(e,e)},this.getWrapLimitRange=function(){return{min:this.$wrapLimitRange.min,max:this.$wrapLimitRange.max}},this.$updateInternalDataOnChange=function(e){var t=this.$useWrapMode,n=e.action,r=e.start,i=e.end,o=r.row,a=i.row,s=a-o,l=null;if(this.$updating=!0,0!=s)if("remove"===n){this[t?"$wrapData":"$rowLengthCache"].splice(o,s);var c=this.$foldData;l=this.getFoldsInRange(e),this.removeFolds(l);var u=this.getFoldLine(i.row),h=0;if(u){u.addRemoveChars(i.row,i.column,r.column-i.column),u.shiftRow(-s);var f=this.getFoldLine(o);f&&f!==u&&(f.merge(u),u=f),h=c.indexOf(u)+1}for(h;h=i.row&&u.shiftRow(-s)}a=o}else{var d=Array(s);d.unshift(o,0);var p=t?this.$wrapData:this.$rowLengthCache;p.splice.apply(p,d);c=this.$foldData,u=this.getFoldLine(o),h=0;if(u){var m=u.range.compareInside(r.row,r.column);0==m?(u=u.split(r.row,r.column),u&&(u.shiftRow(s),u.addRemoveChars(a,0,i.column-r.column))):-1==m&&(u.addRemoveChars(o,0,i.column-r.column),u.shiftRow(s)),h=c.indexOf(u)+1}for(h;h=o&&u.shiftRow(s)}}else{s=Math.abs(e.start.column-e.end.column),"remove"===n&&(l=this.getFoldsInRange(e),this.removeFolds(l),s=-s);u=this.getFoldLine(o);u&&u.addRemoveChars(o,r.column,s)}return t&&this.$wrapData.length!=this.doc.getLength()&&console.error("doc.getLength() and $wrapData.length have to be the same!"),this.$updating=!1,t?this.$updateWrapData(o,a):this.$updateRowLengthCache(o,a),l},this.$updateRowLengthCache=function(e,t,n){this.$rowLengthCache[e]=null,this.$rowLengthCache[t]=null},this.$updateWrapData=function(e,t){var r,i,a=this.doc.getAllLines(),s=this.getTabSize(),l=this.$wrapData,c=this.$wrapLimit,u=e;t=Math.min(t,a.length-1);while(u<=t)i=this.getFoldLine(u,i),i?(r=[],i.walk(function(e,t,i,s){var l;if(null!=e){l=this.$getDisplayTokens(e,r.length),l[0]=n;for(var c=1;c=4352&&e<=4447||e>=4515&&e<=4519||e>=4602&&e<=4607||e>=9001&&e<=9002||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12283||e>=12288&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12589||e>=12593&&e<=12686||e>=12688&&e<=12730||e>=12736&&e<=12771||e>=12784&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=13054||e>=13056&&e<=19903||e>=19968&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=55216&&e<=55238||e>=55243&&e<=55291||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=65281&&e<=65376||e>=65504&&e<=65510)}this.$computeWrapSplits=function(e,r,i){if(0==e.length)return[];var a=[],s=e.length,c=0,u=0,f=this.$wrapAsCode,d=this.$indentedSoftWrap,g=r<=Math.max(2*i,8)||!1===d?0:Math.floor(r/2);function v(){var t=0;if(0===g)return t;if(d)for(var n=0;nr-b){var w=c+r-b;if(e[w-1]>=h&&e[w]>=h)y(w);else if(e[w]!=n&&e[w]!=o){var x=Math.max(w-(r-(r>>2)),c-1);while(w>x&&e[w]x&&e[w]x&&e[w]==l)w--}else while(w>x&&e[w]x?y(++w):(w=c+r,e[w]==t&&w--,y(w-b))}else{for(w;w!=c-1;w--)if(e[w]==n)break;if(w>c){y(w);continue}for(w=c+r,w;w39&&s<48||s>57&&s<64?o.push(l):s>=4352&&g(s)?o.push(e,t):o.push(e)}return o},this.$getStringScreenWidth=function(e,t,n){if(0==t)return[0,0];var r,i;for(null==t&&(t=1/0),n=n||0,i=0;i=4352&&g(r)?n+=2:n+=1,n>t)break;return[n,i]},this.lineWidgets=null,this.getRowLength=function(e){var t=1;return this.lineWidgets&&(t+=this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0),this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+t:t},this.getRowLineCount=function(e){return this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1:1},this.getRowWrapIndent=function(e){if(this.$useWrapMode){var t=this.screenToDocumentPosition(e,Number.MAX_VALUE),n=this.$wrapData[t.row];return n.length&&n[0]=0){s=c[u],o=this.$docRowCache[u];var f=e>c[h-1]}else f=!h;var d=this.getLength()-1,p=this.getNextFoldLine(o),m=p?p.start.row:1/0;while(s<=e){if(l=this.getRowLength(o),s+l>e||o>=d)break;s+=l,o++,o>m&&(o=p.end.row+1,p=this.getNextFoldLine(o,p),m=p?p.start.row:1/0),f&&(this.$docRowCache.push(o),this.$screenRowCache.push(s))}if(p&&p.start.row<=o)r=this.getFoldDisplayLine(p),o=p.start.row;else{if(s+l<=e||o>d)return{row:d,column:this.getLine(d).length};r=this.getLine(o),p=null}var g=0,v=Math.floor(e-s);if(this.$useWrapMode){var y=this.$wrapData[o];y&&(i=y[v],v>0&&y.length&&(g=y.indent,a=y[v-1]||y[y.length-1],r=r.substring(a)))}return void 0!==n&&this.$bidiHandler.isBidiRow(s+v,o,v)&&(t=this.$bidiHandler.offsetToCol(n)),a+=this.$getStringScreenWidth(r,t-g)[1],this.$useWrapMode&&a>=i&&(a=i-1),p?p.idxToPosition(a):{row:o,column:a}},this.documentToScreenPosition=function(e,t){if("undefined"===typeof t)var n=this.$clipPositionToDocument(e.row,e.column);else n=this.$clipPositionToDocument(e,t);e=n.row,t=n.column;var r=0,i=null,o=null;o=this.getFoldAt(e,t,1),o&&(e=o.start.row,t=o.start.column);var a,s=0,l=this.$docRowCache,c=this.$getRowCacheIndex(l,e),u=l.length;if(u&&c>=0){s=l[c],r=this.$screenRowCache[c];var h=e>l[u-1]}else h=!u;var f=this.getNextFoldLine(s),d=f?f.start.row:1/0;while(s=d){if(a=f.end.row+1,a>e)break;f=this.getNextFoldLine(a,f),d=f?f.start.row:1/0}else a=s+1;r+=this.getRowLength(s),s=a,h&&(this.$docRowCache.push(s),this.$screenRowCache.push(r))}var p="";f&&s>=d?(p=this.getFoldDisplayLine(f,e,t),i=f.start.row):(p=this.getLine(e).substring(0,t),i=e);var m=0;if(this.$useWrapMode){var g=this.$wrapData[i];if(g){var v=0;while(p.length>=g[v])r++,v++;p=p.substring(g[v-1]||0,p.length),m=v>0?g.indent:0}}return this.lineWidgets&&this.lineWidgets[s]&&this.lineWidgets[s].rowsAbove&&(r+=this.lineWidgets[s].rowsAbove),{row:r,column:m+this.$getStringScreenWidth(p)[0]}},this.documentToScreenColumn=function(e,t){return this.documentToScreenPosition(e,t).column},this.documentToScreenRow=function(e,t){return this.documentToScreenPosition(e,t).row},this.getScreenLength=function(){var e=0,t=null;if(this.$useWrapMode){var n=this.$wrapData.length,r=0,i=(s=0,t=this.$foldData[s++],t?t.start.row:1/0);while(ri&&(r=t.end.row+1,t=this.$foldData[s++],i=t?t.start.row:1/0)}}else{e=this.getLength();for(var a=this.$foldData,s=0;sn)break;return[r,o]})},this.destroy=function(){this.bgTokenizer&&(this.bgTokenizer.setDocument(null),this.bgTokenizer=null),this.$stopWorker(),this.removeAllListeners(),this.doc&&this.doc.off("change",this.$onChange),this.selection.detach()},this.isFullWidth=g}.call(p.prototype),e("./edit_session/folding").Folding.call(p.prototype),e("./edit_session/bracket_match").BracketMatch.call(p.prototype),a.defineOptions(p.prototype,"session",{wrap:{set:function(e){if(e&&"off"!=e?"free"==e?e=!0:"printMargin"==e?e=-1:"string"==typeof e&&(e=parseInt(e,10)||!1):e=!1,this.$wrap!=e)if(this.$wrap=e,e){var t="number"==typeof e?e:null;this.setWrapLimitRange(t,t),this.setUseWrapMode(!0)}else this.setUseWrapMode(!1)},get:function(){return this.getUseWrapMode()?-1==this.$wrap?"printMargin":this.getWrapLimitRange().min?this.$wrap:"free":"off"},handlesSet:!0},wrapMethod:{set:function(e){e="auto"==e?"text"!=this.$mode.type:"text"!=e,e!=this.$wrapAsCode&&(this.$wrapAsCode=e,this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0)))},initialValue:"auto"},indentedSoftWrap:{set:function(){this.$useWrapMode&&(this.$useWrapMode=!1,this.setUseWrapMode(!0))},initialValue:!0},firstLineNumber:{set:function(){this._signal("changeBreakpoint")},initialValue:1},useWorker:{set:function(e){this.$useWorker=e,this.$stopWorker(),e&&this.$startWorker()},initialValue:!0},useSoftTabs:{initialValue:!0},tabSize:{set:function(e){e=parseInt(e),e>0&&this.$tabSize!==e&&(this.$modified=!0,this.$rowLengthCache=[],this.$tabSize=e,this._signal("changeTabSize"))},initialValue:4,handlesSet:!0},navigateWithinSoftTabs:{initialValue:!1},foldStyle:{set:function(e){this.setFoldStyle(e)},handlesSet:!0},overwrite:{set:function(e){this._signal("changeOverwrite")},initialValue:!1},newLineMode:{set:function(e){this.doc.setNewLineMode(e)},get:function(){return this.doc.getNewLineMode()},handlesSet:!0},mode:{set:function(e){this.setMode(e)},get:function(){return this.$modeId},handlesSet:!0}}),t.EditSession=p}),ace.define("ace/search",["require","exports","module","ace/lib/lang","ace/lib/oop","ace/range"],function(e,t,n){"use strict";var r=e("./lib/lang"),i=e("./lib/oop"),o=e("./range").Range,a=function(){this.$options={}};function s(e,t){function n(e){return/\w/.test(e)||t.regExp?"\\b":""}return n(e[0])+e+n(e[e.length-1])}(function(){this.set=function(e){return i.mixin(this.$options,e),this},this.getOptions=function(){return r.copyObject(this.$options)},this.setOptions=function(e){this.$options=e},this.find=function(e){var t=this.$options,n=this.$matchIterator(e,t);if(!n)return!1;var r=null;return n.forEach(function(e,n,i,a){return r=new o(e,n,i,a),!(n==a&&t.start&&t.start.start&&0!=t.skipCurrent&&r.isEqual(t.start))||(r=null,!1)}),r},this.findAll=function(e){var t=this.$options;if(!t.needle)return[];this.$assembleRegExp(t);var n=t.range,i=n?e.getLines(n.start.row,n.end.row):e.doc.getAllLines(),a=[],s=t.re;if(t.$isMultiLine){var l,c=s.length,u=i.length-c;e:for(var h=s.offset||0;h<=u;h++){for(var f=0;fm||(a.push(l=new o(h,m,h+c-1,g)),c>2&&(h=h+c-2))}}else for(var v=0;vx&&a[f].end.row==n.end.row)f--;for(a=a.slice(v,f+1),v=0,f=a.length;v=s;n--)if(h(n,Number.MAX_VALUE,e))return;if(0!=t.wrap)for(n=l,s=a.row;n>=s;n--)if(h(n,Number.MAX_VALUE,e))return}};else c=function(e){var n=a.row;if(!h(n,a.column,e)){for(n+=1;n<=l;n++)if(h(n,0,e))return;if(0!=t.wrap)for(n=s,l=a.row;n<=l;n++)if(h(n,0,e))return}};if(t.$isMultiLine)var u=n.length,h=function(t,i,o){var a=r?t-u+1:t;if(!(a<0||a+u>e.getLength())){var s=e.getLine(a),l=s.search(n[0]);if(!(!r&&li))return!!o(a,l,a+u-1,h)||void 0}}};else if(r)h=function(t,r,i){var o,a=e.getLine(t),s=[],l=0;n.lastIndex=0;while(o=n.exec(a)){var c=o[0].length;if(l=o.index,!c){if(l>=a.length)break;n.lastIndex=l+=1}if(o.index+c>r)break;s.push(o.index,c)}for(var u=s.length-1;u>=0;u-=2){var h=s[u-1];c=s[u];if(i(t,h,t,h+c))return!0}};else h=function(t,r,i){var o,a,s=e.getLine(t);n.lastIndex=r;while(a=n.exec(s)){var l=a[0].length;if(o=a.index,i(t,o,t,o+l))return!0;if(!l&&(n.lastIndex=o+=1,o>=s.length))return!1}};return{forEach:c}}}).call(a.prototype),t.Search=a}),ace.define("ace/keyboard/hash_handler",["require","exports","module","ace/lib/keys","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("../lib/keys"),i=e("../lib/useragent"),o=r.KEY_MODS;function a(e,t){this.platform=t||(i.isMac?"mac":"win"),this.commands={},this.commandKeyBinding={},this.addCommands(e),this.$singleCommand=!0}function s(e,t){a.call(this,e,t),this.$singleCommand=!1}s.prototype=a.prototype,function(){function e(e){return"object"==typeof e&&e.bindKey&&e.bindKey.position||(e.isDefault?-100:0)}this.addCommand=function(e){this.commands[e.name]&&this.removeCommand(e),this.commands[e.name]=e,e.bindKey&&this._buildKeyHash(e)},this.removeCommand=function(e,t){var n=e&&("string"===typeof e?e:e.name);e=this.commands[n],t||delete this.commands[n];var r=this.commandKeyBinding;for(var i in r){var o=r[i];if(o==e)delete r[i];else if(Array.isArray(o)){var a=o.indexOf(e);-1!=a&&(o.splice(a,1),1==o.length&&(r[i]=o[0]))}}},this.bindKey=function(e,t,n){if("object"==typeof e&&e&&(void 0==n&&(n=e.position),e=e[this.platform]),e)return"function"==typeof t?this.addCommand({exec:t,bindKey:e,name:t.name||e}):void e.split("|").forEach(function(e){var r="";if(-1!=e.indexOf(" ")){var i=e.split(/\s+/);e=i.pop(),i.forEach(function(e){var t=this.parseKeys(e),n=o[t.hashId]+t.key;r+=(r?" ":"")+n,this._addCommandToBinding(r,"chainKeys")},this),r+=" "}var a=this.parseKeys(e),s=o[a.hashId]+a.key;this._addCommandToBinding(r+s,t,n)},this)},this._addCommandToBinding=function(t,n,r){var i,o=this.commandKeyBinding;if(n)if(!o[t]||this.$singleCommand)o[t]=n;else{Array.isArray(o[t])?-1!=(i=o[t].indexOf(n))&&o[t].splice(i,1):o[t]=[o[t]],"number"!=typeof r&&(r=e(n));var a=o[t];for(i=0;ir)break}a.splice(i,0,n)}else delete o[t]},this.addCommands=function(e){e&&Object.keys(e).forEach(function(t){var n=e[t];if(n){if("string"===typeof n)return this.bindKey(n,t);"function"===typeof n&&(n={exec:n}),"object"===typeof n&&(n.name||(n.name=t),this.addCommand(n))}},this)},this.removeCommands=function(e){Object.keys(e).forEach(function(t){this.removeCommand(e[t])},this)},this.bindKeys=function(e){Object.keys(e).forEach(function(t){this.bindKey(t,e[t])},this)},this._buildKeyHash=function(e){this.bindKey(e.bindKey,e)},this.parseKeys=function(e){var t=e.toLowerCase().split(/[\-\+]([\-\+])?/).filter(function(e){return e}),n=t.pop(),i=r[n];if(r.FUNCTION_KEYS[i])n=r.FUNCTION_KEYS[i].toLowerCase();else{if(!t.length)return{key:n,hashId:-1};if(1==t.length&&"shift"==t[0])return{key:n.toUpperCase(),hashId:-1}}for(var o=0,a=t.length;a--;){var s=r.KEY_MODS[t[a]];if(null==s)return"undefined"!=typeof console&&console.error("invalid modifier "+t[a]+" in "+e),!1;o|=s}return{key:n,hashId:o}},this.findKeyCommand=function(e,t){var n=o[e]+t;return this.commandKeyBinding[n]},this.handleKeyboard=function(e,t,n,r){if(!(r<0)){var i=o[t]+n,a=this.commandKeyBinding[i];return e.$keyChain&&(e.$keyChain+=" "+i,a=this.commandKeyBinding[e.$keyChain]||a),!a||"chainKeys"!=a&&"chainKeys"!=a[a.length-1]?(e.$keyChain&&(t&&4!=t||1!=n.length?(-1==t||r>0)&&(e.$keyChain=""):e.$keyChain=e.$keyChain.slice(0,-i.length-1)),{command:a}):(e.$keyChain=e.$keyChain||i,{command:"null"})}},this.getStatusText=function(e,t){return t.$keyChain||""}}.call(a.prototype),t.HashHandler=a,t.MultiHashHandler=s}),ace.define("ace/commands/command_manager",["require","exports","module","ace/lib/oop","ace/keyboard/hash_handler","ace/lib/event_emitter"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../keyboard/hash_handler").MultiHashHandler,o=e("../lib/event_emitter").EventEmitter,a=function(e,t){i.call(this,t,e),this.byName=this.commands,this.setDefaultHandler("exec",function(e){return e.command.exec(e.editor,e.args||{})})};r.inherits(a,i),function(){r.implement(this,o),this.exec=function(e,t,n){if(Array.isArray(e)){for(var r=e.length;r--;)if(this.exec(e[r],t,n))return!0;return!1}if("string"===typeof e&&(e=this.commands[e]),!e)return!1;if(t&&t.$readOnly&&!e.readOnly)return!1;if(0!=this.$checkCommandState&&e.isAvailable&&!e.isAvailable(t))return!1;var i={editor:t,command:e,args:n};return i.returnValue=this._emit("exec",i),this._signal("afterExec",i),!1!==i.returnValue},this.toggleRecording=function(e){if(!this.$inReplay)return e&&e._emit("changeStatus"),this.recording?(this.macro.pop(),this.off("exec",this.$addCommandToMacro),this.macro.length||(this.macro=this.oldMacro),this.recording=!1):(this.$addCommandToMacro||(this.$addCommandToMacro=function(e){this.macro.push([e.command,e.args])}.bind(this)),this.oldMacro=this.macro,this.macro=[],this.on("exec",this.$addCommandToMacro),this.recording=!0)},this.replay=function(e){if(!this.$inReplay&&this.macro){if(this.recording)return this.toggleRecording(e);try{this.$inReplay=!0,this.macro.forEach(function(t){"string"==typeof t?this.exec(t,e):this.exec(t[0],e,t[1])},this)}finally{this.$inReplay=!1}}},this.trimMacro=function(e){return e.map(function(e){return"string"!=typeof e[0]&&(e[0]=e[0].name),e[1]||(e=e[0]),e})}}.call(a.prototype),t.CommandManager=a}),ace.define("ace/commands/default_commands",["require","exports","module","ace/lib/lang","ace/config","ace/range"],function(e,t,n){"use strict";var r=e("../lib/lang"),i=e("../config"),o=e("../range").Range;function a(e,t){return{win:e,mac:t}}t.commands=[{name:"showSettingsMenu",description:"Show settings menu",bindKey:a("Ctrl-,","Command-,"),exec:function(e){i.loadModule("ace/ext/settings_menu",function(t){t.init(e),e.showSettingsMenu()})},readOnly:!0},{name:"goToNextError",description:"Go to next error",bindKey:a("Alt-E","F4"),exec:function(e){i.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,1)})},scrollIntoView:"animate",readOnly:!0},{name:"goToPreviousError",description:"Go to previous error",bindKey:a("Alt-Shift-E","Shift-F4"),exec:function(e){i.loadModule("./ext/error_marker",function(t){t.showErrorMarker(e,-1)})},scrollIntoView:"animate",readOnly:!0},{name:"selectall",description:"Select all",bindKey:a("Ctrl-A","Command-A"),exec:function(e){e.selectAll()},readOnly:!0},{name:"centerselection",description:"Center selection",bindKey:a(null,"Ctrl-L"),exec:function(e){e.centerSelection()},readOnly:!0},{name:"gotoline",description:"Go to line...",bindKey:a("Ctrl-L","Command-L"),exec:function(e,t){"number"!==typeof t||isNaN(t)||e.gotoLine(t),e.prompt({$type:"gotoLine"})},readOnly:!0},{name:"fold",bindKey:a("Alt-L|Ctrl-F1","Command-Alt-L|Command-F1"),exec:function(e){e.session.toggleFold(!1)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"unfold",bindKey:a("Alt-Shift-L|Ctrl-Shift-F1","Command-Alt-Shift-L|Command-Shift-F1"),exec:function(e){e.session.toggleFold(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleFoldWidget",description:"Toggle fold widget",bindKey:a("F2","F2"),exec:function(e){e.session.toggleFoldWidget()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"toggleParentFoldWidget",description:"Toggle parent fold widget",bindKey:a("Alt-F2","Alt-F2"),exec:function(e){e.session.toggleFoldWidget(!0)},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"foldall",description:"Fold all",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAll()},scrollIntoView:"center",readOnly:!0},{name:"foldAllComments",description:"Fold all comments",bindKey:a(null,"Ctrl-Command-Option-0"),exec:function(e){e.session.foldAllComments()},scrollIntoView:"center",readOnly:!0},{name:"foldOther",description:"Fold other",bindKey:a("Alt-0","Command-Option-0"),exec:function(e){e.session.foldAll(),e.session.unfold(e.selection.getAllRanges())},scrollIntoView:"center",readOnly:!0},{name:"unfoldall",description:"Unfold all",bindKey:a("Alt-Shift-0","Command-Option-Shift-0"),exec:function(e){e.session.unfold()},scrollIntoView:"center",readOnly:!0},{name:"findnext",description:"Find next",bindKey:a("Ctrl-K","Command-G"),exec:function(e){e.findNext()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"findprevious",description:"Find previous",bindKey:a("Ctrl-Shift-K","Command-Shift-G"),exec:function(e){e.findPrevious()},multiSelectAction:"forEach",scrollIntoView:"center",readOnly:!0},{name:"selectOrFindNext",description:"Select or find next",bindKey:a("Alt-K","Ctrl-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findNext()},readOnly:!0},{name:"selectOrFindPrevious",description:"Select or find previous",bindKey:a("Alt-Shift-K","Ctrl-Shift-G"),exec:function(e){e.selection.isEmpty()?e.selection.selectWord():e.findPrevious()},readOnly:!0},{name:"find",description:"Find",bindKey:a("Ctrl-F","Command-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e)})},readOnly:!0},{name:"overwrite",description:"Overwrite",bindKey:"Insert",exec:function(e){e.toggleOverwrite()},readOnly:!0},{name:"selecttostart",description:"Select to start",bindKey:a("Ctrl-Shift-Home","Command-Shift-Home|Command-Shift-Up"),exec:function(e){e.getSelection().selectFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotostart",description:"Go to start",bindKey:a("Ctrl-Home","Command-Home|Command-Up"),exec:function(e){e.navigateFileStart()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectup",description:"Select up",bindKey:a("Shift-Up","Shift-Up|Ctrl-Shift-P"),exec:function(e){e.getSelection().selectUp()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golineup",description:"Go line up",bindKey:a("Up","Up|Ctrl-P"),exec:function(e,t){e.navigateUp(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttoend",description:"Select to end",bindKey:a("Ctrl-Shift-End","Command-Shift-End|Command-Shift-Down"),exec:function(e){e.getSelection().selectFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"gotoend",description:"Go to end",bindKey:a("Ctrl-End","Command-End|Command-Down"),exec:function(e){e.navigateFileEnd()},multiSelectAction:"forEach",readOnly:!0,scrollIntoView:"animate",aceCommandGroup:"fileJump"},{name:"selectdown",description:"Select down",bindKey:a("Shift-Down","Shift-Down|Ctrl-Shift-N"),exec:function(e){e.getSelection().selectDown()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"golinedown",description:"Go line down",bindKey:a("Down","Down|Ctrl-N"),exec:function(e,t){e.navigateDown(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordleft",description:"Select word left",bindKey:a("Ctrl-Shift-Left","Option-Shift-Left"),exec:function(e){e.getSelection().selectWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordleft",description:"Go to word left",bindKey:a("Ctrl-Left","Option-Left"),exec:function(e){e.navigateWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolinestart",description:"Select to line start",bindKey:a("Alt-Shift-Left","Command-Shift-Left|Ctrl-Shift-A"),exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolinestart",description:"Go to line start",bindKey:a("Alt-Left|Home","Command-Left|Home|Ctrl-A"),exec:function(e){e.navigateLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectleft",description:"Select left",bindKey:a("Shift-Left","Shift-Left|Ctrl-Shift-B"),exec:function(e){e.getSelection().selectLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoleft",description:"Go to left",bindKey:a("Left","Left|Ctrl-B"),exec:function(e,t){e.navigateLeft(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectwordright",description:"Select word right",bindKey:a("Ctrl-Shift-Right","Option-Shift-Right"),exec:function(e){e.getSelection().selectWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotowordright",description:"Go to word right",bindKey:a("Ctrl-Right","Option-Right"),exec:function(e){e.navigateWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selecttolineend",description:"Select to line end",bindKey:a("Alt-Shift-Right","Command-Shift-Right|Shift-End|Ctrl-Shift-E"),exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotolineend",description:"Go to line end",bindKey:a("Alt-Right|End","Command-Right|End|Ctrl-E"),exec:function(e){e.navigateLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectright",description:"Select right",bindKey:a("Shift-Right","Shift-Right"),exec:function(e){e.getSelection().selectRight()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"gotoright",description:"Go to right",bindKey:a("Right","Right|Ctrl-F"),exec:function(e,t){e.navigateRight(t.times)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectpagedown",description:"Select page down",bindKey:"Shift-PageDown",exec:function(e){e.selectPageDown()},readOnly:!0},{name:"pagedown",description:"Page down",bindKey:a(null,"Option-PageDown"),exec:function(e){e.scrollPageDown()},readOnly:!0},{name:"gotopagedown",description:"Go to page down",bindKey:a("PageDown","PageDown|Ctrl-V"),exec:function(e){e.gotoPageDown()},readOnly:!0},{name:"selectpageup",description:"Select page up",bindKey:"Shift-PageUp",exec:function(e){e.selectPageUp()},readOnly:!0},{name:"pageup",description:"Page up",bindKey:a(null,"Option-PageUp"),exec:function(e){e.scrollPageUp()},readOnly:!0},{name:"gotopageup",description:"Go to page up",bindKey:"PageUp",exec:function(e){e.gotoPageUp()},readOnly:!0},{name:"scrollup",description:"Scroll up",bindKey:a("Ctrl-Up",null),exec:function(e){e.renderer.scrollBy(0,-2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"scrolldown",description:"Scroll down",bindKey:a("Ctrl-Down",null),exec:function(e){e.renderer.scrollBy(0,2*e.renderer.layerConfig.lineHeight)},readOnly:!0},{name:"selectlinestart",description:"Select line start",bindKey:"Shift-Home",exec:function(e){e.getSelection().selectLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"selectlineend",description:"Select line end",bindKey:"Shift-End",exec:function(e){e.getSelection().selectLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"togglerecording",description:"Toggle recording",bindKey:a("Ctrl-Alt-E","Command-Option-E"),exec:function(e){e.commands.toggleRecording(e)},readOnly:!0},{name:"replaymacro",description:"Replay macro",bindKey:a("Ctrl-Shift-E","Command-Shift-E"),exec:function(e){e.commands.replay(e)},readOnly:!0},{name:"jumptomatching",description:"Jump to matching",bindKey:a("Ctrl-\\|Ctrl-P","Command-\\"),exec:function(e){e.jumpToMatching()},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"selecttomatching",description:"Select to matching",bindKey:a("Ctrl-Shift-\\|Ctrl-Shift-P","Command-Shift-\\"),exec:function(e){e.jumpToMatching(!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"expandToMatching",description:"Expand to matching",bindKey:a("Ctrl-Shift-M","Ctrl-Shift-M"),exec:function(e){e.jumpToMatching(!0,!0)},multiSelectAction:"forEach",scrollIntoView:"animate",readOnly:!0},{name:"passKeysToBrowser",description:"Pass keys to browser",bindKey:a(null,null),exec:function(){},passEvent:!0,readOnly:!0},{name:"copy",description:"Copy",exec:function(e){},readOnly:!0},{name:"cut",description:"Cut",exec:function(e){var t=e.$copyWithEmptySelection&&e.selection.isEmpty(),n=t?e.selection.getLineRange():e.selection.getRange();e._emit("cut",n),n.isEmpty()||e.session.remove(n),e.clearSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"paste",description:"Paste",exec:function(e,t){e.$handlePaste(t)},scrollIntoView:"cursor"},{name:"removeline",description:"Remove line",bindKey:a("Ctrl-D","Command-D"),exec:function(e){e.removeLines()},scrollIntoView:"cursor",multiSelectAction:"forEachLine"},{name:"duplicateSelection",description:"Duplicate selection",bindKey:a("Ctrl-Shift-D","Command-Shift-D"),exec:function(e){e.duplicateSelection()},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"sortlines",description:"Sort lines",bindKey:a("Ctrl-Alt-S","Command-Alt-S"),exec:function(e){e.sortLines()},scrollIntoView:"selection",multiSelectAction:"forEachLine"},{name:"togglecomment",description:"Toggle comment",bindKey:a("Ctrl-/","Command-/"),exec:function(e){e.toggleCommentLines()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"toggleBlockComment",description:"Toggle block comment",bindKey:a("Ctrl-Shift-/","Command-Shift-/"),exec:function(e){e.toggleBlockComment()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"modifyNumberUp",description:"Modify number up",bindKey:a("Ctrl-Shift-Up","Alt-Shift-Up"),exec:function(e){e.modifyNumber(1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"modifyNumberDown",description:"Modify number down",bindKey:a("Ctrl-Shift-Down","Alt-Shift-Down"),exec:function(e){e.modifyNumber(-1)},scrollIntoView:"cursor",multiSelectAction:"forEach"},{name:"replace",description:"Replace",bindKey:a("Ctrl-H","Command-Option-F"),exec:function(e){i.loadModule("ace/ext/searchbox",function(t){t.Search(e,!0)})}},{name:"undo",description:"Undo",bindKey:a("Ctrl-Z","Command-Z"),exec:function(e){e.undo()}},{name:"redo",description:"Redo",bindKey:a("Ctrl-Shift-Z|Ctrl-Y","Command-Shift-Z|Command-Y"),exec:function(e){e.redo()}},{name:"copylinesup",description:"Copy lines up",bindKey:a("Alt-Shift-Up","Command-Option-Up"),exec:function(e){e.copyLinesUp()},scrollIntoView:"cursor"},{name:"movelinesup",description:"Move lines up",bindKey:a("Alt-Up","Option-Up"),exec:function(e){e.moveLinesUp()},scrollIntoView:"cursor"},{name:"copylinesdown",description:"Copy lines down",bindKey:a("Alt-Shift-Down","Command-Option-Down"),exec:function(e){e.copyLinesDown()},scrollIntoView:"cursor"},{name:"movelinesdown",description:"Move lines down",bindKey:a("Alt-Down","Option-Down"),exec:function(e){e.moveLinesDown()},scrollIntoView:"cursor"},{name:"del",description:"Delete",bindKey:a("Delete","Delete|Ctrl-D|Shift-Delete"),exec:function(e){e.remove("right")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"backspace",description:"Backspace",bindKey:a("Shift-Backspace|Backspace","Ctrl-Backspace|Shift-Backspace|Backspace|Ctrl-H"),exec:function(e){e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"cut_or_delete",description:"Cut or delete",bindKey:a("Shift-Delete",null),exec:function(e){if(!e.selection.isEmpty())return!1;e.remove("left")},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestart",description:"Remove to line start",bindKey:a("Alt-Backspace","Command-Backspace"),exec:function(e){e.removeToLineStart()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineend",description:"Remove to line end",bindKey:a("Alt-Delete","Ctrl-K|Command-Delete"),exec:function(e){e.removeToLineEnd()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolinestarthard",description:"Remove to line start hard",bindKey:a("Ctrl-Shift-Backspace",null),exec:function(e){var t=e.selection.getRange();t.start.column=0,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removetolineendhard",description:"Remove to line end hard",bindKey:a("Ctrl-Shift-Delete",null),exec:function(e){var t=e.selection.getRange();t.end.column=Number.MAX_VALUE,e.session.remove(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordleft",description:"Remove word left",bindKey:a("Ctrl-Backspace","Alt-Backspace|Ctrl-Alt-Backspace"),exec:function(e){e.removeWordLeft()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"removewordright",description:"Remove word right",bindKey:a("Ctrl-Delete","Alt-Delete"),exec:function(e){e.removeWordRight()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"outdent",description:"Outdent",bindKey:a("Shift-Tab","Shift-Tab"),exec:function(e){e.blockOutdent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"indent",description:"Indent",bindKey:a("Tab","Tab"),exec:function(e){e.indent()},multiSelectAction:"forEach",scrollIntoView:"selectionPart"},{name:"blockoutdent",description:"Block outdent",bindKey:a("Ctrl-[","Ctrl-["),exec:function(e){e.blockOutdent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"blockindent",description:"Block indent",bindKey:a("Ctrl-]","Ctrl-]"),exec:function(e){e.blockIndent()},multiSelectAction:"forEachLine",scrollIntoView:"selectionPart"},{name:"insertstring",description:"Insert string",exec:function(e,t){e.insert(t)},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"inserttext",description:"Insert text",exec:function(e,t){e.insert(r.stringRepeat(t.text||"",t.times||1))},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"splitline",description:"Split line",bindKey:a(null,"Ctrl-O"),exec:function(e){e.splitLine()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"transposeletters",description:"Transpose letters",bindKey:a("Alt-Shift-X","Ctrl-T"),exec:function(e){e.transposeLetters()},multiSelectAction:function(e){e.transposeSelections(1)},scrollIntoView:"cursor"},{name:"touppercase",description:"To uppercase",bindKey:a("Ctrl-U","Ctrl-U"),exec:function(e){e.toUpperCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"tolowercase",description:"To lowercase",bindKey:a("Ctrl-Shift-U","Ctrl-Shift-U"),exec:function(e){e.toLowerCase()},multiSelectAction:"forEach",scrollIntoView:"cursor"},{name:"autoindent",description:"Auto Indent",bindKey:a(null,null),exec:function(e){e.autoIndent()},multiSelectAction:"forEachLine",scrollIntoView:"animate"},{name:"expandtoline",description:"Expand to line",bindKey:a("Ctrl-Shift-L","Command-Shift-L"),exec:function(e){var t=e.selection.getRange();t.start.column=t.end.column=0,t.end.row++,e.selection.setRange(t,!1)},multiSelectAction:"forEach",scrollIntoView:"cursor",readOnly:!0},{name:"joinlines",description:"Join lines",bindKey:a(null,null),exec:function(e){for(var t=e.selection.isBackwards(),n=t?e.selection.getSelectionLead():e.selection.getSelectionAnchor(),i=t?e.selection.getSelectionAnchor():e.selection.getSelectionLead(),a=e.session.doc.getLine(n.row).length,s=e.session.doc.getTextRange(e.selection.getRange()),l=s.replace(/\n\s*/," ").length,c=e.session.doc.getLine(n.row),u=n.row+1;u<=i.row+1;u++){var h=r.stringTrimLeft(r.stringTrimRight(e.session.doc.getLine(u)));0!==h.length&&(h=" "+h),c+=h}i.row+10?(e.selection.moveCursorTo(n.row,n.column),e.selection.selectTo(n.row,n.column+l)):(a=e.session.doc.getLine(n.row).length>a?a+1:a,e.selection.moveCursorTo(n.row,a))},multiSelectAction:"forEach",readOnly:!0},{name:"invertSelection",description:"Invert selection",bindKey:a(null,null),exec:function(e){var t=e.session.doc.getLength()-1,n=e.session.doc.getLine(t).length,r=e.selection.rangeList.ranges,i=[];r.length<1&&(r=[e.selection.getRange()]);for(var a=0;a=i.lastRow||r.end.row<=i.firstRow)&&this.renderer.scrollSelectionIntoView(this.selection.anchor,this.selection.lead);break;default:break}"animate"==n&&this.renderer.animateScrolling(this.curOp.scrollTop)}var o=this.selection.toJSON();this.curOp.selectionAfter=o,this.$lastSel=this.selection.toJSON(),this.session.getUndoManager().addSelection(o),this.prevOp=this.curOp,this.curOp=null}},this.$mergeableCommands=["backspace","del","insertstring"],this.$historyTracker=function(e){if(this.$mergeUndoDeltas){var t=this.prevOp,n=this.$mergeableCommands,r=t.command&&e.command.name==t.command.name;if("insertstring"==e.command.name){var i=e.args;void 0===this.mergeNextCommand&&(this.mergeNextCommand=!0),r=r&&this.mergeNextCommand&&(!/\s/.test(i)||/\s/.test(t.args)),this.mergeNextCommand=!0}else r=r&&-1!==n.indexOf(e.command.name);"always"!=this.$mergeUndoDeltas&&Date.now()-this.sequenceStartTime>2e3&&(r=!1),r?this.session.mergeUndoDeltas=!0:-1!==n.indexOf(e.command.name)&&(this.sequenceStartTime=Date.now())}},this.setKeyboardHandler=function(e,t){if(e&&"string"===typeof e&&"ace"!=e){this.$keybindingId=e;var n=this;v.loadModule(["keybinding",e],function(r){n.$keybindingId==e&&n.keyBinding.setKeyboardHandler(r&&r.handler),t&&t()})}else this.$keybindingId=null,this.keyBinding.setKeyboardHandler(e),t&&t()},this.getKeyboardHandler=function(){return this.keyBinding.getKeyboardHandler()},this.setSession=function(e){if(this.session!=e){this.curOp&&this.endOperation(),this.curOp={};var t=this.session;if(t){this.session.off("change",this.$onDocumentChange),this.session.off("changeMode",this.$onChangeMode),this.session.off("tokenizerUpdate",this.$onTokenizerUpdate),this.session.off("changeTabSize",this.$onChangeTabSize),this.session.off("changeWrapLimit",this.$onChangeWrapLimit),this.session.off("changeWrapMode",this.$onChangeWrapMode),this.session.off("changeFold",this.$onChangeFold),this.session.off("changeFrontMarker",this.$onChangeFrontMarker),this.session.off("changeBackMarker",this.$onChangeBackMarker),this.session.off("changeBreakpoint",this.$onChangeBreakpoint),this.session.off("changeAnnotation",this.$onChangeAnnotation),this.session.off("changeOverwrite",this.$onCursorChange),this.session.off("changeScrollTop",this.$onScrollTopChange),this.session.off("changeScrollLeft",this.$onScrollLeftChange);var n=this.session.getSelection();n.off("changeCursor",this.$onCursorChange),n.off("changeSelection",this.$onSelectionChange)}this.session=e,e?(this.$onDocumentChange=this.onDocumentChange.bind(this),e.on("change",this.$onDocumentChange),this.renderer.setSession(e),this.$onChangeMode=this.onChangeMode.bind(this),e.on("changeMode",this.$onChangeMode),this.$onTokenizerUpdate=this.onTokenizerUpdate.bind(this),e.on("tokenizerUpdate",this.$onTokenizerUpdate),this.$onChangeTabSize=this.renderer.onChangeTabSize.bind(this.renderer),e.on("changeTabSize",this.$onChangeTabSize),this.$onChangeWrapLimit=this.onChangeWrapLimit.bind(this),e.on("changeWrapLimit",this.$onChangeWrapLimit),this.$onChangeWrapMode=this.onChangeWrapMode.bind(this),e.on("changeWrapMode",this.$onChangeWrapMode),this.$onChangeFold=this.onChangeFold.bind(this),e.on("changeFold",this.$onChangeFold),this.$onChangeFrontMarker=this.onChangeFrontMarker.bind(this),this.session.on("changeFrontMarker",this.$onChangeFrontMarker),this.$onChangeBackMarker=this.onChangeBackMarker.bind(this),this.session.on("changeBackMarker",this.$onChangeBackMarker),this.$onChangeBreakpoint=this.onChangeBreakpoint.bind(this),this.session.on("changeBreakpoint",this.$onChangeBreakpoint),this.$onChangeAnnotation=this.onChangeAnnotation.bind(this),this.session.on("changeAnnotation",this.$onChangeAnnotation),this.$onCursorChange=this.onCursorChange.bind(this),this.session.on("changeOverwrite",this.$onCursorChange),this.$onScrollTopChange=this.onScrollTopChange.bind(this),this.session.on("changeScrollTop",this.$onScrollTopChange),this.$onScrollLeftChange=this.onScrollLeftChange.bind(this),this.session.on("changeScrollLeft",this.$onScrollLeftChange),this.selection=e.getSelection(),this.selection.on("changeCursor",this.$onCursorChange),this.$onSelectionChange=this.onSelectionChange.bind(this),this.selection.on("changeSelection",this.$onSelectionChange),this.onChangeMode(),this.onCursorChange(),this.onScrollTopChange(),this.onScrollLeftChange(),this.onSelectionChange(),this.onChangeFrontMarker(),this.onChangeBackMarker(),this.onChangeBreakpoint(),this.onChangeAnnotation(),this.session.getUseWrapMode()&&this.renderer.adjustWrapLimit(),this.renderer.updateFull()):(this.selection=null,this.renderer.setSession(e)),this._signal("changeSession",{session:e,oldSession:t}),this.curOp=null,t&&t._signal("changeEditor",{oldEditor:this}),e&&e._signal("changeEditor",{editor:this}),e&&e.bgTokenizer&&e.bgTokenizer.scheduleStart()}},this.getSession=function(){return this.session},this.setValue=function(e,t){return this.session.doc.setValue(e),t?1==t?this.navigateFileEnd():-1==t&&this.navigateFileStart():this.selectAll(),e},this.getValue=function(){return this.session.getValue()},this.getSelection=function(){return this.selection},this.resize=function(e){this.renderer.onResize(e)},this.setTheme=function(e,t){this.renderer.setTheme(e,t)},this.getTheme=function(){return this.renderer.getTheme()},this.setStyle=function(e){this.renderer.setStyle(e)},this.unsetStyle=function(e){this.renderer.unsetStyle(e)},this.getFontSize=function(){return this.getOption("fontSize")||i.computedStyle(this.container).fontSize},this.setFontSize=function(e){this.setOption("fontSize",e)},this.$highlightBrackets=function(){if(!this.$highlightPending){var e=this;this.$highlightPending=!0,setTimeout(function(){e.$highlightPending=!1;var t=e.session;if(t&&t.bgTokenizer){t.$bracketHighlight&&(t.$bracketHighlight.markerIds.forEach(function(e){t.removeMarker(e)}),t.$bracketHighlight=null);var n=t.getMatchingBracketRanges(e.getCursorPosition());if(!n&&t.$mode.getMatching&&(n=t.$mode.getMatching(e.session)),n){var r="ace_bracket";Array.isArray(n)?1==n.length&&(r="ace_error_bracket"):n=[n],2==n.length&&(0==d.comparePoints(n[0].end,n[1].start)?n=[d.fromPoints(n[0].start,n[1].end)]:0==d.comparePoints(n[0].start,n[1].end)&&(n=[d.fromPoints(n[1].start,n[0].end)])),t.$bracketHighlight={ranges:n,markerIds:n.map(function(e){return t.addMarker(e,r,"text")})}}}},50)}},this.$highlightTags=function(){if(!this.$highlightTagPending){var e=this;this.$highlightTagPending=!0,setTimeout(function(){e.$highlightTagPending=!1;var t=e.session;if(t&&t.bgTokenizer){var n=e.getCursorPosition(),r=new y(e.session,n.row,n.column),i=r.getCurrentToken();if(!i||!/\b(?:tag-open|tag-name)/.test(i.type))return t.removeMarker(t.$tagHighlight),void(t.$tagHighlight=null);if(-1===i.type.indexOf("tag-open")||(i=r.stepForward(),i)){var o=i.value,a=i.value,s=0,l=r.stepBackward();if("<"===l.value)do{l=i,i=r.stepForward(),i&&(-1!==i.type.indexOf("tag-name")?(a=i.value,o===a&&("<"===l.value?s++:""===i.value&&s--)}while(i&&s>=0);else{do{if(i=l,l=r.stepBackward(),i)if(-1!==i.type.indexOf("tag-name"))o===i.value&&("<"===l.value?s++:""===i.value){var c=0,u=l;while(u){if(-1!==u.type.indexOf("tag-name")&&u.value===o){s--;break}if("<"===u.value)break;u=r.stepBackward(),c++}for(var h=0;h1||(e=!1)),t.$highlightLineMarker&&!e)t.removeMarker(t.$highlightLineMarker.id),t.$highlightLineMarker=null;else if(!t.$highlightLineMarker&&e){var n=new d(e.row,e.column,e.row,1/0);n.id=t.addMarker(n,"ace_active-line","screenLine"),t.$highlightLineMarker=n}else e&&(t.$highlightLineMarker.start.row=e.row,t.$highlightLineMarker.end.row=e.row,t.$highlightLineMarker.start.column=e.column,t._signal("changeBackMarker"))},this.onSelectionChange=function(e){var t=this.session;if(t.$selectionMarker&&t.removeMarker(t.$selectionMarker),t.$selectionMarker=null,this.selection.isEmpty())this.$updateHighlightActiveLine();else{var n=this.selection.getRange(),r=this.getSelectionStyle();t.$selectionMarker=t.addMarker(n,"ace_selection",r)}var i=this.$highlightSelectedWord&&this.$getSelectionHighLightRegexp();this.session.highlight(i),this._signal("changeSelection")},this.$getSelectionHighLightRegexp=function(){var e=this.session,t=this.getSelectionRange();if(!t.isEmpty()&&!t.isMultiLine()){var n=t.start.column,r=t.end.column,i=e.getLine(t.start.row),o=i.substring(n,r);if(!(o.length>5e3)&&/[\w\d]/.test(o)){var a=this.$search.$assembleRegExp({wholeWord:!0,caseSensitive:!0,needle:o}),s=i.substring(n-1,r+1);if(a.test(s))return a}}},this.onChangeFrontMarker=function(){this.renderer.updateFrontMarkers()},this.onChangeBackMarker=function(){this.renderer.updateBackMarkers()},this.onChangeBreakpoint=function(){this.renderer.updateBreakpoints()},this.onChangeAnnotation=function(){this.renderer.setAnnotations(this.session.getAnnotations())},this.onChangeMode=function(e){this.renderer.updateText(),this._emit("changeMode",e)},this.onChangeWrapLimit=function(){this.renderer.updateFull()},this.onChangeWrapMode=function(){this.renderer.onResize(!0)},this.onChangeFold=function(){this.$updateHighlightActiveLine(),this.renderer.updateFull()},this.getSelectedText=function(){return this.session.getTextRange(this.getSelectionRange())},this.getCopyText=function(){var e=this.getSelectedText(),t=this.session.doc.getNewLineCharacter(),n=!1;if(!e&&this.$copyWithEmptySelection){n=!0;for(var r=this.selection.getAllRanges(),i=0;is.search(/\S|$/)){var l=s.substr(i.column).search(/\S|$/);n.doc.removeInLine(i.row,i.column,i.column+l)}}this.clearSelection();var c=i.column,u=n.getState(i.row),h=(s=n.getLine(i.row),r.checkOutdent(u,s,e));if(n.insert(i,e),o&&o.selection&&(2==o.selection.length?this.selection.setSelectionRange(new d(i.row,c+o.selection[0],i.row,c+o.selection[1])):this.selection.setSelectionRange(new d(i.row+o.selection[0],o.selection[1],i.row+o.selection[2],o.selection[3]))),this.$enableAutoIndent){if(n.getDocument().isNewLine(e)){var f=r.getNextLineIndent(u,s.slice(0,i.column),n.getTabString());n.insert({row:i.row+1,column:0},f)}h&&r.autoOutdent(u,n,i.row)}},this.autoIndent=function(){var e,t,n=this.session,r=n.getMode();if(this.selection.isEmpty())e=0,t=n.doc.getLength()-1;else{var i=this.getSelectionRange();e=i.start.row,t=i.end.row}for(var o,a,s,l="",c="",u="",h=n.getTabString(),f=e;f<=t;f++)f>0&&(l=n.getState(f-1),c=n.getLine(f-1),u=r.getNextLineIndent(l,c,h)),o=n.getLine(f),a=r.$getIndent(o),u!==a&&(a.length>0&&(s=new d(f,0,f,a.length),n.remove(s)),u.length>0&&n.insert({row:f,column:0},u)),r.autoOutdent(l,n,f)},this.onTextInput=function(e,t){if(!t)return this.keyBinding.onTextInput(e);this.startOperation({command:{name:"insertstring"}});var n=this.applyComposition.bind(this,e,t);this.selection.rangeCount?this.forEachSelection(n):n(),this.endOperation()},this.applyComposition=function(e,t){if(t.extendLeft||t.extendRight){var n=this.selection.getRange();n.start.column-=t.extendLeft,n.end.column+=t.extendRight,n.start.column<0&&(n.start.row--,n.start.column+=this.session.getLine(n.start.row).length+1),this.selection.setRange(n),e||n.isEmpty()||this.remove()}if(!e&&this.selection.isEmpty()||this.insert(e,!0),t.restoreStart||t.restoreEnd){n=this.selection.getRange();n.start.column-=t.restoreStart,n.end.column-=t.restoreEnd,this.selection.setRange(n)}},this.onCommandKey=function(e,t,n){return this.keyBinding.onCommandKey(e,t,n)},this.setOverwrite=function(e){this.session.setOverwrite(e)},this.getOverwrite=function(){return this.session.getOverwrite()},this.toggleOverwrite=function(){this.session.toggleOverwrite()},this.setScrollSpeed=function(e){this.setOption("scrollSpeed",e)},this.getScrollSpeed=function(){return this.getOption("scrollSpeed")},this.setDragDelay=function(e){this.setOption("dragDelay",e)},this.getDragDelay=function(){return this.getOption("dragDelay")},this.setSelectionStyle=function(e){this.setOption("selectionStyle",e)},this.getSelectionStyle=function(){return this.getOption("selectionStyle")},this.setHighlightActiveLine=function(e){this.setOption("highlightActiveLine",e)},this.getHighlightActiveLine=function(){return this.getOption("highlightActiveLine")},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.setHighlightSelectedWord=function(e){this.setOption("highlightSelectedWord",e)},this.getHighlightSelectedWord=function(){return this.$highlightSelectedWord},this.setAnimatedScroll=function(e){this.renderer.setAnimatedScroll(e)},this.getAnimatedScroll=function(){return this.renderer.getAnimatedScroll()},this.setShowInvisibles=function(e){this.renderer.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.renderer.getShowInvisibles()},this.setDisplayIndentGuides=function(e){this.renderer.setDisplayIndentGuides(e)},this.getDisplayIndentGuides=function(){return this.renderer.getDisplayIndentGuides()},this.setShowPrintMargin=function(e){this.renderer.setShowPrintMargin(e)},this.getShowPrintMargin=function(){return this.renderer.getShowPrintMargin()},this.setPrintMarginColumn=function(e){this.renderer.setPrintMarginColumn(e)},this.getPrintMarginColumn=function(){return this.renderer.getPrintMarginColumn()},this.setReadOnly=function(e){this.setOption("readOnly",e)},this.getReadOnly=function(){return this.getOption("readOnly")},this.setBehavioursEnabled=function(e){this.setOption("behavioursEnabled",e)},this.getBehavioursEnabled=function(){return this.getOption("behavioursEnabled")},this.setWrapBehavioursEnabled=function(e){this.setOption("wrapBehavioursEnabled",e)},this.getWrapBehavioursEnabled=function(){return this.getOption("wrapBehavioursEnabled")},this.setShowFoldWidgets=function(e){this.setOption("showFoldWidgets",e)},this.getShowFoldWidgets=function(){return this.getOption("showFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.remove=function(e){this.selection.isEmpty()&&("left"==e?this.selection.selectLeft():this.selection.selectRight());var t=this.getSelectionRange();if(this.getBehavioursEnabled()){var n=this.session,r=n.getState(t.start.row),i=n.getMode().transformAction(r,"deletion",this,n,t);if(0===t.end.column){var o=n.getTextRange(t);if("\n"==o[o.length-1]){var a=n.getLine(t.end.row);/^\s+$/.test(a)&&(t.end.column=a.length)}}i&&(t=i)}this.session.remove(t),this.clearSelection()},this.removeWordRight=function(){this.selection.isEmpty()&&this.selection.selectWordRight(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeWordLeft=function(){this.selection.isEmpty()&&this.selection.selectWordLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineStart=function(){this.selection.isEmpty()&&this.selection.selectLineStart(),this.selection.isEmpty()&&this.selection.selectLeft(),this.session.remove(this.getSelectionRange()),this.clearSelection()},this.removeToLineEnd=function(){this.selection.isEmpty()&&this.selection.selectLineEnd();var e=this.getSelectionRange();e.start.column==e.end.column&&e.start.row==e.end.row&&(e.end.column=0,e.end.row++),this.session.remove(e),this.clearSelection()},this.splitLine=function(){this.selection.isEmpty()||(this.session.remove(this.getSelectionRange()),this.clearSelection());var e=this.getCursorPosition();this.insert("\n"),this.moveCursorToPosition(e)},this.transposeLetters=function(){if(this.selection.isEmpty()){var e=this.getCursorPosition(),t=e.column;if(0!==t){var n,r,i=this.session.getLine(e.row);tt.toLowerCase()?1:0});var i=new d(0,0,0,0);for(r=e.first;r<=e.last;r++){var o=t.getLine(r);i.start.row=r,i.end.row=r,i.end.column=o.length,t.replace(i,n[r-e.first])}},this.toggleCommentLines=function(){var e=this.session.getState(this.getCursorPosition().row),t=this.$getSelectedRows();this.session.getMode().toggleCommentLines(e,this.session,t.first,t.last)},this.toggleBlockComment=function(){var e=this.getCursorPosition(),t=this.session.getState(e.row),n=this.getSelectionRange();this.session.getMode().toggleBlockComment(t,this.session,n,e)},this.getNumberAt=function(e,t){var n=/[\-]?[0-9]+(?:\.[0-9]+)?/g;n.lastIndex=0;var r=this.session.getLine(e);while(n.lastIndex=t){var o={value:i[0],start:i.index,end:i.index+i[0].length};return o}}return null},this.modifyNumber=function(e){var t=this.selection.getCursor().row,n=this.selection.getCursor().column,r=new d(t,n-1,t,n),i=this.session.getTextRange(r);if(!isNaN(parseFloat(i))&&isFinite(i)){var o=this.getNumberAt(t,n);if(o){var a=o.value.indexOf(".")>=0?o.start+o.value.indexOf(".")+1:o.end,s=o.start+o.value.length-a,l=parseFloat(o.value);l*=Math.pow(10,s),a!==o.end&&n=s&&a<=l&&(n=t,c.selection.clearSelection(),c.moveCursorTo(e,s+r),c.selection.selectTo(e,l+r)),s=l});for(var u,h=this.$toggleWordPairs,f=0;fd+1)break;d=p.last}u--,s=this.session.$moveLines(f,d,t?0:e),t&&-1==e&&(h=u+1);while(h<=u)a[h].moveBy(s,0),h++;t||(s=0),l+=s}i.fromOrientedRange(i.ranges[0]),i.rangeList.attach(this.session),this.inVirtualSelectionMode=!1}},this.$getSelectedRows=function(e){return e=(e||this.getSelectionRange()).collapseRows(),{first:this.session.getRowFoldStart(e.start.row),last:this.session.getRowFoldEnd(e.end.row)}},this.onCompositionStart=function(e){this.renderer.showComposition(e)},this.onCompositionUpdate=function(e){this.renderer.setCompositionText(e)},this.onCompositionEnd=function(){this.renderer.hideComposition()},this.getFirstVisibleRow=function(){return this.renderer.getFirstVisibleRow()},this.getLastVisibleRow=function(){return this.renderer.getLastVisibleRow()},this.isRowVisible=function(e){return e>=this.getFirstVisibleRow()&&e<=this.getLastVisibleRow()},this.isRowFullyVisible=function(e){return e>=this.renderer.getFirstFullyVisibleRow()&&e<=this.renderer.getLastFullyVisibleRow()},this.$getVisibleRowCount=function(){return this.renderer.getScrollBottomRow()-this.renderer.getScrollTopRow()+1},this.$moveByPage=function(e,t){var n=this.renderer,r=this.renderer.layerConfig,i=e*Math.floor(r.height/r.lineHeight);!0===t?this.selection.$moveSelection(function(){this.moveCursorBy(i,0)}):!1===t&&(this.selection.moveCursorBy(i,0),this.selection.clearSelection());var o=n.scrollTop;n.scrollBy(0,i*r.lineHeight),null!=t&&n.scrollCursorIntoView(null,.5),n.animateScrolling(o)},this.selectPageDown=function(){this.$moveByPage(1,!0)},this.selectPageUp=function(){this.$moveByPage(-1,!0)},this.gotoPageDown=function(){this.$moveByPage(1,!1)},this.gotoPageUp=function(){this.$moveByPage(-1,!1)},this.scrollPageDown=function(){this.$moveByPage(1)},this.scrollPageUp=function(){this.$moveByPage(-1)},this.scrollToRow=function(e){this.renderer.scrollToRow(e)},this.scrollToLine=function(e,t,n,r){this.renderer.scrollToLine(e,t,n,r)},this.centerSelection=function(){var e=this.getSelectionRange(),t={row:Math.floor(e.start.row+(e.end.row-e.start.row)/2),column:Math.floor(e.start.column+(e.end.column-e.start.column)/2)};this.renderer.alignCursor(t,.5)},this.getCursorPosition=function(){return this.selection.getCursor()},this.getCursorPositionScreen=function(){return this.session.documentToScreenPosition(this.getCursorPosition())},this.getSelectionRange=function(){return this.selection.getRange()},this.selectAll=function(){this.selection.selectAll()},this.clearSelection=function(){this.selection.clearSelection()},this.moveCursorTo=function(e,t){this.selection.moveCursorTo(e,t)},this.moveCursorToPosition=function(e){this.selection.moveCursorToPosition(e)},this.jumpToMatching=function(e,t){var n=this.getCursorPosition(),r=new y(this.session,n.row,n.column),i=r.getCurrentToken(),o=i||r.stepForward();if(o){var a,s,l=!1,c={},u=n.column-o.start,h={")":"(","(":"(","]":"[","[":"[","{":"{","}":"{"};do{if(o.value.match(/[{}()\[\]]/g)){for(;u=0;--o)this.$tryReplace(n[o],e)&&r++;return this.selection.setSelectionRange(i),r},this.$tryReplace=function(e,t){var n=this.session.getTextRange(e);return t=this.$search.replace(n,t),null!==t?(e.end=this.session.replace(e,t),e):null},this.getLastSearchOptions=function(){return this.$search.getOptions()},this.find=function(e,t,n){t||(t={}),"string"==typeof e||e instanceof RegExp?t.needle=e:"object"==typeof e&&r.mixin(t,e);var i=this.selection.getRange();null==t.needle&&(e=this.session.getTextRange(i)||this.$search.$options.needle,e||(i=this.session.getWordRange(i.start.row,i.start.column),e=this.session.getTextRange(i)),this.$search.set({needle:e})),this.$search.set(t),t.start||this.$search.set({start:i});var o=this.$search.find(this.session);return t.preventScroll?o:o?(this.revealRange(o,n),o):(t.backwards?i.start=i.end:i.end=i.start,void this.selection.setRange(i))},this.findNext=function(e,t){this.find({skipCurrent:!0,backwards:!1},e,t)},this.findPrevious=function(e,t){this.find(e,{skipCurrent:!0,backwards:!0},t)},this.revealRange=function(e,t){this.session.unfold(e),this.selection.setSelectionRange(e);var n=this.renderer.scrollTop;this.renderer.scrollSelectionIntoView(e.start,e.end,.5),!1!==t&&this.renderer.animateScrolling(n)},this.undo=function(){this.session.getUndoManager().undo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.redo=function(){this.session.getUndoManager().redo(this.session),this.renderer.scrollCursorIntoView(null,.5)},this.destroy=function(){this.$toDestroy&&(this.$toDestroy.forEach(function(e){e.destroy()}),this.$toDestroy=null),this.$mouseHandler&&this.$mouseHandler.destroy(),this.renderer.destroy(),this._signal("destroy",this),this.session&&this.session.destroy(),this._$emitInputEvent&&this._$emitInputEvent.cancel(),this.removeAllListeners()},this.setAutoScrollEditorIntoView=function(e){if(e){var t,n=this,r=!1;this.$scrollAnchor||(this.$scrollAnchor=document.createElement("div"));var i=this.$scrollAnchor;i.style.cssText="position:absolute",this.container.insertBefore(i,this.container.firstChild);var o=this.on("changeSelection",function(){r=!0}),a=this.renderer.on("beforeRender",function(){r&&(t=n.renderer.container.getBoundingClientRect())}),s=this.renderer.on("afterRender",function(){if(r&&t&&(n.isFocused()||n.searchBox&&n.searchBox.isFocused())){var e=n.renderer,o=e.$cursorLayer.$pixelPos,a=e.layerConfig,s=o.top-a.offset;r=o.top>=0&&s+t.top<0||!(o.topwindow.innerHeight)&&null,null!=r&&(i.style.top=s+"px",i.style.left=o.left+"px",i.style.height=a.lineHeight+"px",i.scrollIntoView(r)),r=t=null}});this.setAutoScrollEditorIntoView=function(e){e||(delete this.setAutoScrollEditorIntoView,this.off("changeSelection",o),this.renderer.off("afterRender",s),this.renderer.off("beforeRender",a))}}},this.$resetCursorStyle=function(){var e=this.$cursorStyle||"ace",t=this.renderer.$cursorLayer;t&&(t.setSmoothBlinking(/smooth/.test(e)),t.isBlinking=!this.$readOnly&&"wide"!=e,i.setCssClass(t.element,"ace_slim-cursors",/slim/.test(e)))},this.prompt=function(e,t,n){var r=this;v.loadModule("./ext/prompt",function(i){i.prompt(r,e,t,n)})}}.call(w.prototype),v.defineOptions(w.prototype,"editor",{selectionStyle:{set:function(e){this.onSelectionChange(),this._signal("changeSelectionStyle",{data:e})},initialValue:"line"},highlightActiveLine:{set:function(){this.$updateHighlightActiveLine()},initialValue:!0},highlightSelectedWord:{set:function(e){this.$onSelectionChange()},initialValue:!0},readOnly:{set:function(e){this.textInput.setReadOnly(e),this.$resetCursorStyle()},initialValue:!1},copyWithEmptySelection:{set:function(e){this.textInput.setCopyWithEmptySelection(e)},initialValue:!1},cursorStyle:{set:function(e){this.$resetCursorStyle()},values:["ace","slim","smooth","wide"],initialValue:"ace"},mergeUndoDeltas:{values:[!1,!0,"always"],initialValue:!0},behavioursEnabled:{initialValue:!0},wrapBehavioursEnabled:{initialValue:!0},enableAutoIndent:{initialValue:!0},autoScrollEditorIntoView:{set:function(e){this.setAutoScrollEditorIntoView(e)}},keyboardHandler:{set:function(e){this.setKeyboardHandler(e)},get:function(){return this.$keybindingId},handlesSet:!0},value:{set:function(e){this.session.setValue(e)},get:function(){return this.getValue()},handlesSet:!0,hidden:!0},session:{set:function(e){this.setSession(e)},get:function(){return this.session},handlesSet:!0,hidden:!0},showLineNumbers:{set:function(e){this.renderer.$gutterLayer.setShowLineNumbers(e),this.renderer.$loop.schedule(this.renderer.CHANGE_GUTTER),e&&this.$relativeLineNumbers?x.attach(this):x.detach(this)},initialValue:!0},relativeLineNumbers:{set:function(e){this.$showLineNumbers&&e?x.attach(this):x.detach(this)}},placeholder:{set:function(e){this.$updatePlaceholder||(this.$updatePlaceholder=function(){var e=this.session&&(this.renderer.$composition||this.getValue());if(e&&this.renderer.placeholderNode)this.renderer.off("afterRender",this.$updatePlaceholder),i.removeCssClass(this.container,"ace_hasPlaceholder"),this.renderer.placeholderNode.remove(),this.renderer.placeholderNode=null;else if(e||this.renderer.placeholderNode)!e&&this.renderer.placeholderNode&&(this.renderer.placeholderNode.textContent=this.$placeholder||"");else{this.renderer.on("afterRender",this.$updatePlaceholder),i.addCssClass(this.container,"ace_hasPlaceholder");var t=i.createElement("div");t.className="ace_placeholder",t.textContent=this.$placeholder||"",this.renderer.placeholderNode=t,this.renderer.content.appendChild(this.renderer.placeholderNode)}}.bind(this),this.on("input",this.$updatePlaceholder)),this.$updatePlaceholder()}},hScrollBarAlwaysVisible:"renderer",vScrollBarAlwaysVisible:"renderer",highlightGutterLine:"renderer",animatedScroll:"renderer",showInvisibles:"renderer",showPrintMargin:"renderer",printMarginColumn:"renderer",printMargin:"renderer",fadeFoldWidgets:"renderer",showFoldWidgets:"renderer",displayIndentGuides:"renderer",showGutter:"renderer",fontSize:"renderer",fontFamily:"renderer",maxLines:"renderer",minLines:"renderer",scrollPastEnd:"renderer",fixedWidthGutter:"renderer",theme:"renderer",hasCssTransforms:"renderer",maxPixelHeight:"renderer",useTextareaForIME:"renderer",scrollSpeed:"$mouseHandler",dragDelay:"$mouseHandler",dragEnabled:"$mouseHandler",focusTimeout:"$mouseHandler",tooltipFollowsMouse:"$mouseHandler",firstLineNumber:"session",overwrite:"session",newLineMode:"session",useWorker:"session",useSoftTabs:"session",navigateWithinSoftTabs:"session",tabSize:"session",wrap:"session",indentedSoftWrap:"session",foldStyle:"session",mode:"session"});var x={getText:function(e,t){return(Math.abs(e.selection.lead.row-t)||t+1+(t<9?"\xb7":""))+""},getWidth:function(e,t,n){return Math.max(t.toString().length,(n.lastRow+1).toString().length,2)*n.characterWidth},update:function(e,t){t.renderer.$loop.schedule(t.renderer.CHANGE_GUTTER)},attach:function(e){e.renderer.$gutterLayer.$renderer=this,e.on("changeSelection",this.update),this.update(null,e)},detach:function(e){e.renderer.$gutterLayer.$renderer==this&&(e.renderer.$gutterLayer.$renderer=null),e.off("changeSelection",this.update),this.update(null,e)}};t.Editor=w}),ace.define("ace/undomanager",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=function(){this.$maxRev=0,this.$fromUndo=!1,this.reset()};function i(e,t){for(var n=t;n--;){var r=e[n];if(r&&!r[0].ignore){while(n0},this.canRedo=function(){return this.$redoStack.length>0},this.bookmark=function(e){void 0==e&&(e=this.$rev),this.mark=e},this.isAtBookmark=function(){return this.$rev===this.mark},this.toJSON=function(){},this.fromJSON=function(){},this.hasUndo=this.canUndo,this.hasRedo=this.canRedo,this.isClean=this.isAtBookmark,this.markClean=this.bookmark,this.$prettyPrint=function(e){return e?c(e):c(this.$undoStack)+"\n---\n"+c(this.$redoStack)}}).call(r.prototype);var o=e("./range").Range,a=o.comparePoints;o.comparePoints;function s(e){return{row:e.row,column:e.column}}function l(e){return{start:s(e.start),end:s(e.end),action:e.action,lines:e.lines.slice()}}function c(e){if(e=e||this,Array.isArray(e))return e.map(c).join("\n");var t="";return e.action?(t="insert"==e.action?"+":"-",t+="["+e.lines+"]"):e.value&&(t=Array.isArray(e.value)?e.value.map(u).join("\n"):u(e.value)),e.start&&(t+=u(e)),(e.id||e.rev)&&(t+="\t("+(e.id||e.rev)+")"),t}function u(e){return e.start.row+":"+e.start.column+"=>"+e.end.row+":"+e.end.column}function h(e,t){var n="insert"==e.action,r="insert"==t.action;if(n&&r)if(a(t.start,e.end)>=0)p(t,e,-1);else{if(!(a(t.start,e.start)<=0))return null;p(e,t,1)}else if(n&&!r)if(a(t.start,e.end)>=0)p(t,e,-1);else{if(!(a(t.end,e.start)<=0))return null;p(e,t,-1)}else if(!n&&r)if(a(t.start,e.start)>=0)p(t,e,1);else{if(!(a(t.start,e.start)<=0))return null;p(e,t,1)}else if(!n&&!r)if(a(t.start,e.start)>=0)p(t,e,1);else{if(!(a(t.end,e.start)<=0))return null;p(e,t,-1)}return[t,e]}function f(e,t){for(var n=e.length;n--;)for(var r=0;r=0?p(e,t,-1):a(e.start,t.start)<=0?p(t,e,1):(p(e,o.fromPoints(t.start,e.start),-1),p(t,e,1));else if(!n&&r)a(t.start,e.end)>=0?p(t,e,-1):a(t.start,e.start)<=0?p(e,t,1):(p(t,o.fromPoints(e.start,t.start),-1),p(e,t,1));else if(!n&&!r)if(a(t.start,e.end)>=0)p(t,e,-1);else{var i,s;if(!(a(t.end,e.start)<=0))return a(e.start,t.start)<0&&(i=e,e=g(e,t.start)),a(e.end,t.end)>0&&(s=g(e,t.end)),m(t.end,e.start,e.end,-1),s&&!i&&(e.lines=s.lines,e.start=s.start,e.end=s.end,s=e),[t,i,s].filter(Boolean);p(e,t,-1)}return[t,e]}function p(e,t,n){m(e.start,t.start,t.end,n),m(e.end,t.start,t.end,n)}function m(e,t,n,r){e.row==(1==r?t:n).row&&(e.column+=r*(n.column-t.column)),e.row+=r*(n.row-t.row)}function g(e,t){var n=e.lines,r=e.end;e.end=s(t);var i=e.end.row-e.start.row,o=n.splice(i,n.length),a=i?t.column:t.column-e.start.column;n.push(o[0].substring(0,a)),o[0]=o[0].substr(a);var l={start:s(t),end:r,lines:o,action:e.action};return l}function v(e,t){t=l(t);for(var n=e.length;n--;){for(var r=e[n],i=0;io&&(l=i.end.row+1,i=t.getNextFoldLine(l,i),o=i?i.start.row:1/0),l>r){while(this.$lines.getLength()>s+1)this.$lines.pop();break}a=this.$lines.get(++s),a?a.row=l:(a=this.$lines.createCell(l,e,this.session,c),this.$lines.push(a)),this.$renderCell(a,e,i,l),l++}this._signal("afterRender"),this.$updateGutterWidth(e)},this.$updateGutterWidth=function(e){var t=this.session,n=t.gutterRenderer||this.$renderer,r=t.$firstLineNumber,i=this.$lines.last()?this.$lines.last().text:"";(this.$fixedWidth||t.$useWrapMode)&&(i=t.getLength()+r-1);var o=n?n.getWidth(t,i,e):i.toString().length*e.characterWidth,a=this.$padding||this.$computePadding();o+=a.left+a.right,o===this.gutterWidth||isNaN(o)||(this.gutterWidth=o,this.element.parentNode.style.width=this.element.style.width=Math.ceil(this.gutterWidth)+"px",this._signal("changeGutterWidth",o))},this.$updateCursorRow=function(){if(this.$highlightGutterLine){var e=this.session.selection.getCursor();this.$cursorRow!==e.row&&(this.$cursorRow=e.row)}},this.updateLineHighlight=function(){if(this.$highlightGutterLine){var e=this.session.selection.cursor.row;if(this.$cursorRow=e,!this.$cursorCell||this.$cursorCell.row!=e){this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ",""));var t=this.$lines.cells;this.$cursorCell=null;for(var n=0;n=this.$cursorRow){if(r.row>this.$cursorRow){var i=this.session.getFoldLine(this.$cursorRow);if(!(n>0&&i&&i.start.row==t[n-1].row))break;r=t[n-1]}r.element.className="ace_gutter-active-line "+r.element.className,this.$cursorCell=r;break}}}}},this.scrollLines=function(e){var t=this.config;if(this.config=e,this.$updateCursorRow(),this.$lines.pageChanged(t,e))return this.update(e);this.$lines.moveContainer(e);var n=Math.min(e.lastRow+e.gutterOffset,this.session.getLength()-1),r=this.oldLastRow;if(this.oldLastRow=n,!t||r0;i--)this.$lines.shift();if(r>n)for(i=this.session.getFoldedRowCount(n+1,r);i>0;i--)this.$lines.pop();e.firstRowr&&this.$lines.push(this.$renderLines(e,r+1,n)),this.updateLineHighlight(),this._signal("afterRender"),this.$updateGutterWidth(e)},this.$renderLines=function(e,t,n){var r=[],i=t,o=this.session.getNextFoldLine(i),a=o?o.start.row:1/0;while(1){if(i>a&&(i=o.end.row+1,o=this.session.getNextFoldLine(i,o),a=o?o.start.row:1/0),i>n)break;var s=this.$lines.createCell(i,e,this.session,c);this.$renderCell(s,e,o,i),r.push(s),i++}return r},this.$renderCell=function(e,t,n,i){var o=e.element,a=this.session,s=o.childNodes[0],l=o.childNodes[1],c=a.$firstLineNumber,u=a.$breakpoints,h=a.$decorations,f=a.gutterRenderer||this.$renderer,d=this.$showFoldWidgets&&a.foldWidgets,p=n?n.start.row:Number.MAX_VALUE,m="ace_gutter-cell ";if(this.$highlightGutterLine&&(i==this.$cursorRow||n&&i=p&&this.$cursorRow<=n.end.row)&&(m+="ace_gutter-active-line ",this.$cursorCell!=e&&(this.$cursorCell&&(this.$cursorCell.element.className=this.$cursorCell.element.className.replace("ace_gutter-active-line ","")),this.$cursorCell=e)),u[i]&&(m+=u[i]),h[i]&&(m+=h[i]),this.$annotations[i]&&(m+=this.$annotations[i].className),o.className!=m&&(o.className=m),d){var g=d[i];null==g&&(g=d[i]=a.getFoldWidget(i))}if(g){m="ace_fold-widget ace_"+g;"start"==g&&i==p&&in.right-t.right?"foldWidgets":void 0}}).call(l.prototype),t.Gutter=l}),ace.define("ace/layer/marker",["require","exports","module","ace/range","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../range").Range,i=e("../lib/dom"),o=function(e){this.element=i.createElement("div"),this.element.className="ace_layer ace_marker-layer",e.appendChild(this.element)};(function(){function e(e,t,n,r){return(e?1:0)|(t?2:0)|(n?4:0)|(r?8:0)}this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setMarkers=function(e){this.markers=e},this.elt=function(e,t){var n=-1!=this.i&&this.element.childNodes[this.i];n?this.i++:(n=document.createElement("div"),this.element.appendChild(n),this.i=-1),n.style.cssText=t,n.className=e},this.update=function(e){if(e){var t;for(var n in this.config=e,this.i=0,this.markers){var r=this.markers[n];if(r.range){var i=r.range.clipRows(e.firstRow,e.lastRow);if(!i.isEmpty())if(i=i.toScreenRange(this.session),r.renderer){var o=this.$getTop(i.start.row,e),a=this.$padding+i.start.column*e.characterWidth;r.renderer(t,i,a,o,e)}else"fullLine"==r.type?this.drawFullLineMarker(t,i,r.clazz,e):"screenLine"==r.type?this.drawScreenLineMarker(t,i,r.clazz,e):i.isMultiLine()?"text"==r.type?this.drawTextMarker(t,i,r.clazz,e):this.drawMultiLineMarker(t,i,r.clazz,e):this.drawSingleLineMarker(t,i,r.clazz+" ace_start ace_br15",e)}else r.update(t,this,this.session,e)}if(-1!=this.i)while(this.id,u==c),o,u==c?0:1,a)},this.drawMultiLineMarker=function(e,t,n,r,i){var o=this.$padding,a=r.lineHeight,s=this.$getTop(t.start.row,r),l=o+t.start.column*r.characterWidth;if(i=i||"",this.session.$bidiHandler.isBidiRow(t.start.row)){var c=t.clone();c.end.row=c.start.row,c.end.column=this.session.getLine(c.start.row).length,this.drawBidiSingleLineMarker(e,c,n+" ace_br1 ace_start",r,null,i)}else this.elt(n+" ace_br1 ace_start","height:"+a+"px;right:0;top:"+s+"px;left:"+l+"px;"+(i||""));if(this.session.$bidiHandler.isBidiRow(t.end.row)){c=t.clone();c.start.row=c.end.row,c.start.column=0,this.drawBidiSingleLineMarker(e,c,n+" ace_br12",r,null,i)}else{s=this.$getTop(t.end.row,r);var u=t.end.column*r.characterWidth;this.elt(n+" ace_br12","height:"+a+"px;width:"+u+"px;top:"+s+"px;left:"+o+"px;"+(i||""))}if(a=(t.end.row-t.start.row-1)*r.lineHeight,!(a<=0)){s=this.$getTop(t.start.row+1,r);var h=(t.start.column?1:0)|(t.end.column?0:8);this.elt(n+(h?" ace_br"+h:""),"height:"+a+"px;right:0;top:"+s+"px;left:"+o+"px;"+(i||""))}},this.drawSingleLineMarker=function(e,t,n,r,i,o){if(this.session.$bidiHandler.isBidiRow(t.start.row))return this.drawBidiSingleLineMarker(e,t,n,r,i,o);var a=r.lineHeight,s=(t.end.column+(i||0)-t.start.column)*r.characterWidth,l=this.$getTop(t.start.row,r),c=this.$padding+t.start.column*r.characterWidth;this.elt(n,"height:"+a+"px;width:"+s+"px;top:"+l+"px;left:"+c+"px;"+(o||""))},this.drawBidiSingleLineMarker=function(e,t,n,r,i,o){var a=r.lineHeight,s=this.$getTop(t.start.row,r),l=this.$padding,c=this.session.$bidiHandler.getSelections(t.start.column,t.end.column);c.forEach(function(e){this.elt(n,"height:"+a+"px;width:"+e.width+(i||0)+"px;top:"+s+"px;left:"+(l+e.left)+"px;"+(o||""))},this)},this.drawFullLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;t.start.row!=t.end.row&&(a+=this.$getTop(t.end.row,r)-o),this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))},this.drawScreenLineMarker=function(e,t,n,r,i){var o=this.$getTop(t.start.row,r),a=r.lineHeight;this.elt(n,"height:"+a+"px;top:"+o+"px;left:0;right:0;"+(i||""))}}).call(o.prototype),t.Marker=o}),ace.define("ace/layer/text",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/layer/lines","ace/lib/event_emitter"],function(e,t,n){"use strict";var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("./lines").Lines,s=e("../lib/event_emitter").EventEmitter,l=function(e){this.dom=i,this.element=this.dom.createElement("div"),this.element.className="ace_layer ace_text-layer",e.appendChild(this.element),this.$updateEolChar=this.$updateEolChar.bind(this),this.$lines=new a(this.element)};(function(){r.implement(this,s),this.EOF_CHAR="\xb6",this.EOL_CHAR_LF="\xac",this.EOL_CHAR_CRLF="\xa4",this.EOL_CHAR=this.EOL_CHAR_LF,this.TAB_CHAR="\u2014",this.SPACE_CHAR="\xb7",this.$padding=0,this.MAX_LINE_LENGTH=1e4,this.$updateEolChar=function(){var e=this.session.doc,t="\n"==e.getNewLineCharacter()&&"windows"!=e.getNewLineMode(),n=t?this.EOL_CHAR_LF:this.EOL_CHAR_CRLF;if(this.EOL_CHAR!=n)return this.EOL_CHAR=n,!0},this.setPadding=function(e){this.$padding=e,this.element.style.margin="0 "+e+"px"},this.getLineHeight=function(){return this.$fontMetrics.$characterSize.height||0},this.getCharacterWidth=function(){return this.$fontMetrics.$characterSize.width||0},this.$setFontMetrics=function(e){this.$fontMetrics=e,this.$fontMetrics.on("changeCharacterSize",function(e){this._signal("changeCharacterSize",e)}.bind(this)),this.$pollSizeChanges()},this.checkForSizeChanges=function(){this.$fontMetrics.checkForSizeChanges()},this.$pollSizeChanges=function(){return this.$pollSizeChangesTimer=this.$fontMetrics.$pollSizeChanges()},this.setSession=function(e){this.session=e,e&&this.$computeTabString()},this.showInvisibles=!1,this.showSpaces=!1,this.showTabs=!1,this.showEOL=!1,this.setShowInvisibles=function(e){return this.showInvisibles!=e&&(this.showInvisibles=e,"string"==typeof e?(this.showSpaces=/tab/i.test(e),this.showTabs=/space/i.test(e),this.showEOL=/eol/i.test(e)):this.showSpaces=this.showTabs=this.showEOL=e,this.$computeTabString(),!0)},this.displayIndentGuides=!0,this.setDisplayIndentGuides=function(e){return this.displayIndentGuides!=e&&(this.displayIndentGuides=e,this.$computeTabString(),!0)},this.$tabStrings=[],this.onChangeTabSize=this.$computeTabString=function(){var e=this.session.getTabSize();this.tabSize=e;for(var t=this.$tabStrings=[0],n=1;nu&&(s=l.end.row+1,l=this.session.getNextFoldLine(s,l),u=l?l.start.row:1/0),s>i)break;var h=o[a++];if(h){this.dom.removeChildren(h),this.$renderLine(h,s,s==u&&l),c&&(h.style.top=this.$lines.computeLineTop(s,e,this.session)+"px");var f=e.lineHeight*this.session.getRowLength(s)+"px";h.style.height!=f&&(c=!0,h.style.height=f)}s++}if(c)while(a0;i--)this.$lines.shift();if(t.lastRow>e.lastRow)for(i=this.session.getFoldedRowCount(e.lastRow+1,t.lastRow);i>0;i--)this.$lines.pop();e.firstRowt.lastRow&&this.$lines.push(this.$renderLinesFragment(e,t.lastRow+1,e.lastRow))},this.$renderLinesFragment=function(e,t,n){var r=[],o=t,a=this.session.getNextFoldLine(o),s=a?a.start.row:1/0;while(1){if(o>s&&(o=a.end.row+1,a=this.session.getNextFoldLine(o,a),s=a?a.start.row:1/0),o>n)break;var l=this.$lines.createCell(o,e,this.session),c=l.element;this.dom.removeChildren(c),i.setStyle(c.style,"height",this.$lines.computeLineHeight(o,e,this.session)+"px"),i.setStyle(c.style,"top",this.$lines.computeLineTop(o,e,this.session)+"px"),this.$renderLine(c,o,o==s&&a),this.$useLineGroups()?c.className="ace_line_group":c.className="ace_line",r.push(l),o++}return r},this.update=function(e){this.$lines.moveContainer(e),this.config=e;var t=e.firstRow,n=e.lastRow,r=this.$lines;while(r.getLength())r.pop();r.push(this.$renderLinesFragment(e,t,n))},this.$textToken={text:!0,rparen:!0,lparen:!0},this.$renderToken=function(e,t,n,r){var i,a=this,s=/(\t)|( +)|([\x00-\x1f\x80-\xa0\xad\u1680\u180E\u2000-\u200f\u2028\u2029\u202F\u205F\uFEFF\uFFF9-\uFFFC]+)|(\u3000)|([\u1100-\u115F\u11A3-\u11A7\u11FA-\u11FF\u2329-\u232A\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3001-\u303E\u3041-\u3096\u3099-\u30FF\u3105-\u312D\u3131-\u318E\u3190-\u31BA\u31C0-\u31E3\u31F0-\u321E\u3220-\u3247\u3250-\u32FE\u3300-\u4DBF\u4E00-\uA48C\uA490-\uA4C6\uA960-\uA97C\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFAFF\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE66\uFE68-\uFE6B\uFF01-\uFF60\uFFE0-\uFFE6]|[\uD800-\uDBFF][\uDC00-\uDFFF])/g,l=this.dom.createFragment(this.element),c=0;while(i=s.exec(r)){var u=i[1],h=i[2],f=i[3],d=i[4],p=i[5];if(a.showSpaces||!h){var m=c!=i.index?r.slice(c,i.index):"";if(c=i.index+i[0].length,m&&l.appendChild(this.dom.createTextNode(m,this.element)),u){var g=a.session.getScreenTabSize(t+i.index);l.appendChild(a.$tabStrings[g].cloneNode(!0)),t+=g-1}else if(h)if(a.showSpaces){var v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_space",v.textContent=o.stringRepeat(a.SPACE_CHAR,h.length),l.appendChild(v)}else l.appendChild(this.com.createTextNode(h,this.element));else if(f){v=this.dom.createElement("span");v.className="ace_invisible ace_invisible_space ace_invalid",v.textContent=o.stringRepeat(a.SPACE_CHAR,f.length),l.appendChild(v)}else if(d){t+=1;v=this.dom.createElement("span");v.style.width=2*a.config.characterWidth+"px",v.className=a.showSpaces?"ace_cjk ace_invisible ace_invisible_space":"ace_cjk",v.textContent=a.showSpaces?a.SPACE_CHAR:d,l.appendChild(v)}else if(p){t+=1;v=this.dom.createElement("span");v.style.width=2*a.config.characterWidth+"px",v.className="ace_cjk",v.textContent=p,l.appendChild(v)}}}if(l.appendChild(this.dom.createTextNode(c?r.slice(c):r,this.element)),this.$textToken[n.type])e.appendChild(l);else{var y="ace_"+n.type.replace(/\./g," ace_");v=this.dom.createElement("span");"fold"==n.type&&(v.style.width=n.value.length*this.config.characterWidth+"px"),v.className=y,v.appendChild(l),e.appendChild(v)}return t+r.length},this.renderIndentGuide=function(e,t,n){var r=t.search(this.$indentGuideRe);if(r<=0||r>=n)return t;if(" "==t[0]){r-=r%this.tabSize;for(var i=r/this.tabSize,o=0;o=a)s=this.$renderToken(l,s,u,h.substring(0,a-r)),h=h.substring(a-r),r=a,l=this.$createLineElement(),e.appendChild(l),l.appendChild(this.dom.createTextNode(o.stringRepeat("\xa0",n.indent),this.element)),i++,s=0,a=n[i]||Number.MAX_VALUE;0!=h.length&&(r+=h.length,s=this.$renderToken(l,s,u,h))}}n[n.length-1]>this.MAX_LINE_LENGTH&&this.$renderOverflowMessage(l,s,null,"",!0)},this.$renderSimpleLine=function(e,t){var n=0,r=t[0],i=r.value;this.displayIndentGuides&&(i=this.renderIndentGuide(e,i)),i&&(n=this.$renderToken(e,n,r,i));for(var o=1;othis.MAX_LINE_LENGTH)return this.$renderOverflowMessage(e,n,r,i);n=this.$renderToken(e,n,r,i)}},this.$renderOverflowMessage=function(e,t,n,r,i){n&&this.$renderToken(e,t,n,r.slice(0,this.MAX_LINE_LENGTH-t));var o=this.dom.createElement("span");o.className="ace_inline_button ace_keyword ace_toggle_wrap",o.textContent=i?"":"",e.appendChild(o)},this.$renderLine=function(e,t,n){if(n||0==n||(n=this.session.getFoldLine(t)),n)var r=this.$getFoldLineTokens(t,n);else r=this.session.getTokens(t);var i=e;if(r.length){var o=this.session.getRowSplitData(t);if(o&&o.length){this.$renderWrappedLine(e,r,o);i=e.lastChild}else{i=e;this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i)),this.$renderSimpleLine(i,r)}}else this.$useLineGroups()&&(i=this.$createLineElement(),e.appendChild(i));if(this.showEOL&&i){n&&(t=n.end.row);var a=this.dom.createElement("span");a.className="ace_invisible ace_invisible_eol",a.textContent=t==this.session.getLength()-1?this.EOF_CHAR:this.EOL_CHAR,i.appendChild(a)}},this.$getFoldLineTokens=function(e,t){var n=this.session,r=[];function i(e,t,n){var i=0,o=0;while(o+e[i].value.lengthn-t&&(a=a.substring(0,n-t)),r.push({type:e[i].type,value:a}),o=t+a.length,i+=1}while(on?r.push({type:e[i].type,value:a.substring(0,n-o)}):r.push(e[i]),o+=a.length,i+=1}}var o=n.getTokens(e);return t.walk(function(e,t,a,s,l){null!=e?r.push({type:"fold",value:e}):(l&&(o=n.getTokens(t)),o.length&&i(o,s,a))},t.end.row,this.session.getLine(t.end.row).length),r},this.$useLineGroups=function(){return this.session.getUseWrapMode()},this.destroy=function(){}}).call(l.prototype),t.Text=l}),ace.define("ace/layer/cursor",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("../lib/dom"),i=function(e){this.element=r.createElement("div"),this.element.className="ace_layer ace_cursor-layer",e.appendChild(this.element),this.isVisible=!1,this.isBlinking=!0,this.blinkInterval=1e3,this.smoothBlinking=!1,this.cursors=[],this.cursor=this.addCursor(),r.addCssClass(this.element,"ace_hidden-cursors"),this.$updateCursors=this.$updateOpacity.bind(this)};(function(){this.$updateOpacity=function(e){for(var t=this.cursors,n=t.length;n--;)r.setStyle(t[n].style,"opacity",e?"":"0")},this.$startCssAnimation=function(){for(var e=this.cursors,t=e.length;t--;)e[t].style.animationDuration=this.blinkInterval+"ms";this.$isAnimating=!0,setTimeout(function(){this.$isAnimating&&r.addCssClass(this.element,"ace_animate-blinking")}.bind(this))},this.$stopCssAnimation=function(){this.$isAnimating=!1,r.removeCssClass(this.element,"ace_animate-blinking")},this.$padding=0,this.setPadding=function(e){this.$padding=e},this.setSession=function(e){this.session=e},this.setBlinking=function(e){e!=this.isBlinking&&(this.isBlinking=e,this.restartTimer())},this.setBlinkInterval=function(e){e!=this.blinkInterval&&(this.blinkInterval=e,this.restartTimer())},this.setSmoothBlinking=function(e){e!=this.smoothBlinking&&(this.smoothBlinking=e,r.setCssClass(this.element,"ace_smooth-blinking",e),this.$updateCursors(!0),this.restartTimer())},this.addCursor=function(){var e=r.createElement("div");return e.className="ace_cursor",this.element.appendChild(e),this.cursors.push(e),e},this.removeCursor=function(){if(this.cursors.length>1){var e=this.cursors.pop();return e.parentNode.removeChild(e),e}},this.hideCursor=function(){this.isVisible=!1,r.addCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.showCursor=function(){this.isVisible=!0,r.removeCssClass(this.element,"ace_hidden-cursors"),this.restartTimer()},this.restartTimer=function(){var e=this.$updateCursors;if(clearInterval(this.intervalId),clearTimeout(this.timeoutId),this.$stopCssAnimation(),this.smoothBlinking&&(this.$isSmoothBlinking=!1,r.removeCssClass(this.element,"ace_smooth-blinking")),e(!0),this.isBlinking&&this.blinkInterval&&this.isVisible)if(this.smoothBlinking&&(this.$isSmoothBlinking=!0,setTimeout(function(){this.$isSmoothBlinking&&r.addCssClass(this.element,"ace_smooth-blinking")}.bind(this))),r.HAS_CSS_ANIMATION)this.$startCssAnimation();else{var t=function(){this.timeoutId=setTimeout(function(){e(!1)},.6*this.blinkInterval)}.bind(this);this.intervalId=setInterval(function(){e(!0),t()},this.blinkInterval),t()}else this.$stopCssAnimation()},this.getPixelPosition=function(e,t){if(!this.config||!this.session)return{left:0,top:0};e||(e=this.session.selection.getCursor());var n=this.session.documentToScreenPosition(e),r=this.$padding+(this.session.$bidiHandler.isBidiRow(n.row,e.row)?this.session.$bidiHandler.getPosLeft(n.column):n.column*this.config.characterWidth),i=(n.row-(t?this.config.firstRowScreen:0))*this.config.lineHeight;return{left:r,top:i}},this.isCursorInView=function(e,t){return e.top>=0&&e.tope.height+e.offset||a.top<0)&&n>1)){var s=this.cursors[i++]||this.addCursor(),l=s.style;this.drawCursor?this.drawCursor(s,a,e,t[n],this.session):this.isCursorInView(a,e)?(r.setStyle(l,"display","block"),r.translate(s,a.left,a.top),r.setStyle(l,"width",Math.round(e.characterWidth)+"px"),r.setStyle(l,"height",e.lineHeight+"px")):r.setStyle(l,"display","none")}}while(this.cursors.length>i)this.removeCursor();var c=this.session.getOverwrite();this.$setOverwrite(c),this.$pixelPos=a,this.restartTimer()},this.drawCursor=null,this.$setOverwrite=function(e){e!=this.overwrite&&(this.overwrite=e,e?r.addCssClass(this.element,"ace_overwrite-cursors"):r.removeCssClass(this.element,"ace_overwrite-cursors"))},this.destroy=function(){clearInterval(this.intervalId),clearTimeout(this.timeoutId)}}).call(i.prototype),t.Cursor=i}),ace.define("ace/scrollbar",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/event","ace/lib/event_emitter"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./lib/event"),a=e("./lib/event_emitter").EventEmitter,s=32768,l=function(e){this.element=i.createElement("div"),this.element.className="ace_scrollbar ace_scrollbar"+this.classSuffix,this.inner=i.createElement("div"),this.inner.className="ace_scrollbar-inner",this.inner.textContent="\xa0",this.element.appendChild(this.inner),e.appendChild(this.element),this.setVisible(!1),this.skipEvent=!1,o.addListener(this.element,"scroll",this.onScroll.bind(this)),o.addListener(this.element,"mousedown",o.preventDefault)};(function(){r.implement(this,a),this.setVisible=function(e){this.element.style.display=e?"":"none",this.isVisible=e,this.coeff=1}}).call(l.prototype);var c=function(e,t){l.call(this,e),this.scrollTop=0,this.scrollHeight=0,t.$scrollbarWidth=this.width=i.scrollbarWidth(e.ownerDocument),this.inner.style.width=this.element.style.width=(this.width||15)+5+"px",this.$minWidth=0};r.inherits(c,l),function(){this.classSuffix="-v",this.onScroll=function(){if(!this.skipEvent){if(this.scrollTop=this.element.scrollTop,1!=this.coeff){var e=this.element.clientHeight/this.scrollHeight;this.scrollTop=this.scrollTop*(1-e)/(this.coeff-e)}this._emit("scroll",{data:this.scrollTop})}this.skipEvent=!1},this.getWidth=function(){return Math.max(this.isVisible?this.width:0,this.$minWidth||0)},this.setHeight=function(e){this.element.style.height=e+"px"},this.setInnerHeight=this.setScrollHeight=function(e){this.scrollHeight=e,e>s?(this.coeff=s/e,e=s):1!=this.coeff&&(this.coeff=1),this.inner.style.height=e+"px"},this.setScrollTop=function(e){this.scrollTop!=e&&(this.skipEvent=!0,this.scrollTop=e,this.element.scrollTop=e*this.coeff)}}.call(c.prototype);var u=function(e,t){l.call(this,e),this.scrollLeft=0,this.height=t.$scrollbarWidth,this.inner.style.height=this.element.style.height=(this.height||15)+5+"px"};r.inherits(u,l),function(){this.classSuffix="-h",this.onScroll=function(){this.skipEvent||(this.scrollLeft=this.element.scrollLeft,this._emit("scroll",{data:this.scrollLeft})),this.skipEvent=!1},this.getHeight=function(){return this.isVisible?this.height:0},this.setWidth=function(e){this.element.style.width=e+"px"},this.setInnerWidth=function(e){this.inner.style.width=e+"px"},this.setScrollWidth=function(e){this.inner.style.width=e+"px"},this.setScrollLeft=function(e){this.scrollLeft!=e&&(this.skipEvent=!0,this.scrollLeft=this.element.scrollLeft=e)}}.call(u.prototype),t.ScrollBar=c,t.ScrollBarV=c,t.ScrollBarH=u,t.VScrollBar=c,t.HScrollBar=u}),ace.define("ace/renderloop",["require","exports","module","ace/lib/event"],function(e,t,n){"use strict";var r=e("./lib/event"),i=function(e,t){this.onRender=e,this.pending=!1,this.changes=0,this.$recursionLimit=2,this.window=t||window;var n=this;this._flush=function(e){n.pending=!1;var t=n.changes;if(t&&(r.blockIdle(100),n.changes=0,n.onRender(t)),n.changes){if(n.$recursionLimit--<0)return;n.schedule()}else n.$recursionLimit=2}};(function(){this.schedule=function(e){this.changes=this.changes|e,this.changes&&!this.pending&&(r.nextFrame(this._flush),this.pending=!0)},this.clear=function(e){var t=this.changes;return this.changes=0,t}}).call(i.prototype),t.RenderLoop=i}),ace.define("ace/layer/font_metrics",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/lib/lang","ace/lib/event","ace/lib/useragent","ace/lib/event_emitter"],function(e,t,n){var r=e("../lib/oop"),i=e("../lib/dom"),o=e("../lib/lang"),a=e("../lib/event"),s=e("../lib/useragent"),l=e("../lib/event_emitter").EventEmitter,c=256,u="function"==typeof ResizeObserver,h=200,f=t.FontMetrics=function(e){this.el=i.createElement("div"),this.$setMeasureNodeStyles(this.el.style,!0),this.$main=i.createElement("div"),this.$setMeasureNodeStyles(this.$main.style),this.$measureNode=i.createElement("div"),this.$setMeasureNodeStyles(this.$measureNode.style),this.el.appendChild(this.$main),this.el.appendChild(this.$measureNode),e.appendChild(this.el),this.$measureNode.textContent=o.stringRepeat("X",c),this.$characterSize={width:0,height:0},u?this.$addObserver():this.checkForSizeChanges()};(function(){r.implement(this,l),this.$characterSize={width:0,height:0},this.$setMeasureNodeStyles=function(e,t){e.width=e.height="auto",e.left=e.top="0px",e.visibility="hidden",e.position="absolute",e.whiteSpace="pre",s.isIE<8?e["font-family"]="inherit":e.font="inherit",e.overflow=t?"hidden":"visible"},this.checkForSizeChanges=function(e){if(void 0===e&&(e=this.$measureSizes()),e&&(this.$characterSize.width!==e.width||this.$characterSize.height!==e.height)){this.$measureNode.style.fontWeight="bold";var t=this.$measureSizes();this.$measureNode.style.fontWeight="",this.$characterSize=e,this.charSizes=Object.create(null),this.allowBoldFonts=t&&t.width===e.width&&t.height===e.height,this._emit("changeCharacterSize",{data:e})}},this.$addObserver=function(){var e=this;this.$observer=new window.ResizeObserver(function(t){e.checkForSizeChanges()}),this.$observer.observe(this.$measureNode)},this.$pollSizeChanges=function(){if(this.$pollSizeChangesTimer||this.$observer)return this.$pollSizeChangesTimer;var e=this;return this.$pollSizeChangesTimer=a.onIdle(function t(){e.checkForSizeChanges(),a.onIdle(t,500)},500)},this.setPolling=function(e){e?this.$pollSizeChanges():this.$pollSizeChangesTimer&&(clearInterval(this.$pollSizeChangesTimer),this.$pollSizeChangesTimer=0)},this.$measureSizes=function(e){var t={height:(e||this.$measureNode).clientHeight,width:(e||this.$measureNode).clientWidth/c};return 0===t.width||0===t.height?null:t},this.$measureCharWidth=function(e){this.$main.textContent=o.stringRepeat(e,c);var t=this.$main.getBoundingClientRect();return t.width/c},this.getCharacterWidth=function(e){var t=this.charSizes[e];return void 0===t&&(t=this.charSizes[e]=this.$measureCharWidth(e)/this.$characterSize.width),t},this.destroy=function(){clearInterval(this.$pollSizeChangesTimer),this.$observer&&this.$observer.disconnect(),this.el&&this.el.parentNode&&this.el.parentNode.removeChild(this.el)},this.$getZoom=function e(t){return t&&t.parentElement?(window.getComputedStyle(t).zoom||1)*e(t.parentElement):1},this.$initTransformMeasureNodes=function(){var e=function(e,t){return["div",{style:"position: absolute;top:"+e+"px;left:"+t+"px;"}]};this.els=i.buildDom([e(0,0),e(h,0),e(0,h),e(h,h)],this.el)},this.transformCoordinates=function(e,t){if(e){var n=this.$getZoom(this.el);e=a(1/n,e)}function r(e,t,n){var r=e[1]*t[0]-e[0]*t[1];return[(-t[1]*n[0]+t[0]*n[1])/r,(+e[1]*n[0]-e[0]*n[1])/r]}function i(e,t){return[e[0]-t[0],e[1]-t[1]]}function o(e,t){return[e[0]+t[0],e[1]+t[1]]}function a(e,t){return[e*t[0],e*t[1]]}function s(e){var t=e.getBoundingClientRect();return[t.left,t.top]}this.els||this.$initTransformMeasureNodes();var l=s(this.els[0]),c=s(this.els[1]),u=s(this.els[2]),f=s(this.els[3]),d=r(i(f,c),i(f,u),i(o(c,u),o(f,l))),p=a(1+d[0],i(c,l)),m=a(1+d[1],i(u,l));if(t){var g=t,v=d[0]*g[0]/h+d[1]*g[1]/h+1,y=o(a(g[0],p),a(g[1],m));return o(a(1/v/h,y),l)}var b=i(e,l),w=r(i(p,a(d[0],b)),i(m,a(d[1],b)),b);return a(h,w)}}).call(f.prototype)}),ace.define("ace/virtual_renderer",["require","exports","module","ace/lib/oop","ace/lib/dom","ace/config","ace/layer/gutter","ace/layer/marker","ace/layer/text","ace/layer/cursor","ace/scrollbar","ace/scrollbar","ace/renderloop","ace/layer/font_metrics","ace/lib/event_emitter","ace/lib/useragent"],function(e,t,n){"use strict";var r=e("./lib/oop"),i=e("./lib/dom"),o=e("./config"),a=e("./layer/gutter").Gutter,s=e("./layer/marker").Marker,l=e("./layer/text").Text,c=e("./layer/cursor").Cursor,u=e("./scrollbar").HScrollBar,h=e("./scrollbar").VScrollBar,f=e("./renderloop").RenderLoop,d=e("./layer/font_metrics").FontMetrics,p=e("./lib/event_emitter").EventEmitter,m='.ace_br1 {border-top-left-radius : 3px;}.ace_br2 {border-top-right-radius : 3px;}.ace_br3 {border-top-left-radius : 3px; border-top-right-radius: 3px;}.ace_br4 {border-bottom-right-radius: 3px;}.ace_br5 {border-top-left-radius : 3px; border-bottom-right-radius: 3px;}.ace_br6 {border-top-right-radius : 3px; border-bottom-right-radius: 3px;}.ace_br7 {border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px;}.ace_br8 {border-bottom-left-radius : 3px;}.ace_br9 {border-top-left-radius : 3px; border-bottom-left-radius: 3px;}.ace_br10{border-top-right-radius : 3px; border-bottom-left-radius: 3px;}.ace_br11{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br12{border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br13{border-top-left-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br14{border-top-right-radius : 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_br15{border-top-left-radius : 3px; border-top-right-radius: 3px; border-bottom-right-radius: 3px; border-bottom-left-radius: 3px;}.ace_editor {position: relative;overflow: hidden;padding: 0;font: 12px/normal \'Monaco\', \'Menlo\', \'Ubuntu Mono\', \'Consolas\', \'source-code-pro\', monospace;direction: ltr;text-align: left;-webkit-tap-highlight-color: rgba(0, 0, 0, 0);}.ace_scroller {position: absolute;overflow: hidden;top: 0;bottom: 0;background-color: inherit;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;cursor: text;}.ace_content {position: absolute;box-sizing: border-box;min-width: 100%;contain: style size layout;font-variant-ligatures: no-common-ligatures;}.ace_dragging .ace_scroller:before{position: absolute;top: 0;left: 0;right: 0;bottom: 0;content: \'\';background: rgba(250, 250, 250, 0.01);z-index: 1000;}.ace_dragging.ace_dark .ace_scroller:before{background: rgba(0, 0, 0, 0.01);}.ace_selecting, .ace_selecting * {cursor: text !important;}.ace_gutter {position: absolute;overflow : hidden;width: auto;top: 0;bottom: 0;left: 0;cursor: default;z-index: 4;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;contain: style size layout;}.ace_gutter-active-line {position: absolute;left: 0;right: 0;}.ace_scroller.ace_scroll-left {box-shadow: 17px 0 16px -16px rgba(0, 0, 0, 0.4) inset;}.ace_gutter-cell {position: absolute;top: 0;left: 0;right: 0;padding-left: 19px;padding-right: 6px;background-repeat: no-repeat;}.ace_gutter-cell.ace_error {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAABOFBMVEX/////////QRswFAb/Ui4wFAYwFAYwFAaWGAfDRymzOSH/PxswFAb/SiUwFAYwFAbUPRvjQiDllog5HhHdRybsTi3/Tyv9Tir+Syj/UC3////XurebMBIwFAb/RSHbPx/gUzfdwL3kzMivKBAwFAbbvbnhPx66NhowFAYwFAaZJg8wFAaxKBDZurf/RB6mMxb/SCMwFAYwFAbxQB3+RB4wFAb/Qhy4Oh+4QifbNRcwFAYwFAYwFAb/QRzdNhgwFAYwFAbav7v/Uy7oaE68MBK5LxLewr/r2NXewLswFAaxJw4wFAbkPRy2PyYwFAaxKhLm1tMwFAazPiQwFAaUGAb/QBrfOx3bvrv/VC/maE4wFAbRPBq6MRO8Qynew8Dp2tjfwb0wFAbx6eju5+by6uns4uH9/f36+vr/GkHjAAAAYnRSTlMAGt+64rnWu/bo8eAA4InH3+DwoN7j4eLi4xP99Nfg4+b+/u9B/eDs1MD1mO7+4PHg2MXa347g7vDizMLN4eG+Pv7i5evs/v79yu7S3/DV7/498Yv24eH+4ufQ3Ozu/v7+y13sRqwAAADLSURBVHjaZc/XDsFgGIBhtDrshlitmk2IrbHFqL2pvXf/+78DPokj7+Fz9qpU/9UXJIlhmPaTaQ6QPaz0mm+5gwkgovcV6GZzd5JtCQwgsxoHOvJO15kleRLAnMgHFIESUEPmawB9ngmelTtipwwfASilxOLyiV5UVUyVAfbG0cCPHig+GBkzAENHS0AstVF6bacZIOzgLmxsHbt2OecNgJC83JERmePUYq8ARGkJx6XtFsdddBQgZE2nPR6CICZhawjA4Fb/chv+399kfR+MMMDGOQAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: 2px center;}.ace_gutter-cell.ace_warning {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAMAAAAoLQ9TAAAAmVBMVEX///8AAAD///8AAAAAAABPSzb/5sAAAAB/blH/73z/ulkAAAAAAAD85pkAAAAAAAACAgP/vGz/rkDerGbGrV7/pkQICAf////e0IsAAAD/oED/qTvhrnUAAAD/yHD/njcAAADuv2r/nz//oTj/p064oGf/zHAAAAA9Nir/tFIAAAD/tlTiuWf/tkIAAACynXEAAAAAAAAtIRW7zBpBAAAAM3RSTlMAABR1m7RXO8Ln31Z36zT+neXe5OzooRDfn+TZ4p3h2hTf4t3k3ucyrN1K5+Xaks52Sfs9CXgrAAAAjklEQVR42o3PbQ+CIBQFYEwboPhSYgoYunIqqLn6/z8uYdH8Vmdnu9vz4WwXgN/xTPRD2+sgOcZjsge/whXZgUaYYvT8QnuJaUrjrHUQreGczuEafQCO/SJTufTbroWsPgsllVhq3wJEk2jUSzX3CUEDJC84707djRc5MTAQxoLgupWRwW6UB5fS++NV8AbOZgnsC7BpEAAAAABJRU5ErkJggg==");background-position: 2px center;}.ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAAAAAA6mKC9AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAAJ0Uk5TAAB2k804AAAAPklEQVQY02NgIB68QuO3tiLznjAwpKTgNyDbMegwisCHZUETUZV0ZqOquBpXj2rtnpSJT1AEnnRmL2OgGgAAIKkRQap2htgAAAAASUVORK5CYII=");background-position: 2px center;}.ace_dark .ace_gutter-cell.ace_info {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAJFBMVEUAAAChoaGAgIAqKiq+vr6tra1ZWVmUlJSbm5s8PDxubm56enrdgzg3AAAAAXRSTlMAQObYZgAAAClJREFUeNpjYMAPdsMYHegyJZFQBlsUlMFVCWUYKkAZMxZAGdxlDMQBAG+TBP4B6RyJAAAAAElFTkSuQmCC");}.ace_scrollbar {contain: strict;position: absolute;right: 0;bottom: 0;z-index: 6;}.ace_scrollbar-inner {position: absolute;cursor: text;left: 0;top: 0;}.ace_scrollbar-v{overflow-x: hidden;overflow-y: scroll;top: 0;}.ace_scrollbar-h {overflow-x: scroll;overflow-y: hidden;left: 0;}.ace_print-margin {position: absolute;height: 100%;}.ace_text-input {position: absolute;z-index: 0;width: 0.5em;height: 1em;opacity: 0;background: transparent;-moz-appearance: none;appearance: none;border: none;resize: none;outline: none;overflow: hidden;font: inherit;padding: 0 1px;margin: 0 -1px;contain: strict;-ms-user-select: text;-moz-user-select: text;-webkit-user-select: text;user-select: text;white-space: pre!important;}.ace_text-input.ace_composition {background: transparent;color: inherit;z-index: 1000;opacity: 1;}.ace_composition_placeholder { color: transparent }.ace_composition_marker { border-bottom: 1px solid;position: absolute;border-radius: 0;margin-top: 1px;}[ace_nocontext=true] {transform: none!important;filter: none!important;clip-path: none!important;mask : none!important;contain: none!important;perspective: none!important;mix-blend-mode: initial!important;z-index: auto;}.ace_layer {z-index: 1;position: absolute;overflow: hidden;word-wrap: normal;white-space: pre;height: 100%;width: 100%;box-sizing: border-box;pointer-events: none;}.ace_gutter-layer {position: relative;width: auto;text-align: right;pointer-events: auto;height: 1000000px;contain: style size layout;}.ace_text-layer {font: inherit !important;position: absolute;height: 1000000px;width: 1000000px;contain: style size layout;}.ace_text-layer > .ace_line, .ace_text-layer > .ace_line_group {contain: style size layout;position: absolute;top: 0;left: 0;right: 0;}.ace_hidpi .ace_text-layer,.ace_hidpi .ace_gutter-layer,.ace_hidpi .ace_content,.ace_hidpi .ace_gutter {contain: strict;will-change: transform;}.ace_hidpi .ace_text-layer > .ace_line, .ace_hidpi .ace_text-layer > .ace_line_group {contain: strict;}.ace_cjk {display: inline-block;text-align: center;}.ace_cursor-layer {z-index: 4;}.ace_cursor {z-index: 4;position: absolute;box-sizing: border-box;border-left: 2px solid;transform: translatez(0);}.ace_multiselect .ace_cursor {border-left-width: 1px;}.ace_slim-cursors .ace_cursor {border-left-width: 1px;}.ace_overwrite-cursors .ace_cursor {border-left-width: 0;border-bottom: 1px solid;}.ace_hidden-cursors .ace_cursor {opacity: 0.2;}.ace_hasPlaceholder .ace_hidden-cursors .ace_cursor {opacity: 0;}.ace_smooth-blinking .ace_cursor {transition: opacity 0.18s;}.ace_animate-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: step-end;animation-name: blink-ace-animate;animation-iteration-count: infinite;}.ace_animate-blinking.ace_smooth-blinking .ace_cursor {animation-duration: 1000ms;animation-timing-function: ease-in-out;animation-name: blink-ace-animate-smooth;}@keyframes blink-ace-animate {from, to { opacity: 1; }60% { opacity: 0; }}@keyframes blink-ace-animate-smooth {from, to { opacity: 1; }45% { opacity: 1; }60% { opacity: 0; }85% { opacity: 0; }}.ace_marker-layer .ace_step, .ace_marker-layer .ace_stack {position: absolute;z-index: 3;}.ace_marker-layer .ace_selection {position: absolute;z-index: 5;}.ace_marker-layer .ace_bracket {position: absolute;z-index: 6;}.ace_marker-layer .ace_error_bracket {position: absolute;border-bottom: 1px solid #DE5555;border-radius: 0;}.ace_marker-layer .ace_active-line {position: absolute;z-index: 2;}.ace_marker-layer .ace_selected-word {position: absolute;z-index: 4;box-sizing: border-box;}.ace_line .ace_fold {box-sizing: border-box;display: inline-block;height: 11px;margin-top: -2px;vertical-align: middle;background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACJJREFUeNpi+P//fxgTAwPDBxDxD078RSX+YeEyDFMCIMAAI3INmXiwf2YAAAAASUVORK5CYII=");background-repeat: no-repeat, repeat-x;background-position: center center, top left;color: transparent;border: 1px solid black;border-radius: 2px;cursor: pointer;pointer-events: auto;}.ace_dark .ace_fold {}.ace_fold:hover{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABEAAAAJCAYAAADU6McMAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJpJREFUeNpi/P//PwOlgAXGYGRklAVSokD8GmjwY1wasKljQpYACtpCFeADcHVQfQyMQAwzwAZI3wJKvCLkfKBaMSClBlR7BOQikCFGQEErIH0VqkabiGCAqwUadAzZJRxQr/0gwiXIal8zQQPnNVTgJ1TdawL0T5gBIP1MUJNhBv2HKoQHHjqNrA4WO4zY0glyNKLT2KIfIMAAQsdgGiXvgnYAAAAASUVORK5CYII="),url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAA3CAYAAADNNiA5AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAACBJREFUeNpi+P//fz4TAwPDZxDxD5X4i5fLMEwJgAADAEPVDbjNw87ZAAAAAElFTkSuQmCC");}.ace_tooltip {background-color: #FFF;background-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.1));border: 1px solid gray;border-radius: 1px;box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);color: black;max-width: 100%;padding: 3px 4px;position: fixed;z-index: 999999;box-sizing: border-box;cursor: default;white-space: pre;word-wrap: break-word;line-height: normal;font-style: normal;font-weight: normal;letter-spacing: normal;pointer-events: none;}.ace_folding-enabled > .ace_gutter-cell {padding-right: 13px;}.ace_fold-widget {box-sizing: border-box;margin: 0 -12px 0 1px;display: none;width: 11px;vertical-align: top;background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42mWKsQ0AMAzC8ixLlrzQjzmBiEjp0A6WwBCSPgKAXoLkqSot7nN3yMwR7pZ32NzpKkVoDBUxKAAAAABJRU5ErkJggg==");background-repeat: no-repeat;background-position: center;border-radius: 3px;border: 1px solid transparent;cursor: pointer;}.ace_folding-enabled .ace_fold-widget {display: inline-block; }.ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAANElEQVR42m3HwQkAMAhD0YzsRchFKI7sAikeWkrxwScEB0nh5e7KTPWimZki4tYfVbX+MNl4pyZXejUO1QAAAABJRU5ErkJggg==");}.ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAGCAYAAAAG5SQMAAAAOUlEQVR42jXKwQkAMAgDwKwqKD4EwQ26sSOkVWjgIIHAzPiCgaqiqnJHZnKICBERHN194O5b9vbLuAVRL+l0YWnZAAAAAElFTkSuQmCCXA==");}.ace_fold-widget:hover {border: 1px solid rgba(0, 0, 0, 0.3);background-color: rgba(255, 255, 255, 0.2);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.7);}.ace_fold-widget:active {border: 1px solid rgba(0, 0, 0, 0.4);background-color: rgba(0, 0, 0, 0.05);box-shadow: 0 1px 1px rgba(255, 255, 255, 0.8);}.ace_dark .ace_fold-widget {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHklEQVQIW2P4//8/AzoGEQ7oGCaLLAhWiSwB146BAQCSTPYocqT0AAAAAElFTkSuQmCC");}.ace_dark .ace_fold-widget.ace_end {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAH0lEQVQIW2P4//8/AxQ7wNjIAjDMgC4AxjCVKBirIAAF0kz2rlhxpAAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget.ace_closed {background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAMAAAAFCAYAAACAcVaiAAAAHElEQVQIW2P4//+/AxAzgDADlOOAznHAKgPWAwARji8UIDTfQQAAAABJRU5ErkJggg==");}.ace_dark .ace_fold-widget:hover {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);background-color: rgba(255, 255, 255, 0.1);}.ace_dark .ace_fold-widget:active {box-shadow: 0 1px 1px rgba(255, 255, 255, 0.2);}.ace_inline_button {border: 1px solid lightgray;display: inline-block;margin: -1px 8px;padding: 0 5px;pointer-events: auto;cursor: pointer;}.ace_inline_button:hover {border-color: gray;background: rgba(200,200,200,0.2);display: inline-block;pointer-events: auto;}.ace_fold-widget.ace_invalid {background-color: #FFB4B4;border-color: #DE5555;}.ace_fade-fold-widgets .ace_fold-widget {transition: opacity 0.4s ease 0.05s;opacity: 0;}.ace_fade-fold-widgets:hover .ace_fold-widget {transition: opacity 0.05s ease 0.05s;opacity:1;}.ace_underline {text-decoration: underline;}.ace_bold {font-weight: bold;}.ace_nobold .ace_bold {font-weight: normal;}.ace_italic {font-style: italic;}.ace_error-marker {background-color: rgba(255, 0, 0,0.2);position: absolute;z-index: 9;}.ace_highlight-marker {background-color: rgba(255, 255, 0,0.2);position: absolute;z-index: 8;}.ace_mobile-menu {position: absolute;line-height: 1.5;border-radius: 4px;-ms-user-select: none;-moz-user-select: none;-webkit-user-select: none;user-select: none;background: white;box-shadow: 1px 3px 2px grey;border: 1px solid #dcdcdc;color: black;}.ace_dark > .ace_mobile-menu {background: #333;color: #ccc;box-shadow: 1px 3px 2px grey;border: 1px solid #444;}.ace_mobile-button {padding: 2px;cursor: pointer;overflow: hidden;}.ace_mobile-button:hover {background-color: #eee;opacity:1;}.ace_mobile-button:active {background-color: #ddd;}.ace_placeholder {font-family: arial;transform: scale(0.9);transform-origin: left;white-space: pre;opacity: 0.7;margin: 0 10px;}',g=e("./lib/useragent"),v=g.isIE;i.importCssString(m,"ace_editor.css",!1);var y=function(e,t){var n=this;this.container=e||i.createElement("div"),i.addCssClass(this.container,"ace_editor"),i.HI_DPI&&i.addCssClass(this.container,"ace_hidpi"),this.setTheme(t),null==o.get("useStrictCSP")&&o.set("useStrictCSP",!1),this.$gutter=i.createElement("div"),this.$gutter.className="ace_gutter",this.container.appendChild(this.$gutter),this.$gutter.setAttribute("aria-hidden",!0),this.scroller=i.createElement("div"),this.scroller.className="ace_scroller",this.container.appendChild(this.scroller),this.content=i.createElement("div"),this.content.className="ace_content",this.scroller.appendChild(this.content),this.$gutterLayer=new a(this.$gutter),this.$gutterLayer.on("changeGutterWidth",this.onGutterResize.bind(this)),this.$markerBack=new s(this.content);var r=this.$textLayer=new l(this.content);this.canvas=r.element,this.$markerFront=new s(this.content),this.$cursorLayer=new c(this.content),this.$horizScroll=!1,this.$vScroll=!1,this.scrollBar=this.scrollBarV=new h(this.container,this),this.scrollBarH=new u(this.container,this),this.scrollBarV.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollTop(e.data-n.scrollMargin.top)}),this.scrollBarH.on("scroll",function(e){n.$scrollAnimation||n.session.setScrollLeft(e.data-n.scrollMargin.left)}),this.scrollTop=0,this.scrollLeft=0,this.cursorPos={row:0,column:0},this.$fontMetrics=new d(this.container),this.$textLayer.$setFontMetrics(this.$fontMetrics),this.$textLayer.on("changeCharacterSize",function(e){n.updateCharacterSize(),n.onResize(!0,n.gutterWidth,n.$size.width,n.$size.height),n._signal("changeCharacterSize",e)}),this.$size={width:0,height:0,scrollerHeight:0,scrollerWidth:0,$dirty:!0},this.layerConfig={width:1,padding:0,firstRow:0,firstRowScreen:0,lastRow:0,lineHeight:0,characterWidth:0,minHeight:1,maxHeight:1,offset:0,height:1,gutterOffset:1},this.scrollMargin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.margin={left:0,right:0,top:0,bottom:0,v:0,h:0},this.$keepTextAreaAtCursor=!g.isIOS,this.$loop=new f(this.$renderChanges.bind(this),this.container.ownerDocument.defaultView),this.$loop.schedule(this.CHANGE_FULL),this.updateCharacterSize(),this.setPadding(4),o.resetOptions(this),o._signal("renderer",this)};(function(){this.CHANGE_CURSOR=1,this.CHANGE_MARKER=2,this.CHANGE_GUTTER=4,this.CHANGE_SCROLL=8,this.CHANGE_LINES=16,this.CHANGE_TEXT=32,this.CHANGE_SIZE=64,this.CHANGE_MARKER_BACK=128,this.CHANGE_MARKER_FRONT=256,this.CHANGE_FULL=512,this.CHANGE_H_SCROLL=1024,r.implement(this,p),this.updateCharacterSize=function(){this.$textLayer.allowBoldFonts!=this.$allowBoldFonts&&(this.$allowBoldFonts=this.$textLayer.allowBoldFonts,this.setStyle("ace_nobold",!this.$allowBoldFonts)),this.layerConfig.characterWidth=this.characterWidth=this.$textLayer.getCharacterWidth(),this.layerConfig.lineHeight=this.lineHeight=this.$textLayer.getLineHeight(),this.$updatePrintMargin(),i.setStyle(this.scroller.style,"line-height",this.lineHeight+"px")},this.setSession=function(e){this.session&&this.session.doc.off("changeNewLineMode",this.onChangeNewLineMode),this.session=e,e&&this.scrollMargin.top&&e.getScrollTop()<=0&&e.setScrollTop(-this.scrollMargin.top),this.$cursorLayer.setSession(e),this.$markerBack.setSession(e),this.$markerFront.setSession(e),this.$gutterLayer.setSession(e),this.$textLayer.setSession(e),e&&(this.$loop.schedule(this.CHANGE_FULL),this.session.$setFontMetrics(this.$fontMetrics),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null,this.onChangeNewLineMode=this.onChangeNewLineMode.bind(this),this.onChangeNewLineMode(),this.session.doc.on("changeNewLineMode",this.onChangeNewLineMode))},this.updateLines=function(e,t,n){if(void 0===t&&(t=1/0),this.$changedLines?(this.$changedLines.firstRow>e&&(this.$changedLines.firstRow=e),this.$changedLines.lastRowthis.layerConfig.lastRow||this.$loop.schedule(this.CHANGE_LINES)},this.onChangeNewLineMode=function(){this.$loop.schedule(this.CHANGE_TEXT),this.$textLayer.$updateEolChar(),this.session.$bidiHandler.setEolChar(this.$textLayer.EOL_CHAR)},this.onChangeTabSize=function(){this.$loop.schedule(this.CHANGE_TEXT|this.CHANGE_MARKER),this.$textLayer.onChangeTabSize()},this.updateText=function(){this.$loop.schedule(this.CHANGE_TEXT)},this.updateFull=function(e){e?this.$renderChanges(this.CHANGE_FULL,!0):this.$loop.schedule(this.CHANGE_FULL)},this.updateFontSize=function(){this.$textLayer.checkForSizeChanges()},this.$changes=0,this.$updateSizeAsync=function(){this.$loop.pending?this.$size.$dirty=!0:this.onResize()},this.onResize=function(e,t,n,r){if(!(this.resizing>2)){this.resizing>0?this.resizing++:this.resizing=e?1:0;var i=this.container;r||(r=i.clientHeight||i.scrollHeight),n||(n=i.clientWidth||i.scrollWidth);var o=this.$updateCachedSize(e,t,n,r);if(!this.$size.scrollerHeight||!n&&!r)return this.resizing=0;e&&(this.$gutterLayer.$padding=null),e?this.$renderChanges(o|this.$changes,!0):this.$loop.schedule(o|this.$changes),this.resizing&&(this.resizing=0),this.scrollBarH.scrollLeft=this.scrollBarV.scrollTop=null}},this.$updateCachedSize=function(e,t,n,r){r-=this.$extraHeight||0;var o=0,a=this.$size,s={width:a.width,height:a.height,scrollerHeight:a.scrollerHeight,scrollerWidth:a.scrollerWidth};if(r&&(e||a.height!=r)&&(a.height=r,o|=this.CHANGE_SIZE,a.scrollerHeight=a.height,this.$horizScroll&&(a.scrollerHeight-=this.scrollBarH.getHeight()),this.scrollBarV.element.style.bottom=this.scrollBarH.getHeight()+"px",o|=this.CHANGE_SCROLL),n&&(e||a.width!=n)){o|=this.CHANGE_SIZE,a.width=n,null==t&&(t=this.$showGutter?this.$gutter.offsetWidth:0),this.gutterWidth=t,i.setStyle(this.scrollBarH.element.style,"left",t+"px"),i.setStyle(this.scroller.style,"left",t+this.margin.left+"px"),a.scrollerWidth=Math.max(0,n-t-this.scrollBarV.getWidth()-this.margin.h),i.setStyle(this.$gutter.style,"left",this.margin.left+"px");var l=this.scrollBarV.getWidth()+"px";i.setStyle(this.scrollBarH.element.style,"right",l),i.setStyle(this.scroller.style,"right",l),i.setStyle(this.scroller.style,"bottom",this.scrollBarH.getHeight()),(this.session&&this.session.getUseWrapMode()&&this.adjustWrapLimit()||e)&&(o|=this.CHANGE_FULL)}return a.$dirty=!n||!r,o&&this._signal("resize",s),o},this.onGutterResize=function(e){var t=this.$showGutter?e:0;t!=this.gutterWidth&&(this.$changes|=this.$updateCachedSize(!0,t,this.$size.width,this.$size.height)),this.session.getUseWrapMode()&&this.adjustWrapLimit()?this.$loop.schedule(this.CHANGE_FULL):this.$size.$dirty?this.$loop.schedule(this.CHANGE_FULL):this.$computeLayerConfig()},this.adjustWrapLimit=function(){var e=this.$size.scrollerWidth-2*this.$padding,t=Math.floor(e/this.characterWidth);return this.session.adjustWrapLimit(t,this.$showPrintMargin&&this.$printMarginColumn)},this.setAnimatedScroll=function(e){this.setOption("animatedScroll",e)},this.getAnimatedScroll=function(){return this.$animatedScroll},this.setShowInvisibles=function(e){this.setOption("showInvisibles",e),this.session.$bidiHandler.setShowInvisibles(e)},this.getShowInvisibles=function(){return this.getOption("showInvisibles")},this.getDisplayIndentGuides=function(){return this.getOption("displayIndentGuides")},this.setDisplayIndentGuides=function(e){this.setOption("displayIndentGuides",e)},this.setShowPrintMargin=function(e){this.setOption("showPrintMargin",e)},this.getShowPrintMargin=function(){return this.getOption("showPrintMargin")},this.setPrintMarginColumn=function(e){this.setOption("printMarginColumn",e)},this.getPrintMarginColumn=function(){return this.getOption("printMarginColumn")},this.getShowGutter=function(){return this.getOption("showGutter")},this.setShowGutter=function(e){return this.setOption("showGutter",e)},this.getFadeFoldWidgets=function(){return this.getOption("fadeFoldWidgets")},this.setFadeFoldWidgets=function(e){this.setOption("fadeFoldWidgets",e)},this.setHighlightGutterLine=function(e){this.setOption("highlightGutterLine",e)},this.getHighlightGutterLine=function(){return this.getOption("highlightGutterLine")},this.$updatePrintMargin=function(){if(this.$showPrintMargin||this.$printMarginEl){if(!this.$printMarginEl){var e=i.createElement("div");e.className="ace_layer ace_print-margin-layer",this.$printMarginEl=i.createElement("div"),this.$printMarginEl.className="ace_print-margin",e.appendChild(this.$printMarginEl),this.content.insertBefore(e,this.content.firstChild)}var t=this.$printMarginEl.style;t.left=Math.round(this.characterWidth*this.$printMarginColumn+this.$padding)+"px",t.visibility=this.$showPrintMargin?"visible":"hidden",this.session&&-1==this.session.$wrap&&this.adjustWrapLimit()}},this.getContainerElement=function(){return this.container},this.getMouseEventTarget=function(){return this.scroller},this.getTextAreaContainer=function(){return this.container},this.$moveTextAreaToCursor=function(){if(!this.$isMousePressed){var e=this.textarea.style,t=this.$composition;if(this.$keepTextAreaAtCursor||t){var n=this.$cursorLayer.$pixelPos;if(n){t&&t.markerRange&&(n=this.$cursorLayer.getPixelPosition(t.markerRange.start,!0));var r=this.layerConfig,o=n.top,a=n.left;o-=r.offset;var s=t&&t.useTextareaForIME?this.lineHeight:v?0:1;if(o<0||o>r.height-s)i.translate(this.textarea,0,0);else{var l=1,c=this.$size.height-s;if(t)if(t.useTextareaForIME){var u=this.textarea.value;l=this.characterWidth*this.session.$getStringScreenWidth(u)[0]}else o+=this.lineHeight+2;else o+=this.lineHeight;a-=this.scrollLeft,a>this.$size.scrollerWidth-l&&(a=this.$size.scrollerWidth-l),a+=this.gutterWidth+this.margin.left,i.setStyle(e,"height",s+"px"),i.setStyle(e,"width",l+"px"),i.translate(this.textarea,Math.min(a,this.$size.scrollerWidth-l),Math.min(o,c))}}}else i.translate(this.textarea,-100,0)}},this.getFirstVisibleRow=function(){return this.layerConfig.firstRow},this.getFirstFullyVisibleRow=function(){return this.layerConfig.firstRow+(0===this.layerConfig.offset?0:1)},this.getLastFullyVisibleRow=function(){var e=this.layerConfig,t=e.lastRow,n=this.session.documentToScreenRow(t,0)*e.lineHeight;return n-this.session.getScrollTop()>e.height-e.lineHeight?t-1:t},this.getLastVisibleRow=function(){return this.layerConfig.lastRow},this.$padding=null,this.setPadding=function(e){this.$padding=e,this.$textLayer.setPadding(e),this.$cursorLayer.setPadding(e),this.$markerFront.setPadding(e),this.$markerBack.setPadding(e),this.$loop.schedule(this.CHANGE_FULL),this.$updatePrintMargin()},this.setScrollMargin=function(e,t,n,r){var i=this.scrollMargin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,i.top&&this.scrollTop<=0&&this.session&&this.session.setScrollTop(-i.top),this.updateFull()},this.setMargin=function(e,t,n,r){var i=this.margin;i.top=0|e,i.bottom=0|t,i.right=0|r,i.left=0|n,i.v=i.top+i.bottom,i.h=i.left+i.right,this.$updateCachedSize(!0,this.gutterWidth,this.$size.width,this.$size.height),this.updateFull()},this.getHScrollBarAlwaysVisible=function(){return this.$hScrollBarAlwaysVisible},this.setHScrollBarAlwaysVisible=function(e){this.setOption("hScrollBarAlwaysVisible",e)},this.getVScrollBarAlwaysVisible=function(){return this.$vScrollBarAlwaysVisible},this.setVScrollBarAlwaysVisible=function(e){this.setOption("vScrollBarAlwaysVisible",e)},this.$updateScrollBarV=function(){var e=this.layerConfig.maxHeight,t=this.$size.scrollerHeight;!this.$maxLines&&this.$scrollPastEnd&&(e-=(t-this.lineHeight)*this.$scrollPastEnd,this.scrollTop>e-t&&(e=this.scrollTop+t,this.scrollBarV.scrollTop=null)),this.scrollBarV.setScrollHeight(e+this.scrollMargin.v),this.scrollBarV.setScrollTop(this.scrollTop+this.scrollMargin.top)},this.$updateScrollBarH=function(){this.scrollBarH.setScrollWidth(this.layerConfig.width+2*this.$padding+this.scrollMargin.h),this.scrollBarH.setScrollLeft(this.scrollLeft+this.scrollMargin.left)},this.$frozen=!1,this.freeze=function(){this.$frozen=!0},this.unfreeze=function(){this.$frozen=!1},this.$renderChanges=function(e,t){if(this.$changes&&(e|=this.$changes,this.$changes=0),this.session&&this.container.offsetWidth&&!this.$frozen&&(e||t)){if(this.$size.$dirty)return this.$changes|=e,this.onResize(!0);this.lineHeight||this.$textLayer.checkForSizeChanges(),this._signal("beforeRender",e),this.session&&this.session.$bidiHandler&&this.session.$bidiHandler.updateCharacterWidths(this.$fontMetrics);var n=this.layerConfig;if(e&this.CHANGE_FULL||e&this.CHANGE_SIZE||e&this.CHANGE_TEXT||e&this.CHANGE_LINES||e&this.CHANGE_SCROLL||e&this.CHANGE_H_SCROLL){if(e|=this.$computeLayerConfig()|this.$loop.clear(),n.firstRow!=this.layerConfig.firstRow&&n.firstRowScreen==this.layerConfig.firstRowScreen){var r=this.scrollTop+(n.firstRow-this.layerConfig.firstRow)*this.lineHeight;r>0&&(this.scrollTop=r,e|=this.CHANGE_SCROLL,e|=this.$computeLayerConfig()|this.$loop.clear())}n=this.layerConfig,this.$updateScrollBarV(),e&this.CHANGE_H_SCROLL&&this.$updateScrollBarH(),i.translate(this.content,-this.scrollLeft,-n.offset);var o=n.width+2*this.$padding+"px",a=n.minHeight+"px";i.setStyle(this.content.style,"width",o),i.setStyle(this.content.style,"height",a)}if(e&this.CHANGE_H_SCROLL&&(i.translate(this.content,-this.scrollLeft,-n.offset),this.scroller.className=this.scrollLeft<=0?"ace_scroller":"ace_scroller ace_scroll-left"),e&this.CHANGE_FULL)return this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);if(e&this.CHANGE_SCROLL)return this.$changedLines=null,e&this.CHANGE_TEXT||e&this.CHANGE_LINES?this.$textLayer.update(n):this.$textLayer.scrollLines(n),this.$showGutter&&(e&this.CHANGE_GUTTER||e&this.CHANGE_LINES?this.$gutterLayer.update(n):this.$gutterLayer.scrollLines(n)),this.$markerBack.update(n),this.$markerFront.update(n),this.$cursorLayer.update(n),this.$moveTextAreaToCursor(),void this._signal("afterRender",e);e&this.CHANGE_TEXT?(this.$changedLines=null,this.$textLayer.update(n),this.$showGutter&&this.$gutterLayer.update(n)):e&this.CHANGE_LINES?(this.$updateLines()||e&this.CHANGE_GUTTER&&this.$showGutter)&&this.$gutterLayer.update(n):e&this.CHANGE_TEXT||e&this.CHANGE_GUTTER?this.$showGutter&&this.$gutterLayer.update(n):e&this.CHANGE_CURSOR&&this.$highlightGutterLine&&this.$gutterLayer.updateLineHighlight(n),e&this.CHANGE_CURSOR&&(this.$cursorLayer.update(n),this.$moveTextAreaToCursor()),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_FRONT)&&this.$markerFront.update(n),e&(this.CHANGE_MARKER|this.CHANGE_MARKER_BACK)&&this.$markerBack.update(n),this._signal("afterRender",e)}else this.$changes|=e},this.$autosize=function(){var e=this.session.getScreenLength()*this.lineHeight,t=this.$maxLines*this.lineHeight,n=Math.min(t,Math.max((this.$minLines||1)*this.lineHeight,e))+this.scrollMargin.v+(this.$extraHeight||0);this.$horizScroll&&(n+=this.scrollBarH.getHeight()),this.$maxPixelHeight&&n>this.$maxPixelHeight&&(n=this.$maxPixelHeight);var r=n<=2*this.lineHeight,i=!r&&e>t;if(n!=this.desiredHeight||this.$size.height!=this.desiredHeight||i!=this.$vScroll){i!=this.$vScroll&&(this.$vScroll=i,this.scrollBarV.setVisible(i));var o=this.container.clientWidth;this.container.style.height=n+"px",this.$updateCachedSize(!0,this.$gutterWidth,o,n),this.desiredHeight=n,this._signal("autosize")}},this.$computeLayerConfig=function(){var e=this.session,t=this.$size,n=t.height<=2*this.lineHeight,r=this.session.getScreenLength(),i=r*this.lineHeight,o=this.$getLongestLine(),a=!n&&(this.$hScrollBarAlwaysVisible||t.scrollerWidth-o-2*this.$padding<0),s=this.$horizScroll!==a;s&&(this.$horizScroll=a,this.scrollBarH.setVisible(a));var l=this.$vScroll;this.$maxLines&&this.lineHeight>1&&this.$autosize();var c=t.scrollerHeight+this.lineHeight,u=!this.$maxLines&&this.$scrollPastEnd?(t.scrollerHeight-this.lineHeight)*this.$scrollPastEnd:0;i+=u;var h=this.scrollMargin;this.session.setScrollTop(Math.max(-h.top,Math.min(this.scrollTop,i-t.scrollerHeight+h.bottom))),this.session.setScrollLeft(Math.max(-h.left,Math.min(this.scrollLeft,o+2*this.$padding-t.scrollerWidth+h.right)));var f=!n&&(this.$vScrollBarAlwaysVisible||t.scrollerHeight-i+u<0||this.scrollTop>h.top),d=l!==f;d&&(this.$vScroll=f,this.scrollBarV.setVisible(f));var p,m,g=this.scrollTop%this.lineHeight,v=Math.ceil(c/this.lineHeight)-1,y=Math.max(0,Math.round((this.scrollTop-g)/this.lineHeight)),b=y+v,w=this.lineHeight;y=e.screenToDocumentRow(y,0);var x=e.getFoldLine(y);x&&(y=x.start.row),p=e.documentToScreenRow(y,0),m=e.getRowLength(y)*w,b=Math.min(e.screenToDocumentRow(b,0),e.getLength()-1),c=t.scrollerHeight+e.getRowLength(b)*w+m,g=this.scrollTop-p*w;var _=0;return(this.layerConfig.width!=o||s)&&(_=this.CHANGE_H_SCROLL),(s||d)&&(_|=this.$updateCachedSize(!0,this.gutterWidth,t.width,t.height),this._signal("scrollbarVisibilityChanged"),d&&(o=this.$getLongestLine())),this.layerConfig={width:o,padding:this.$padding,firstRow:y,firstRowScreen:p,lastRow:b,lineHeight:w,characterWidth:this.characterWidth,minHeight:c,maxHeight:i,offset:g,gutterOffset:w?Math.max(0,Math.ceil((g+t.height-t.scrollerHeight)/w)):0,height:this.$size.scrollerHeight},this.session.$bidiHandler&&this.session.$bidiHandler.setContentWidth(o-this.$padding),_},this.$updateLines=function(){if(this.$changedLines){var e=this.$changedLines.firstRow,t=this.$changedLines.lastRow;this.$changedLines=null;var n=this.layerConfig;if(!(e>n.lastRow+1)&&!(tthis.$textLayer.MAX_LINE_LENGTH&&(e=this.$textLayer.MAX_LINE_LENGTH+30),Math.max(this.$size.scrollerWidth-2*this.$padding,Math.round(e*this.characterWidth))},this.updateFrontMarkers=function(){this.$markerFront.setMarkers(this.session.getMarkers(!0)),this.$loop.schedule(this.CHANGE_MARKER_FRONT)},this.updateBackMarkers=function(){this.$markerBack.setMarkers(this.session.getMarkers()),this.$loop.schedule(this.CHANGE_MARKER_BACK)},this.addGutterDecoration=function(e,t){this.$gutterLayer.addGutterDecoration(e,t)},this.removeGutterDecoration=function(e,t){this.$gutterLayer.removeGutterDecoration(e,t)},this.updateBreakpoints=function(e){this.$loop.schedule(this.CHANGE_GUTTER)},this.setAnnotations=function(e){this.$gutterLayer.setAnnotations(e),this.$loop.schedule(this.CHANGE_GUTTER)},this.updateCursor=function(){this.$loop.schedule(this.CHANGE_CURSOR)},this.hideCursor=function(){this.$cursorLayer.hideCursor()},this.showCursor=function(){this.$cursorLayer.showCursor()},this.scrollSelectionIntoView=function(e,t,n){this.scrollCursorIntoView(e,n),this.scrollCursorIntoView(t,n)},this.scrollCursorIntoView=function(e,t,n){if(0!==this.$size.scrollerHeight){var r=this.$cursorLayer.getPixelPosition(e),i=r.left,o=r.top,a=n&&n.top||0,s=n&&n.bottom||0,l=this.$scrollAnimation?this.session.getScrollTop():this.scrollTop;l+a>o?(t&&l+a>o+this.lineHeight&&(o-=t*this.$size.scrollerHeight),0===o&&(o=-this.scrollMargin.top),this.session.setScrollTop(o)):l+this.$size.scrollerHeight-si?(i=1-this.scrollMargin.top||(t>0&&this.session.getScrollTop()+this.$size.scrollerHeight-this.layerConfig.maxHeight<-1+this.scrollMargin.bottom||(e<0&&this.session.getScrollLeft()>=1-this.scrollMargin.left||(e>0&&this.session.getScrollLeft()+this.$size.scrollerWidth-this.layerConfig.width<-1+this.scrollMargin.right||void 0)))},this.pixelToScreenCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=Math.floor((t+this.scrollTop-n.top)/this.lineHeight),s=this.$blockCursor?Math.floor(o):Math.round(o);return{row:a,column:s,side:o-s>0?1:-1,offsetX:i}},this.screenToTextCoordinates=function(e,t){var n;if(this.$hasCssTransforms){n={top:0,left:0};var r=this.$fontMetrics.transformCoordinates([e,t]);e=r[1]-this.gutterWidth-this.margin.left,t=r[0]}else n=this.scroller.getBoundingClientRect();var i=e+this.scrollLeft-n.left-this.$padding,o=i/this.characterWidth,a=this.$blockCursor?Math.floor(o):Math.round(o),s=Math.floor((t+this.scrollTop-n.top)/this.lineHeight);return this.session.screenToDocumentPosition(s,Math.max(a,0),i)},this.textToScreenCoordinates=function(e,t){var n=this.scroller.getBoundingClientRect(),r=this.session.documentToScreenPosition(e,t),i=this.$padding+(this.session.$bidiHandler.isBidiRow(r.row,e)?this.session.$bidiHandler.getPosLeft(r.column):Math.round(r.column*this.characterWidth)),o=r.row*this.lineHeight;return{pageX:n.left+i-this.scrollLeft,pageY:n.top+o-this.scrollTop}},this.visualizeFocus=function(){i.addCssClass(this.container,"ace_focus")},this.visualizeBlur=function(){i.removeCssClass(this.container,"ace_focus")},this.showComposition=function(e){this.$composition=e,e.cssText||(e.cssText=this.textarea.style.cssText),void 0==e.useTextareaForIME&&(e.useTextareaForIME=this.$useTextareaForIME),this.$useTextareaForIME?(i.addCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText="",this.$moveTextAreaToCursor(),this.$cursorLayer.element.style.display="none"):e.markerId=this.session.addMarker(e.markerRange,"ace_composition_marker","text")},this.setCompositionText=function(e){var t=this.session.selection.cursor;this.addToken(e,"composition_placeholder",t.row,t.column),this.$moveTextAreaToCursor()},this.hideComposition=function(){if(this.$composition){this.$composition.markerId&&this.session.removeMarker(this.$composition.markerId),i.removeCssClass(this.textarea,"ace_composition"),this.textarea.style.cssText=this.$composition.cssText;var e=this.session.selection.cursor;this.removeExtraToken(e.row,e.column),this.$composition=null,this.$cursorLayer.element.style.display=""}},this.addToken=function(e,t,n,r){var i=this.session;i.bgTokenizer.lines[n]=null;var o={type:t,value:e},a=i.getTokens(n);if(null==r)a.push(o);else for(var s=0,l=0;l50&&e.length>this.$doc.getLength()>>1?this.call("setValue",[this.$doc.getValue()]):this.emit("change",{data:e}))}}).call(c.prototype);var u=function(e,t,n){var r=null,i=!1,s=Object.create(o),l=[],u=new c({messageBuffer:l,terminate:function(){},postMessage:function(e){l.push(e),r&&(i?setTimeout(h):h())}});u.setEmitSync=function(e){i=e};var h=function(){var e=l.shift();e.command?r[e.command].apply(r,e.args):e.event&&s._signal(e.event,e.data)};return s.postMessage=function(e){u.onMessage({data:e})},s.callback=function(e,t){this.postMessage({type:"call",id:t,data:e})},s.emit=function(e,t){this.postMessage({type:"event",name:e,data:t})},a.loadModule(["worker",t],function(e){r=new e[n](s);while(l.length)h()}),u};t.UIWorkerClient=u,t.WorkerClient=c,t.createWorker=l}),ace.define("ace/placeholder",["require","exports","module","ace/range","ace/lib/event_emitter","ace/lib/oop"],function(e,t,n){"use strict";var r=e("./range").Range,i=e("./lib/event_emitter").EventEmitter,o=e("./lib/oop"),a=function(e,t,n,r,i,o){var a=this;this.length=t,this.session=e,this.doc=e.getDocument(),this.mainClass=i,this.othersClass=o,this.$onUpdate=this.onUpdate.bind(this),this.doc.on("change",this.$onUpdate),this.$others=r,this.$onCursorChange=function(){setTimeout(function(){a.onCursorChange()})},this.$pos=n;var s=e.getUndoManager().$undoStack||e.getUndoManager().$undostack||{length:-1};this.$undoStackDepth=s.length,this.setup(),e.selection.on("changeCursor",this.$onCursorChange)};(function(){o.implement(this,i),this.setup=function(){var e=this,t=this.doc,n=this.session;this.selectionBefore=n.selection.toJSON(),n.selection.inMultiSelectMode&&n.selection.toSingleRange(),this.pos=t.createAnchor(this.$pos.row,this.$pos.column);var i=this.pos;i.$insertRight=!0,i.detach(),i.markerId=n.addMarker(new r(i.row,i.column,i.row,i.column+this.length),this.mainClass,null,!1),this.others=[],this.$others.forEach(function(n){var r=t.createAnchor(n.row,n.column);r.$insertRight=!0,r.detach(),e.others.push(r)}),n.setUndoSelect(!1)},this.showOtherMarkers=function(){if(!this.othersActive){var e=this.session,t=this;this.othersActive=!0,this.others.forEach(function(n){n.markerId=e.addMarker(new r(n.row,n.column,n.row,n.column+t.length),t.othersClass,null,!1)})}},this.hideOtherMarkers=function(){if(this.othersActive){this.othersActive=!1;for(var e=0;e=this.pos.column&&t.start.column<=this.pos.column+this.length+1,o=t.start.column-this.pos.column;if(this.updateAnchors(e),i&&(this.length+=n),i&&!this.session.$fromUndo)if("insert"===e.action)for(var a=this.others.length-1;a>=0;a--){var s=this.others[a],l={row:s.row,column:s.column+o};this.doc.insertMergedLines(l,e.lines)}else if("remove"===e.action)for(a=this.others.length-1;a>=0;a--){s=this.others[a],l={row:s.row,column:s.column+o};this.doc.remove(new r(l.row,l.column,l.row,l.column-n))}this.$updating=!1,this.updateMarkers()}},this.updateAnchors=function(e){this.pos.onChange(e);for(var t=this.others.length;t--;)this.others[t].onChange(e);this.updateMarkers()},this.updateMarkers=function(){if(!this.$updating){var e=this,t=this.session,n=function(n,i){t.removeMarker(n.markerId),n.markerId=t.addMarker(new r(n.row,n.column,n.row,n.column+e.length),i,null,!1)};n(this.pos,this.mainClass);for(var i=this.others.length;i--;)n(this.others[i],this.othersClass)}},this.onCursorChange=function(e){if(!this.$updating&&this.session){var t=this.session.selection.getCursor();t.row===this.pos.row&&t.column>=this.pos.column&&t.column<=this.pos.column+this.length?(this.showOtherMarkers(),this._emit("cursorEnter",e)):(this.hideOtherMarkers(),this._emit("cursorLeave",e))}},this.detach=function(){this.session.removeMarker(this.pos&&this.pos.markerId),this.hideOtherMarkers(),this.doc.off("change",this.$onUpdate),this.session.selection.off("changeCursor",this.$onCursorChange),this.session.setUndoSelect(!0),this.session=null},this.cancel=function(){if(-1!==this.$undoStackDepth){for(var e=this.session.getUndoManager(),t=(e.$undoStack||e.$undostack).length-this.$undoStackDepth,n=0;n1?e.multiSelect.joinSelections():e.multiSelect.splitIntoLines()},bindKey:{win:"Ctrl-Alt-L",mac:"Ctrl-Alt-L"},readOnly:!0},{name:"splitSelectionIntoLines",description:"Split into lines",exec:function(e){e.multiSelect.splitIntoLines()},readOnly:!0},{name:"alignCursors",description:"Align cursors",exec:function(e){e.alignCursors()},bindKey:{win:"Ctrl-Alt-A",mac:"Ctrl-Alt-A"},scrollIntoView:"cursor"},{name:"findAll",description:"Find all",exec:function(e){e.findAll()},bindKey:{win:"Ctrl-Alt-K",mac:"Ctrl-Alt-G"},scrollIntoView:"cursor",readOnly:!0}],t.multiSelectCommands=[{name:"singleSelection",description:"Single selection",bindKey:"esc",exec:function(e){e.exitMultiSelectMode()},scrollIntoView:"cursor",readOnly:!0,isAvailable:function(e){return e&&e.inMultiSelectMode}}];var r=e("../keyboard/hash_handler").HashHandler;t.keyboardHandler=new r(t.multiSelectCommands)}),ace.define("ace/multi_select",["require","exports","module","ace/range_list","ace/range","ace/selection","ace/mouse/multi_select_handler","ace/lib/event","ace/lib/lang","ace/commands/multi_select_commands","ace/search","ace/edit_session","ace/editor","ace/config"],function(e,t,n){var r=e("./range_list").RangeList,i=e("./range").Range,o=e("./selection").Selection,a=e("./mouse/multi_select_handler").onMouseDown,s=e("./lib/event"),l=e("./lib/lang"),c=e("./commands/multi_select_commands");t.commands=c.defaultCommands.concat(c.multiSelectCommands);var u=e("./search").Search,h=new u;function f(e,t,n){return h.$options.wrap=!0,h.$options.needle=t,h.$options.backwards=-1==n,h.find(e)}var d=e("./edit_session").EditSession;(function(){this.getSelectionMarkers=function(){return this.$selectionMarkers}}).call(d.prototype),function(){this.ranges=null,this.rangeList=null,this.addRange=function(e,t){if(e){if(!this.inMultiSelectMode&&0===this.rangeCount){var n=this.toOrientedRange();if(this.rangeList.add(n),this.rangeList.add(e),2!=this.rangeList.ranges.length)return this.rangeList.removeAll(),t||this.fromOrientedRange(e);this.rangeList.removeAll(),this.rangeList.add(n),this.$onAddRange(n)}e.cursor||(e.cursor=e.end);var r=this.rangeList.add(e);return this.$onAddRange(e),r.length&&this.$onRemoveRange(r),this.rangeCount>1&&!this.inMultiSelectMode&&(this._signal("multiSelect"),this.inMultiSelectMode=!0,this.session.$undoSelect=!1,this.rangeList.attach(this.session)),t||this.fromOrientedRange(e)}},this.toSingleRange=function(e){e=e||this.ranges[0];var t=this.rangeList.removeAll();t.length&&this.$onRemoveRange(t),e&&this.fromOrientedRange(e)},this.substractPoint=function(e){var t=this.rangeList.substractPoint(e);if(t)return this.$onRemoveRange(t),t[0]},this.mergeOverlappingRanges=function(){var e=this.rangeList.merge();e.length&&this.$onRemoveRange(e)},this.$onAddRange=function(e){this.rangeCount=this.rangeList.ranges.length,this.ranges.unshift(e),this._signal("addRange",{range:e})},this.$onRemoveRange=function(e){if(this.rangeCount=this.rangeList.ranges.length,1==this.rangeCount&&this.inMultiSelectMode){var t=this.rangeList.ranges.pop();e.push(t),this.rangeCount=0}for(var n=e.length;n--;){var r=this.ranges.indexOf(e[n]);this.ranges.splice(r,1)}this._signal("removeRange",{ranges:e}),0===this.rangeCount&&this.inMultiSelectMode&&(this.inMultiSelectMode=!1,this._signal("singleSelect"),this.session.$undoSelect=!0,this.rangeList.detach(this.session)),t=t||this.ranges[0],t&&!t.isEqual(this.getRange())&&this.fromOrientedRange(t)},this.$initRangeList=function(){this.rangeList||(this.rangeList=new r,this.ranges=[],this.rangeCount=0)},this.getAllRanges=function(){return this.rangeCount?this.rangeList.ranges.concat():[this.getRange()]},this.splitIntoLines=function(){for(var e=this.ranges.length?this.ranges:[this.getRange()],t=[],n=0;n1){var e=this.rangeList.ranges,t=e[e.length-1],n=i.fromPoints(e[0].start,t.end);this.toSingleRange(),this.setSelectionRange(n,t.cursor==t.start)}else{var r=this.session.documentToScreenPosition(this.cursor),o=this.session.documentToScreenPosition(this.anchor),a=this.rectangularRangeBlock(r,o);a.forEach(this.addRange,this)}},this.rectangularRangeBlock=function(e,t,n){var r=[],o=e.column0)v--;if(v>0){var y=0;while(r[y].isEmpty())y++}for(var b=v;b>=y;b--)r[b].isEmpty()&&r.splice(b,1)}return r}}.call(o.prototype);var p=e("./editor").Editor;function m(e,t){return e.row==t.row&&e.column==t.column}function g(e){e.$multiselectOnSessionChange||(e.$onAddRange=e.$onAddRange.bind(e),e.$onRemoveRange=e.$onRemoveRange.bind(e),e.$onMultiSelect=e.$onMultiSelect.bind(e),e.$onSingleSelect=e.$onSingleSelect.bind(e),e.$multiselectOnSessionChange=t.onSessionChange.bind(e),e.$checkMultiselectChange=e.$checkMultiselectChange.bind(e),e.$multiselectOnSessionChange(e),e.on("changeSession",e.$multiselectOnSessionChange),e.on("mousedown",a),e.commands.addCommands(c.defaultCommands),v(e))}function v(e){if(e.textInput){var t=e.textInput.getElement(),n=!1;s.addListener(t,"keydown",function(t){var i=18==t.keyCode&&!(t.ctrlKey||t.shiftKey||t.metaKey);e.$blockSelectEnabled&&i?n||(e.renderer.setMouseCursor("crosshair"),n=!0):n&&r()},e),s.addListener(t,"keyup",r,e),s.addListener(t,"blur",r,e)}function r(t){n&&(e.renderer.setMouseCursor(""),n=!1)}}(function(){this.updateSelectionMarkers=function(){this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.addSelectionMarker=function(e){e.cursor||(e.cursor=e.end);var t=this.getSelectionStyle();return e.marker=this.session.addMarker(e,"ace_selection",t),this.session.$selectionMarkers.push(e),this.session.selectionMarkerCount=this.session.$selectionMarkers.length,e},this.removeSelectionMarker=function(e){if(e.marker){this.session.removeMarker(e.marker);var t=this.session.$selectionMarkers.indexOf(e);-1!=t&&this.session.$selectionMarkers.splice(t,1),this.session.selectionMarkerCount=this.session.$selectionMarkers.length}},this.removeSelectionMarkers=function(e){for(var t=this.session.$selectionMarkers,n=e.length;n--;){var r=e[n];if(r.marker){this.session.removeMarker(r.marker);var i=t.indexOf(r);-1!=i&&t.splice(i,1)}}this.session.selectionMarkerCount=t.length},this.$onAddRange=function(e){this.addSelectionMarker(e.range),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onRemoveRange=function(e){this.removeSelectionMarkers(e.ranges),this.renderer.updateCursor(),this.renderer.updateBackMarkers()},this.$onMultiSelect=function(e){this.inMultiSelectMode||(this.inMultiSelectMode=!0,this.setStyle("ace_multiselect"),this.keyBinding.addKeyboardHandler(c.keyboardHandler),this.commands.setDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers())},this.$onSingleSelect=function(e){this.session.multiSelect.inVirtualMode||(this.inMultiSelectMode=!1,this.unsetStyle("ace_multiselect"),this.keyBinding.removeKeyboardHandler(c.keyboardHandler),this.commands.removeDefaultHandler("exec",this.$onMultiSelectExec),this.renderer.updateCursor(),this.renderer.updateBackMarkers(),this._emit("changeSelection"))},this.$onMultiSelectExec=function(e){var t=e.command,n=e.editor;if(n.multiSelect){if(t.multiSelectAction)"forEach"==t.multiSelectAction?r=n.forEachSelection(t,e.args):"forEachLine"==t.multiSelectAction?r=n.forEachSelection(t,e.args,!0):"single"==t.multiSelectAction?(n.exitMultiSelectMode(),r=t.exec(n,e.args||{})):r=t.multiSelectAction(n,e.args||{});else{var r=t.exec(n,e.args||{});n.multiSelect.addRange(n.multiSelect.toOrientedRange()),n.multiSelect.mergeOverlappingRanges()}return r}},this.forEachSelection=function(e,t,n){if(!this.inVirtualSelectionMode){var r,i=n&&n.keepOrder,a=1==n||n&&n.$byLines,s=this.session,l=this.selection,c=l.rangeList,u=(i?l:c).ranges;if(!u.length)return e.exec?e.exec(this,t||{}):e(this,t||{});var h=l._eventRegistry;l._eventRegistry={};var f=new o(s);this.inVirtualSelectionMode=!0;for(var d=u.length;d--;){if(a)while(d>0&&u[d].start.row==u[d-1].end.row)d--;f.fromOrientedRange(u[d]),f.index=d,this.selection=s.selection=f;var p=e.exec?e.exec(this,t||{}):e(this,t||{});r||void 0===p||(r=p),f.toOrientedRange(u[d])}f.detach(),this.selection=s.selection=l,this.inVirtualSelectionMode=!1,l._eventRegistry=h,l.mergeOverlappingRanges(),l.ranges[0]&&l.fromOrientedRange(l.ranges[0]);var m=this.renderer.$scrollAnimation;return this.onCursorChange(),this.onSelectionChange(),m&&m.from==m.to&&this.renderer.animateScrolling(m.from),r}},this.exitMultiSelectMode=function(){this.inMultiSelectMode&&!this.inVirtualSelectionMode&&this.multiSelect.toSingleRange()},this.getSelectedText=function(){var e="";if(this.inMultiSelectMode&&!this.inVirtualSelectionMode){for(var t=this.multiSelect.rangeList.ranges,n=[],r=0;ra&&(a=n.column),iu?e.insert(r,l.stringRepeat(" ",o-u)):e.remove(new i(r.row,r.column,r.row,r.column-o+u)),t.start.column=t.end.column=a,t.start.row=t.end.row=r.row,t.cursor=t.end}),t.fromOrientedRange(n[0]),this.renderer.updateCursor(),this.renderer.updateBackMarkers()}else{var u=this.selection.getRange(),h=u.start.row,f=u.end.row,d=h==f;if(d){var p,m=this.session.getLength();do{p=this.session.getLine(f)}while(/[=:]/.test(p)&&++f0);h<0&&(h=0),f>=m&&(f=m-1)}var g=this.session.removeFullLines(h,f);g=this.$reAlignText(g,d),this.session.insert({row:h,column:0},g.join("\n")+"\n"),d||(u.start.column=0,u.end.column=g[g.length-1].length),this.selection.setRange(u)}},this.$reAlignText=function(e,t){var n,r,i,o=!0,a=!0;return e.map(function(e){var t=e.match(/(\s*)(.*?)(\s*)([=:].*)/);return t?null==n?(n=t[1].length,r=t[2].length,i=t[3].length,t):(n+r+i!=t[1].length+t[2].length+t[3].length&&(a=!1),n!=t[1].length&&(o=!1),n>t[1].length&&(n=t[1].length),rt[3].length&&(i=t[3].length),t):[e]}).map(t?c:o?a?u:c:h);function s(e){return l.stringRepeat(" ",e)}function c(e){return e[2]?s(n)+e[2]+s(r-e[2].length+i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function u(e){return e[2]?s(n+r-e[2].length)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}function h(e){return e[2]?s(n)+e[2]+s(i)+e[4].replace(/^([=:])\s+/,"$1 "):e[0]}}}).call(p.prototype),t.onSessionChange=function(e){var t=e.session;t&&!t.multiSelect&&(t.$selectionMarkers=[],t.selection.$initRangeList(),t.multiSelect=t.selection),this.multiSelect=t&&t.multiSelect;var n=e.oldSession;n&&(n.multiSelect.off("addRange",this.$onAddRange),n.multiSelect.off("removeRange",this.$onRemoveRange),n.multiSelect.off("multiSelect",this.$onMultiSelect),n.multiSelect.off("singleSelect",this.$onSingleSelect),n.multiSelect.lead.off("change",this.$checkMultiselectChange),n.multiSelect.anchor.off("change",this.$checkMultiselectChange)),t&&(t.multiSelect.on("addRange",this.$onAddRange),t.multiSelect.on("removeRange",this.$onRemoveRange),t.multiSelect.on("multiSelect",this.$onMultiSelect),t.multiSelect.on("singleSelect",this.$onSingleSelect),t.multiSelect.lead.on("change",this.$checkMultiselectChange),t.multiSelect.anchor.on("change",this.$checkMultiselectChange)),t&&this.inMultiSelectMode!=t.selection.inMultiSelectMode&&(t.selection.inMultiSelectMode?this.$onMultiSelect():this.$onSingleSelect())},t.MultiSelect=g,e("./config").defineOptions(p.prototype,"editor",{enableMultiselect:{set:function(e){g(this),e?(this.on("changeSession",this.$multiselectOnSessionChange),this.on("mousedown",a)):(this.off("changeSession",this.$multiselectOnSessionChange),this.off("mousedown",a))},value:!0},enableBlockSelect:{set:function(e){this.$blockSelectEnabled=e},value:!0}})}),ace.define("ace/mode/folding/fold_mode",["require","exports","module","ace/range"],function(e,t,n){"use strict";var r=e("../../range").Range,i=t.FoldMode=function(){};(function(){this.foldingStartMarker=null,this.foldingStopMarker=null,this.getFoldWidget=function(e,t,n){var r=e.getLine(n);return this.foldingStartMarker.test(r)?"start":"markbeginend"==t&&this.foldingStopMarker&&this.foldingStopMarker.test(r)?"end":""},this.getFoldWidgetRange=function(e,t,n){return null},this.indentationBlock=function(e,t,n){var i=/\S/,o=e.getLine(t),a=o.search(i);if(-1!=a){var s=n||o.length,l=e.getLength(),c=t,u=t;while(++tc){var d=e.getLine(u).length;return new r(c,s,u,d)}}},this.openingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i+1},s=e.$findClosingBracket(t,a,o);if(s){var l=e.foldWidgets[s.row];return null==l&&(l=e.getFoldWidget(s.row)),"start"==l&&s.row>a.row&&(s.row--,s.column=e.getLine(s.row).length),r.fromPoints(a,s)}},this.closingBracketBlock=function(e,t,n,i,o){var a={row:n,column:i},s=e.$findOpeningBracket(t,a);if(s)return s.column++,a.column--,r.fromPoints(s,a)}}).call(i.prototype)}),ace.define("ace/theme/textmate",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";t.isDark=!1,t.cssClass="ace-tm",t.cssText='.ace-tm .ace_gutter {background: #f0f0f0;color: #333;}.ace-tm .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-tm .ace_fold {background-color: #6B72E6;}.ace-tm {background-color: #FFFFFF;color: black;}.ace-tm .ace_cursor {color: black;}.ace-tm .ace_invisible {color: rgb(191, 191, 191);}.ace-tm .ace_storage,.ace-tm .ace_keyword {color: blue;}.ace-tm .ace_constant {color: rgb(197, 6, 11);}.ace-tm .ace_constant.ace_buildin {color: rgb(88, 72, 246);}.ace-tm .ace_constant.ace_language {color: rgb(88, 92, 246);}.ace-tm .ace_constant.ace_library {color: rgb(6, 150, 14);}.ace-tm .ace_invalid {background-color: rgba(255, 0, 0, 0.1);color: red;}.ace-tm .ace_support.ace_function {color: rgb(60, 76, 114);}.ace-tm .ace_support.ace_constant {color: rgb(6, 150, 14);}.ace-tm .ace_support.ace_type,.ace-tm .ace_support.ace_class {color: rgb(109, 121, 222);}.ace-tm .ace_keyword.ace_operator {color: rgb(104, 118, 135);}.ace-tm .ace_string {color: rgb(3, 106, 7);}.ace-tm .ace_comment {color: rgb(76, 136, 107);}.ace-tm .ace_comment.ace_doc {color: rgb(0, 102, 255);}.ace-tm .ace_comment.ace_doc.ace_tag {color: rgb(128, 159, 191);}.ace-tm .ace_constant.ace_numeric {color: rgb(0, 0, 205);}.ace-tm .ace_variable {color: rgb(49, 132, 149);}.ace-tm .ace_xml-pe {color: rgb(104, 104, 91);}.ace-tm .ace_entity.ace_name.ace_function {color: #0000A2;}.ace-tm .ace_heading {color: rgb(12, 7, 255);}.ace-tm .ace_list {color:rgb(185, 6, 144);}.ace-tm .ace_meta.ace_tag {color:rgb(0, 22, 142);}.ace-tm .ace_string.ace_regex {color: rgb(255, 0, 0)}.ace-tm .ace_marker-layer .ace_selection {background: rgb(181, 213, 255);}.ace-tm.ace_multiselect .ace_selection.ace_start {box-shadow: 0 0 3px 0px white;}.ace-tm .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-tm .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-tm .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-tm .ace_marker-layer .ace_active-line {background: rgba(0, 0, 0, 0.07);}.ace-tm .ace_gutter-active-line {background-color : #dcdcdc;}.ace-tm .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-tm .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}',t.$id="ace/theme/textmate";var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass,!1)}),ace.define("ace/line_widgets",["require","exports","module","ace/lib/dom"],function(e,t,n){"use strict";var r=e("./lib/dom");function i(e){this.session=e,this.session.widgetManager=this,this.session.getRowLength=this.getRowLength,this.session.$getWidgetScreenLength=this.$getWidgetScreenLength,this.updateOnChange=this.updateOnChange.bind(this),this.renderWidgets=this.renderWidgets.bind(this),this.measureWidgets=this.measureWidgets.bind(this),this.session._changedWidgets=[],this.$onChangeEditor=this.$onChangeEditor.bind(this),this.session.on("change",this.updateOnChange),this.session.on("changeFold",this.updateOnFold),this.session.on("changeEditor",this.$onChangeEditor)}(function(){this.getRowLength=function(e){var t;return t=this.lineWidgets&&this.lineWidgets[e]&&this.lineWidgets[e].rowCount||0,this.$useWrapMode&&this.$wrapData[e]?this.$wrapData[e].length+1+t:1+t},this.$getWidgetScreenLength=function(){var e=0;return this.lineWidgets.forEach(function(t){t&&t.rowCount&&!t.hidden&&(e+=t.rowCount)}),e},this.$onChangeEditor=function(e){this.attach(e.editor)},this.attach=function(e){e&&e.widgetManager&&e.widgetManager!=this&&e.widgetManager.detach(),this.editor!=e&&(this.detach(),this.editor=e,e&&(e.widgetManager=this,e.renderer.on("beforeRender",this.measureWidgets),e.renderer.on("afterRender",this.renderWidgets)))},this.detach=function(e){var t=this.editor;if(t){this.editor=null,t.widgetManager=null,t.renderer.off("beforeRender",this.measureWidgets),t.renderer.off("afterRender",this.renderWidgets);var n=this.session.lineWidgets;n&&n.forEach(function(e){e&&e.el&&e.el.parentNode&&(e._inDocument=!1,e.el.parentNode.removeChild(e.el))})}},this.updateOnFold=function(e,t){var n=t.lineWidgets;if(n&&e.action){for(var r=e.data,i=r.start.row,o=r.end.row,a="add"==e.action,s=i+1;st[n].column&&n++,o.unshift(n,0),t.splice.apply(t,o),this.$updateRows()}}},this.$updateRows=function(){var e=this.session.lineWidgets;if(e){var t=!0;e.forEach(function(e,n){if(e){t=!1,e.row=n;while(e.$oldWidget)e.$oldWidget.row=n,e=e.$oldWidget}}),t&&(this.session.lineWidgets=null)}},this.$registerLineWidget=function(e){this.session.lineWidgets||(this.session.lineWidgets=new Array(this.session.getLength()));var t=this.session.lineWidgets[e.row];return t&&(e.$oldWidget=t,t.el&&t.el.parentNode&&(t.el.parentNode.removeChild(t.el),t._inDocument=!1)),this.session.lineWidgets[e.row]=e,e},this.addLineWidget=function(e){if(this.$registerLineWidget(e),e.session=this.session,!this.editor)return e;var t=this.editor.renderer;e.html&&!e.el&&(e.el=r.createElement("div"),e.el.innerHTML=e.html),e.el&&(r.addCssClass(e.el,"ace_lineWidgetContainer"),e.el.style.position="absolute",e.el.style.zIndex=5,t.container.appendChild(e.el),e._inDocument=!0,e.coverGutter||(e.el.style.zIndex=3),null==e.pixelHeight&&(e.pixelHeight=e.el.offsetHeight)),null==e.rowCount&&(e.rowCount=e.pixelHeight/t.layerConfig.lineHeight);var n=this.session.getFoldAt(e.row,0);if(e.$fold=n,n){var i=this.session.lineWidgets;e.row!=n.end.row||i[n.start.row]?e.hidden=!0:i[n.start.row]=e}return this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows(),this.renderWidgets(null,t),this.onWidgetChanged(e),e},this.removeLineWidget=function(e){if(e._inDocument=!1,e.session=null,e.el&&e.el.parentNode&&e.el.parentNode.removeChild(e.el),e.editor&&e.editor.destroy)try{e.editor.destroy()}catch(e){}if(this.session.lineWidgets){var t=this.session.lineWidgets[e.row];if(t==e)this.session.lineWidgets[e.row]=e.$oldWidget,e.$oldWidget&&this.onWidgetChanged(e.$oldWidget);else while(t){if(t.$oldWidget==e){t.$oldWidget=e.$oldWidget;break}t=t.$oldWidget}}this.session._emit("changeFold",{data:{start:{row:e.row}}}),this.$updateRows()},this.getWidgetsAtRow=function(e){var t=this.session.lineWidgets,n=t&&t[e],r=[];while(n)r.push(n),n=n.$oldWidget;return r},this.onWidgetChanged=function(e){this.session._changedWidgets.push(e),this.editor&&this.editor.renderer.updateFull()},this.measureWidgets=function(e,t){var n=this.session._changedWidgets,r=t.layerConfig;if(n&&n.length){for(var i=1/0,o=0;o0&&!r[i])i--;this.firstRow=n.firstRow,this.lastRow=n.lastRow,t.$cursorLayer.config=n;for(var a=i;a<=o;a++){var s=r[a];if(s&&s.el)if(s.hidden)s.el.style.top=-100-(s.pixelHeight||0)+"px";else{s._inDocument||(s._inDocument=!0,t.container.appendChild(s.el));var l=t.$cursorLayer.getPixelPosition({row:a,column:0},!0).top;s.coverLine||(l+=n.lineHeight*this.session.getRowLineCount(s.row)),s.el.style.top=l-n.offset+"px";var c=s.coverGutter?0:t.gutterWidth;s.fixedWidth||(c-=t.scrollLeft),s.el.style.left=c+"px",s.fullWidth&&s.screenWidth&&(s.el.style.minWidth=n.width+2*n.padding+"px"),s.fixedWidth?s.el.style.right=t.scrollBar.getWidth()+"px":s.el.style.right=""}}}}}).call(i.prototype),t.LineWidgets=i}),ace.define("ace/ext/error_marker",["require","exports","module","ace/line_widgets","ace/lib/dom","ace/range"],function(e,t,n){"use strict";var r=e("../line_widgets").LineWidgets,i=e("../lib/dom"),o=e("../range").Range;function a(e,t,n){var r=0,i=e.length-1;while(r<=i){var o=r+i>>1,a=n(t,e[o]);if(a>0)r=o+1;else{if(!(a<0))return o;i=o-1}}return-(r+1)}function s(e,t,n){var r=e.getAnnotations().sort(o.comparePoints);if(r.length){var i=a(r,{row:t,column:-1},o.comparePoints);i<0&&(i=-i-1),i>=r.length?i=n>0?0:r.length-1:0===i&&n<0&&(i=r.length-1);var s=r[i];if(s&&n){if(s.row===t){do{s=r[i+=n]}while(s&&s.row===t);if(!s)return r.slice()}var l=[];t=s.row;do{l[n<0?"unshift":"push"](s),s=r[i+=n]}while(s&&s.row==t);return l.length&&l}}}t.showErrorMarker=function(e,t){var n=e.session;n.widgetManager||(n.widgetManager=new r(n),n.widgetManager.attach(e));var o=e.getCursorPosition(),a=o.row,l=n.widgetManager.getWidgetsAtRow(a).filter(function(e){return"errorMarker"==e.type})[0];l?l.destroy():a-=t;var c,u=s(n,a,t);if(u){var h=u[0];o.column=(h.pos&&"number"!=typeof h.column?h.pos.sc:h.column)||0,o.row=h.row,c=e.renderer.$gutterLayer.$annotations[o.row]}else{if(l)return;c={text:["Looks good!"],className:"ace_ok"}}e.session.unfold(o.row),e.selection.moveToPosition(o);var f={row:o.row,fixedWidth:!0,coverGutter:!0,el:i.createElement("div"),type:"errorMarker"},d=f.el.appendChild(i.createElement("div")),p=f.el.appendChild(i.createElement("div"));p.className="error_widget_arrow "+c.className;var m=e.renderer.$cursorLayer.getPixelPosition(o).left;p.style.left=m+e.renderer.gutterWidth-5+"px",f.el.className="error_widget_wrapper",d.className="error_widget "+c.className,d.innerHTML=c.text.join("
"),d.appendChild(i.createElement("div"));var g=function(e,t,n){if(0===t&&("esc"===n||"return"===n))return f.destroy(),{command:"null"}};f.destroy=function(){e.$mouseHandler.isMousePressed||(e.keyBinding.removeKeyboardHandler(g),n.widgetManager.removeLineWidget(f),e.off("changeSelection",f.destroy),e.off("changeSession",f.destroy),e.off("mouseup",f.destroy),e.off("change",f.destroy))},e.keyBinding.addKeyboardHandler(g),e.on("changeSelection",f.destroy),e.on("changeSession",f.destroy),e.on("mouseup",f.destroy),e.on("change",f.destroy),e.session.widgetManager.addLineWidget(f),f.el.onmousedown=e.focus.bind(e),e.renderer.scrollCursorIntoView(null,.5,{bottom:f.el.offsetHeight})},i.importCssString(" .error_widget_wrapper { background: inherit; color: inherit; border:none } .error_widget { border-top: solid 2px; border-bottom: solid 2px; margin: 5px 0; padding: 10px 40px; white-space: pre-wrap; } .error_widget.ace_error, .error_widget_arrow.ace_error{ border-color: #ff5a5a } .error_widget.ace_warning, .error_widget_arrow.ace_warning{ border-color: #F1D817 } .error_widget.ace_info, .error_widget_arrow.ace_info{ border-color: #5a5a5a } .error_widget.ace_ok, .error_widget_arrow.ace_ok{ border-color: #5aaa5a } .error_widget_arrow { position: absolute; border: solid 5px; border-top-color: transparent!important; border-right-color: transparent!important; border-left-color: transparent!important; top: -5px; }","error_marker.css",!1)}),ace.define("ace/ace",["require","exports","module","ace/lib/fixoldbrowsers","ace/lib/dom","ace/lib/event","ace/range","ace/editor","ace/edit_session","ace/undomanager","ace/virtual_renderer","ace/worker/worker_client","ace/keyboard/hash_handler","ace/placeholder","ace/multi_select","ace/mode/folding/fold_mode","ace/theme/textmate","ace/ext/error_marker","ace/config"],function(e,t,r){"use strict";e("./lib/fixoldbrowsers");var i=e("./lib/dom"),o=e("./lib/event"),a=e("./range").Range,s=e("./editor").Editor,l=e("./edit_session").EditSession,c=e("./undomanager").UndoManager,u=e("./virtual_renderer").VirtualRenderer;e("./worker/worker_client"),e("./keyboard/hash_handler"),e("./placeholder"),e("./multi_select"),e("./mode/folding/fold_mode"),e("./theme/textmate"),e("./ext/error_marker"),t.config=e("./config"),t.require=e,t.define=n("B9Yq"),t.edit=function(e,n){if("string"==typeof e){var r=e;if(e=document.getElementById(r),!e)throw new Error("ace.edit can't find div #"+r)}if(e&&e.env&&e.env.editor instanceof s)return e.env.editor;var a="";if(e&&/input|textarea/i.test(e.tagName)){var l=e;a=l.value,e=i.createElement("pre"),l.parentNode.replaceChild(e,l)}else e&&(a=e.textContent,e.innerHTML="");var c=t.createEditSession(a),h=new s(new u(e),c,n),f={document:c,editor:h,onResize:h.resize.bind(h,null)};return l&&(f.textarea=l),o.addListener(window,"resize",f.onResize),h.on("destroy",function(){o.removeListener(window,"resize",f.onResize),f.editor.container.env=null}),h.container.env=h.env=f,h},t.createEditSession=function(e,t){var n=new l(e,t);return n.setUndoManager(new c),n},t.Range=a,t.Editor=s,t.EditSession=l,t.UndoManager=c,t.VirtualRenderer=u,t.version=t.config.version}),function(){ace.require(["ace/ace"],function(t){for(var n in t&&(t.config.init(!0),t.define=ace.define),window.ace||(window.ace=t),t)t.hasOwnProperty(n)&&(window.ace[n]=t[n]);window.ace["default"]=window.ace,e&&(e.exports=window.ace)})}()}).call(this,n("YuTi")(e))},bV5f:function(e,t){var n=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=n)},bYtY:function(e,t,n){"use strict";n.d(t,"n",function(){return g}),n.d(t,"C",function(){return v}),n.d(t,"d",function(){return y}),n.d(t,"E",function(){return b}),n.d(t,"l",function(){return w}),n.d(t,"i",function(){return x}),n.d(t,"p",function(){return _}),n.d(t,"q",function(){return E}),n.d(t,"F",function(){return S}),n.d(t,"s",function(){return C}),n.d(t,"j",function(){return k}),n.d(t,"D",function(){return O}),n.d(t,"I",function(){return T}),n.d(t,"m",function(){return A}),n.d(t,"B",function(){return P}),n.d(t,"c",function(){return R}),n.d(t,"h",function(){return j}),n.d(t,"r",function(){return L}),n.d(t,"u",function(){return D}),n.d(t,"y",function(){return N}),n.d(t,"z",function(){return I}),n.d(t,"w",function(){return $}),n.d(t,"x",function(){return F}),n.d(t,"A",function(){return V}),n.d(t,"t",function(){return W}),n.d(t,"v",function(){return H}),n.d(t,"k",function(){return U}),n.d(t,"J",function(){return z}),n.d(t,"K",function(){return q}),n.d(t,"L",function(){return K}),n.d(t,"N",function(){return G}),n.d(t,"H",function(){return Y}),n.d(t,"b",function(){return X}),n.d(t,"O",function(){return Q}),n.d(t,"M",function(){return J}),n.d(t,"f",function(){return ne}),n.d(t,"e",function(){return re}),n.d(t,"g",function(){return ie}),n.d(t,"o",function(){return oe}),n.d(t,"G",function(){return ae}),n.d(t,"a",function(){return se});var r=n("cm6r"),i=T(["Function","RegExp","Date","Error","CanvasGradient","CanvasPattern","Image","Canvas"],function(e,t){return e["[object "+t+"]"]=!0,e},{}),o=T(["Int8","Uint8","Uint8Clamped","Int16","Uint16","Int32","Uint32","Float32","Float64"],function(e,t){return e["[object "+t+"Array]"]=!0,e},{}),a=Object.prototype.toString,s=Array.prototype,l=s.forEach,c=s.filter,u=s.slice,h=s.map,f=function(){}.constructor,d=f?f.prototype:null,p="__proto__",m=2311;function g(){return m++}function v(){for(var e=[],t=0;t-1};function l(e){if("string"!==typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function c(e){return"string"!==typeof e&&(e=String(e)),e}function u(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return i.iterable&&(t[Symbol.iterator]=function(){return t}),t}function h(e){this.map={},e instanceof h?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise(function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}})}function p(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function m(e){var t=new FileReader,n=d(t);return t.readAsText(e),n}function g(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r-1?t:e}function x(e,t){if(!(this instanceof x))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t=t||{};var n=t.body;if(e instanceof x){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new h(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,n||null==e._bodyInit||(n=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new h(t.headers)),this.method=w(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var r=/([?&])_=[^&]*/;if(r.test(this.url))this.url=this.url.replace(r,"$1_="+(new Date).getTime());else{var i=/\?/;this.url+=(i.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function _(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),i=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(i))}}),t}function E(e){var t=new h,n=e.replace(/\r?\n[\t ]+/g," ");return n.split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}).forEach(function(e){var n=e.split(":"),r=n.shift().trim();if(r){var i=n.join(":").trim();t.append(r,i)}}),t}function S(e,t){if(!(this instanceof S))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new h(t.headers),this.url=t.url||"",this._initBody(e)}x.prototype.clone=function(){return new x(this,{body:this._bodyInit})},y.call(x.prototype),y.call(S.prototype),S.prototype.clone=function(){return new S(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new h(this.headers),url:this.url})},S.error=function(){var e=new S(null,{status:0,statusText:""});return e.type="error",e};var C=[301,302,303,307,308];S.redirect=function(e,t){if(-1===C.indexOf(t))throw new RangeError("Invalid status code");return new S(null,{status:t,headers:{location:e}})};var k=r.DOMException;try{new k}catch(e){k=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack},k.prototype=Object.create(Error.prototype),k.prototype.constructor=k}function O(e,t){return new Promise(function(n,o){var a=new x(e,t);if(a.signal&&a.signal.aborted)return o(new k("Aborted","AbortError"));var s=new XMLHttpRequest;function l(){s.abort()}function u(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}s.onload=function(){var e={status:s.status,statusText:s.statusText,headers:E(s.getAllResponseHeaders()||"")};e.url="responseURL"in s?s.responseURL:e.headers.get("X-Request-URL");var t="response"in s?s.response:s.responseText;setTimeout(function(){n(new S(t,e))},0)},s.onerror=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},s.ontimeout=function(){setTimeout(function(){o(new TypeError("Network request failed"))},0)},s.onabort=function(){setTimeout(function(){o(new k("Aborted","AbortError"))},0)},s.open(a.method,u(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(i.blob?s.responseType="blob":i.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!==typeof t.headers||t.headers instanceof h?a.headers.forEach(function(e,t){s.setRequestHeader(t,e)}):Object.getOwnPropertyNames(t.headers).forEach(function(e){s.setRequestHeader(e,c(t.headers[e]))}),a.signal&&(a.signal.addEventListener("abort",l),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",l)}),s.send("undefined"===typeof a._bodyInit?null:a._bodyInit)})}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=h,r.Request=x,r.Response=S)},bdgK:function(e,t,n){"use strict";n.r(t),function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some(function(e,r){return e[0]===t&&(n=r,!0)}),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n0},e.prototype.connect_=function(){r&&!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)},e.prototype.disconnect_=function(){r&&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,r=c.some(function(e){return!!~n.indexOf(e)});r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),f=function(e,t){for(var n=0,r=Object.keys(t);n0},e}(),T="undefined"!==typeof WeakMap?new WeakMap:new n,A=function(){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=h.getInstance(),r=new O(t,n,this);T.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){A.prototype[e]=function(){var t;return(t=T.get(this))[e].apply(t,arguments)}});var P=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:A}();t["default"]=P}.call(this,n("yLpj"))},bmIi:function(e,t,n){"use strict";var r=n("/Mfd"),i=n("pQGJ"),o=n("lvAo"),a={};n("VPOE")(a,n("gL7N")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},brdU:function(e,t,n){"use strict";n.r(t);var 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};function i(e,t){if(e===t)return!0;if(null==e||null==t)return!1;if(Array.isArray(e))return Array.isArray(t)&&e.length===t.length&&e.every(function(e,n){return i(e,t[n])});var n="undefined"===typeof e?"undefined":r(e),o="undefined"===typeof t?"undefined":r(t);if(n!==o)return!1;if("object"===n){var a=e.valueOf(),s=t.valueOf();if(a!==e||s!==t)return i(a,s);var l=Object.keys(e),c=Object.keys(t);return l.length===c.length&&l.every(function(n){return i(e[n],t[n])})}return!1}t["default"]=i},bsDr:function(e,t,n){"use strict";var r=n("2a/h"),i=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"===typeof n){var o=n.call(e,t);if("object"!==typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(e,t)}},c0Oy:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},cDf5:function(e,t){function n(t){"@babel/helpers - typeof";return e.exports=n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports["default"]=e.exports,n(t)}e.exports=n,e.exports.__esModule=!0,e.exports["default"]=e.exports},cOkC:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.warning=i,t.note=o,t.resetWarned=a,t.call=s,t.warningOnce=l,t.noteOnce=c,t.default=void 0;var r={};function i(e,t){0}function o(e,t){0}function a(){r={}}function s(e,t,n){t||r[n]||(e(!1,n),r[n]=!0)}function l(e,t){s(i,e,t)}function c(e,t){s(o,e,t)}var u=l;t.default=u},cQyX:function(e,t,n){var r=n("gL7N")("iterator"),i=!1;try{var o=[7][r]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var o=[7],a=o[r]();a.next=function(){return{done:n=!0}},o[r]=function(){return a},e(o)}catch(e){}return n}},ccE7:function(e,t,n){var r=n("Ojgd"),i=n("Jes0");e.exports=function(e){return function(t,n){var o,a,s=String(i(t)),l=r(n),c=s.length;return l<0||l>=c?e?"":void 0:(o=s.charCodeAt(l),o<55296||o>56319||l+1===c||(a=s.charCodeAt(l+1))<56320||a>57343?e?s.charAt(l):o:e?s.slice(l,l+2):a-56320+(o-55296<<10)+65536)}}},ck9s:function(e,t,n){"use strict";var r=n("ZFOp"),i=n("MgzW"),o=n("8jRI");function a(e){switch(e.arrayFormat){case"index":return function(t,n,r){return null===n?[l(t,e),"[",r,"]"].join(""):[l(t,e),"[",l(r,e),"]=",l(n,e)].join("")};case"bracket":return function(t,n){return null===n?l(t,e):[l(t,e),"[]=",l(n,e)].join("")};default:return function(t,n){return null===n?l(t,e):[l(t,e),"=",l(n,e)].join("")}}}function s(e){var t;switch(e.arrayFormat){case"index":return function(e,n,r){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===r[e]&&(r[e]={}),r[e][t[1]]=n):r[e]=n};case"bracket":return function(e,n,r){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==r[e]?r[e]=[].concat(r[e],n):r[e]=[n]:r[e]=n};default:return function(e,t,n){void 0!==n[e]?n[e]=[].concat(n[e],t):n[e]=t}}}function l(e,t){return t.encode?t.strict?r(e):encodeURIComponent(e):e}function c(e){return Array.isArray(e)?e.sort():"object"===typeof e?c(Object.keys(e)).sort(function(e,t){return Number(e)-Number(t)}).map(function(t){return e[t]}):e}function u(e){var t=e.indexOf("?");return-1===t?"":e.slice(t+1)}function h(e,t){t=i({arrayFormat:"none"},t);var n=s(t),r=Object.create(null);return"string"!==typeof e?r:(e=e.trim().replace(/^[?#&]/,""),e?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),i=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:o(a),n(o(i),a,r)}),Object.keys(r).sort().reduce(function(e,t){var n=r[t];return Boolean(n)&&"object"===typeof n&&!Array.isArray(n)?e[t]=c(n):e[t]=n,e},Object.create(null))):r)}t.extract=u,t.parse=h,t.stringify=function(e,t){var n={encode:!0,strict:!0,arrayFormat:"none"};t=i(n,t),!1===t.sort&&(t.sort=function(){});var r=a(t);return e?Object.keys(e).sort(t.sort).map(function(n){var i=e[n];if(void 0===i)return"";if(null===i)return l(n,t);if(Array.isArray(i)){var o=[];return i.slice().forEach(function(e){void 0!==e&&o.push(r(n,e,o.length))}),o.join("&")}return l(n,t)+"="+l(i,t)}).filter(function(e){return e.length>0}).join("&"):""},t.parseUrl=function(e,t){return{url:e.split("?")[0]||"",query:h(u(e),t)}}},cm6r:function(e,t,n){"use strict";n.d(t,"c",function(){return r}),n.d(t,"b",function(){return i}),n.d(t,"a",function(){return o}),n.d(t,"d",function(){return h}),n.d(t,"e",function(){return f});var r=12,i="sans-serif",o=r+"px "+i,a=20,s=100,l="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function c(e){var t={};if("undefined"===typeof JSON)return t;for(var n=0;n=0)c=l*n.length;else for(var f=0;f{this.props.dispatch({type:"user/ban"})}})}userFilter(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];this.props.dispatch({type:"user/addFilter",key:e,condition:t,value:n,clear:r})}orderFilter(e,t,n){this.props.dispatch({type:"order/addFilter",key:e,condition:t,value:n}),_.a.push("/order")}resetSecret(e){var t=this;p["a"].confirm({title:"\u91cd\u7f6e\u5b89\u5168\u4fe1\u606f",content:"\u786e\u5b9a\u8981\u91cd\u7f6e".concat(e.email,"\u7684\u5b89\u5168\u4fe1\u606f\u5417\uff1f"),onOk(){t.props.dispatch({type:"user/resetSecret",id:e.id})},okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})}render(){var e,t,n,r,o,p,m=this.props.user,b=m.users,x=m.pagination,_=m.fetchLoading,E=m.filter,j=this.props.serverGroup.groups,L=this.props.plan.plans,D=[{title:"ID",dataIndex:"id",key:"id",sorter:!0},{title:"\u90ae\u7bb1",dataIndex:"email",key:"email",render:(e,t)=>{return g.a.createElement(f["a"],{placement:"top",title:t.t?"\u6700\u540e\u5728\u7ebf".concat(w()(1e3*t.t).format("YYYY-MM-DD HH:mm:ss")):"\u4ece\u672a\u5728\u7ebf"},g.a.createElement(d["a"],{status:(new Date).getTime()/1e3-600>t.t?"default":"success"}),e)}},{title:"\u72b6\u6001",dataIndex:"banned",key:"banned",sorter:!0,render:e=>{return g.a.createElement(h["a"],{color:e?"red":"green"},e?"\u5c01\u7981":"\u6b63\u5e38")}},{title:"\u8ba2\u9605",dataIndex:"plan_name",key:"plan_id",sorter:!0,render:e=>{return e||"-"}},{title:"\u6743\u9650\u7ec4",dataIndex:"group_id",key:"group_id",sorter:!0,render:e=>{var t=j.find(t=>t.id===e);return t?t.name:"-"}},{title:"\u5df2\u7528(G)",dataIndex:"total_used",key:"total_used",sorter:!0,render:(e,t)=>{return g.a.createElement(h["a"],{color:parseFloat(e)>parseFloat(t.transfer_enable)?"red":"green"},e)}},{title:"\u6d41\u91cf(G)",dataIndex:"transfer_enable",key:"transfer_enable",sorter:!0,render:(e,t)=>{return e}},{title:"\u5230\u671f\u65f6\u95f4",dataIndex:"expired_at",key:"expired_at",sorter:!0,render:e=>{return g.a.createElement(h["a"],{color:e<(new Date).getTime()/1e3&&null!==e?"red":"green"},e?w()(1e3*e).format("YYYY/MM/DD HH:mm"):null===e?"\u957f\u671f\u6709\u6548":"-")}},{title:"\u4f59\u989d",dataIndex:"balance",key:"balance",sorter:!0},{title:"\u4f63\u91d1",dataIndex:"commission_balance",key:"commission_balance",sorter:!0},{title:"\u52a0\u5165\u65f6\u95f4",dataIndex:"created_at",key:"created_at",sorter:!0,render:e=>{return w()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t,n)=>{return g.a.createElement(g.a.Fragment,null,g.a.createElement(l["a"],{trigger:"click",overlay:g.a.createElement(c["a"],null,g.a.createElement(c["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},g.a.createElement(C["a"],{userId:t.id,key:t.id},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"edit"})," \u7f16\u8f91"))),g.a.createElement(c["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},g.a.createElement(S["a"],{email:t.email,key:t.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"plus"})," \u5206\u914d\u8ba2\u5355"))),g.a.createElement(c["a"].Item,null,g.a.createElement("a",{onClick:()=>Object(A["a"])(t.subscribe_url)},g.a.createElement(u["a"],{type:"copy"})," \u590d\u5236\u8ba2\u9605URL")),g.a.createElement(c["a"].Item,null,g.a.createElement("a",{onClick:()=>this.resetSecret(t)},g.a.createElement(u["a"],{type:"reload"})," \u91cd\u7f6eUUID\u53ca\u8ba2\u9605URL")),g.a.createElement(c["a"].Item,{onClick:()=>this.orderFilter("user_id","=",t.id)},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"account-book"})," TA\u7684\u8ba2\u5355")),g.a.createElement(c["a"].Item,{onClick:()=>this.userFilter("invite_user_id","=",t.id,!0)},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"usergroup-add"})," TA\u7684\u9080\u8bf7")),g.a.createElement(c["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},g.a.createElement(R["a"],{userId:null===t||void 0===t?void 0:t.id,key:null===t||void 0===t?void 0:t.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"solution"})," TA\u7684\u6d41\u91cf\u8bb0\u5f55"))))},g.a.createElement("a",{href:"javascript:void(0);"},"\u64cd\u4f5c ",g.a.createElement(u["a"],{type:"caret-down"}))))}}];return g.a.createElement(v["a"],i()({},this.props,{title:"\u7528\u6237\u7ba1\u7406"}),g.a.createElement(M["a"],{loading:_},g.a.createElement("div",{className:"block border-bottom"},g.a.createElement("div",{className:"bg-white"},g.a.createElement("div",{className:"v2board-table-action",style:{padding:15}},g.a.createElement(f["a"],{title:"Tips\uff1a\u53ef\u4ee5\u4f7f\u7528\u8fc7\u6ee4\u5668\u8fc7\u6ee4\u540e\u518d\u4f7f\u7528\u64cd\u4f5c\u5bf9\u8fc7\u6ee4\u7684\u7528\u6237\u8fdb\u884c\u64cd\u4f5c\u3002",placement:"right"},g.a.createElement(k["a"],null,g.a.createElement(O["a"],{key:E.length,value:E,onOk:e=>this.props.dispatch({type:"user/filter",filter:e}),keys:[{key:"email",title:"\u90ae\u7bb1",condition:["\u6a21\u7cca"]},{key:"id",title:"\u7528\u6237ID",condition:["=",">=",">","<","<="]},{key:"plan_id",title:"\u8ba2\u9605",condition:["="],type:"select",options:L.map(e=>({key:e.name,value:e.id}))},{key:"transfer_enable",title:"\u6d41\u91cf",condition:[">=",">","<","<="]},{key:"d",title:"\u4e0b\u884c",condition:[">=",">","<","<="]},{key:"expired_at",title:"\u5230\u671f\u65f6\u95f4",condition:[">=",">","<","<="],type:"date"},{key:"uuid",title:"UUID",condition:["="]},{key:"token",title:"TOKEN",condition:["="]},{key:"banned",title:"\u8d26\u53f7\u72b6\u6001",condition:["="],type:"select",options:[{key:"\u6b63\u5e38",value:0},{key:"\u5c01\u7981",value:1}]},{key:"invite_by_email",title:"\u9080\u8bf7\u4eba\u90ae\u7bb1",condition:["\u6a21\u7cca"]},{key:"invite_user_id",title:"\u9080\u8bf7\u4ebaID",condition:["="]},{key:"remarks",title:"\u5907\u6ce8",condition:["\u6a21\u7cca"]}]},g.a.createElement(s["a"],{type:E.length>0?"primary":""},g.a.createElement(u["a"],{type:"filter"})," \u8fc7\u6ee4\u5668")),g.a.createElement(l["a"],{overlay:g.a.createElement(c["a"],null,g.a.createElement(c["a"].Item,null,g.a.createElement("a",{onClick:()=>this.dumpCSV()},g.a.createElement(u["a"],{type:"file-excel"})," \u5bfc\u51faCSV")),g.a.createElement(c["a"].Item,null,g.a.createElement(y["a"],null,g.a.createElement("a",null,g.a.createElement(u["a"],{type:"mail"})," \u53d1\u9001\u90ae\u4ef6"))),g.a.createElement(c["a"].Item,{disabled:!E.length},g.a.createElement("a",{disabled:!E.length,onClick:()=>this.ban()},g.a.createElement(u["a"],{type:"stop"})," \u6279\u91cf\u5c01\u7981")))},g.a.createElement(s["a"],null,g.a.createElement(u["a"],{type:"select"}),"\u64cd\u4f5c")))),g.a.createElement(T["a"],null,g.a.createElement(s["a"],{className:"ml-2"},g.a.createElement(u["a"],{type:"user-add"})))),g.a.createElement(P["a"],{onContextMenu:e=>{this.record=e,this.forceUpdate()},className:"v2board-table",tableLayout:"auto",dataSource:b,pagination:a()({},x,{size:"small",showSizeChanger:!0,pageSizeOptions:[10,50,100,150]}),columns:D,scroll:{x:1500},onChange:(e,t,n)=>this.tableOnChange(e,n)},g.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"},g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement(C["a"],{userId:null===(e=this.record)||void 0===e?void 0:e.id,key:null===(t=this.record)||void 0===t?void 0:t.id},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"edit"})," \u7f16\u8f91"))),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement(S["a"],{email:null===(n=this.record)||void 0===n?void 0:n.email,key:null===(r=this.record)||void 0===r?void 0:r.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"plus"})," \u5206\u914d\u8ba2\u5355"))),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement("a",{onClick:()=>{var e;return Object(A["a"])(null===(e=this.record)||void 0===e?void 0:e.subscribe_url)}},g.a.createElement(u["a"],{type:"copy"})," \u590d\u5236\u8ba2\u9605URL")),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement("a",{style:{color:"#ff4d4f"},onClick:()=>this.resetSecret(this.record)},g.a.createElement(u["a"],{type:"reload"})," \u91cd\u7f6eUUID\u53ca\u8ba2\u9605URL")),g.a.createElement("li",{className:"ant-dropdown-menu-item",onClick:()=>{var e;return this.orderFilter("user_id","=",null===(e=this.record)||void 0===e?void 0:e.id)}},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"account-book"})," TA\u7684\u8ba2\u5355")),g.a.createElement("li",{className:"ant-dropdown-menu-item",onClick:()=>{var e;return this.userFilter("invite_user_id","=",null===(e=this.record)||void 0===e?void 0:e.id,!0)}},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"usergroup-add"})," TA\u7684\u9080\u8bf7")),g.a.createElement("li",{className:"ant-dropdown-menu-item"},g.a.createElement(R["a"],{userId:null===(o=this.record)||void 0===o?void 0:o.id,key:null===(p=this.record)||void 0===p?void 0:p.email},g.a.createElement("a",null,g.a.createElement(u["a"],{type:"solution"})," TA\u7684\u6d41\u91cf\u8bb0\u5f55")))))))))}}t["default"]=Object(E["c"])(e=>{var t=e.user,n=e.serverGroup,r=e.plan;return{user:t,serverGroup:n,plan:r}})(j)},d6i3:function(e,t,n){e.exports=n("wOl0")},dX6P:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=n("3a4m"),c=n.n(l);t["default"]={name:"auth",state:{},reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{login(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.action,o=t.put,n.next=4,o({type:"save",payload:{loginLoading:!0}});case 4:return n.next=6,Object(s["b"])("/passport/auth/login",r);case 6:return a=n.sent,n.next=9,o({type:"save",payload:{loginLoading:!1}});case 9:if(200===a.code){n.next=11;break}return n.abrupt("return");case 11:if(a.data.is_admin){n.next=13;break}return n.abrupt("return");case 13:c.a.push("/dashboard");case 14:case"end":return n.stop()}},n)})()},register(e){return i.a.mark(function t(){var n,r,o;return i.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=e.action,r=e.complete,t.next=3,Object(s["a"])("/passport/auth/register",n);case 3:o=t.sent,o&&r(o);case 5:case"end":return t.stop()}},t)})()}}}},dcFJ:function(e,t,n){"use strict";var r=n("wHrr"),i=n("WGNW"),o=n("il4q"),a=n("69SZ"),s=n("ULMT"),l=n("OsVd"),c=n("aSE1"),u=n("BnQZ");i(i.S+i.F*!n("cQyX")(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,i,h,f=o(e),d="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,g=void 0!==m,v=0,y=u(f);if(g&&(m=r(m,p>2?arguments[2]:void 0,2)),void 0==y||d==Array&&s(y))for(t=l(f.length),n=new d(t);t>v;v++)c(n,v,g?m(f[v],v):f[v]);else for(h=y.call(f),n=new d;!(i=h.next()).done;v++)c(n,v,g?a(h,m,[i.value,v],!0):i.value);return n.length=v,n}})},dl0q:function(e,t,n){n("Zxgi")("observable")},dplF:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=o;var r=i(n("i8i4"));function i(e){return e&&e.__esModule?e:{default:e}}function o(e){return e instanceof HTMLElement?e:r.default.findDOMNode(e)}},dqUG:function(e,t,n){"use strict";n.d(t,"c",function(){return w}),n.d(t,"b",function(){return _});var r=n("mrSG"),i=n("1AkM"),o=n("3U8f"),a=n("bYtY"),s=n("6GrX"),l=n("Dagg"),c=n("x6Kt"),u=n("mFDi"),h=n("Gev7"),f=n("cm6r"),d={fill:"#000"},p=2,m={style:Object(a["i"])({fill:!0,stroke:!0,fillOpacity:!0,strokeOpacity:!0,lineWidth:!0,fontSize:!0,lineHeight:!0,width:!0,height:!0,textShadowColor:!0,textShadowBlur:!0,textShadowOffsetX:!0,textShadowOffsetY:!0,backgroundColor:!0,padding:!0,borderColor:!0,borderWidth:!0,borderRadius:!0},h["a"].style)},g=function(e){function t(t){var n=e.call(this)||this;return n.type="text",n._children=[],n._defaultStyle=d,n.attr(t),n}return Object(r["a"])(t,e),t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var t=0;t0,$=null!=e.width&&("truncate"===e.overflow||"break"===e.overflow||"breakAll"===e.overflow),F=a.calculatedLineHeight,B=0;B=0&&(R=_[M],"right"===R.align))this._placeToken(R,e,S,v,P,"right",b),C-=R.width,P-=R.width,M--;O+=(r-(O-g)-(y-P)-C)/2;while(k<=M)R=_[k],this._placeToken(R,e,S,v,O+R.width/2,"center",b),O+=R.width,k++;v+=S}},t.prototype._placeToken=function(e,t,n,r,i,l,c){var h=t.rich[e.styleName]||{};h.text=e.text;var d=e.verticalAlign,m=r+n/2;"top"===d?m=r+e.height/2:"bottom"===d&&(m=r+n-e.height/2);var g=!e.isLineHolder&&A(h);g&&this._renderBackground(h,t,"right"===l?i-e.width:"center"===l?i-e.width/2:i,m-e.height/2,e.width,e.height);var v=!!h.backgroundColor,y=e.textPadding;y&&(i=O(i,l,y),m-=e.height/2-y[0]-e.innerHeight/2);var b=this._getOrCreateChild(o["a"]),w=b.createStyle();b.useStyle(w);var _=this._defaultStyle,E=!1,S=0,T=k("fill"in h?h.fill:"fill"in t?t.fill:(E=!0,_.fill)),P=C("stroke"in h?h.stroke:"stroke"in t?t.stroke:v||c||_.autoStroke&&!E?null:(S=p,_.stroke)),M=h.textShadowBlur>0||t.textShadowBlur>0;w.text=e.text,w.x=i,w.y=m,M&&(w.shadowBlur=h.textShadowBlur||t.textShadowBlur||0,w.shadowColor=h.textShadowColor||t.textShadowColor||"transparent",w.shadowOffsetX=h.textShadowOffsetX||t.textShadowOffsetX||0,w.shadowOffsetY=h.textShadowOffsetY||t.textShadowOffsetY||0),w.textAlign=l,w.textBaseline="middle",w.font=e.font||f["a"],w.opacity=Object(a["L"])(h.opacity,t.opacity,1),x(w,h),P&&(w.lineWidth=Object(a["L"])(h.lineWidth,t.lineWidth,S),w.lineDash=Object(a["K"])(h.lineDash,t.lineDash),w.lineDashOffset=t.lineDashOffset||0,w.stroke=P),T&&(w.fill=T);var R=e.contentWidth,j=e.contentHeight;b.setBoundingRect(new u["a"](Object(s["a"])(w.x,R,w.textAlign),Object(s["b"])(w.y,j,w.textBaseline),R,j))},t.prototype._renderBackground=function(e,t,n,r,i,o){var s,u,h=e.backgroundColor,f=e.borderWidth,d=e.borderColor,p=h&&h.image,m=h&&!p,g=e.borderRadius,v=this;if(m||e.lineHeight||f&&d){s=this._getOrCreateChild(c["a"]),s.useStyle(s.createStyle()),s.style.fill=null;var y=s.shape;y.x=n,y.y=r,y.width=i,y.height=o,y.r=g,s.dirtyShape()}if(m){var b=s.style;b.fill=h||null,b.fillOpacity=Object(a["K"])(e.fillOpacity,1)}else if(p){u=this._getOrCreateChild(l["a"]),u.onload=function(){v.dirtyStyle()};var w=u.style;w.image=h.image,w.x=n,w.y=r,w.width=i,w.height=o}if(f&&d){b=s.style;b.lineWidth=f,b.stroke=d,b.strokeOpacity=Object(a["K"])(e.strokeOpacity,1),b.lineDash=e.borderDash,b.lineDashOffset=e.borderDashOffset||0,s.strokeContainThreshold=0,s.hasFill()&&s.hasStroke()&&(b.strokeFirst=!0,b.lineWidth*=2)}var x=(s||u).style;x.shadowBlur=e.shadowBlur||0,x.shadowColor=e.shadowColor||"transparent",x.shadowOffsetX=e.shadowOffsetX||0,x.shadowOffsetY=e.shadowOffsetY||0,x.opacity=Object(a["L"])(e.opacity,t.opacity,1)},t.makeFont=function(e){var t="";return _(e)&&(t=[e.fontStyle,e.fontWeight,w(e.fontSize),e.fontFamily||"sans-serif"].join(" ")),t&&Object(a["O"])(t)||e.textFont||e.font},t}(h["c"]),v={left:!0,right:1,center:1},y={top:1,bottom:1,middle:1},b=["fontStyle","fontWeight","fontSize","fontFamily"];function w(e){return"string"!==typeof e||-1===e.indexOf("px")&&-1===e.indexOf("rem")&&-1===e.indexOf("em")?isNaN(+e)?f["c"]+"px":e+"px":e}function x(e,t){for(var n=0;ne.ticket);case 3:return i=e.sent,a=i.pagination,c=i.filter,e.next=8,n({type:"setState",payload:{fetchLoading:!0}});case 8:return e.next=10,Object(l["a"])("/admin/ticket/fetch",s()({},a,c));case 10:return u=e.sent,e.next=13,n({type:"setState",payload:{fetchLoading:!1}});case 13:if(200===u.code){e.next=15;break}return e.abrupt("return");case 15:return e.next=17,n({type:"setState",payload:{tickets:u.data,pagination:s()({},a,{total:u.total})}});case 17:case"end":return e.stop()}},e)})()},fetchById(e,t){return o.a.mark(function n(){var r,i,a,s,c,u;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,i=t.put,a=t.select,n.next=4,Object(l["a"])("/admin/ticket/fetch",{id:r});case 4:if(s=n.sent,200===s.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,i({type:"setState",payload:{ticket:s.data}});case 9:return n.next=11,a(e=>e.user);case 11:if(c=n.sent,u=c.user,!u.id){n.next=15;break}return n.abrupt("return");case 15:return n.next=17,i({type:"user/getUserInfoById",id:s.data.user_id});case 17:case"end":return n.stop()}},n)})()},close(e,t){return o.a.mark(function n(){var r,i,a;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,i=t.put,n.next=4,Object(l["b"])("/admin/ticket/close",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,i({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},reply(e,t){return o.a.mark(function n(){var i,a,s,c,u;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return i=e.id,a=e.msg,s=e.callback,c=t.put,r["a"].loading("\u53d1\u9001\u4e2d"),n.next=5,c({type:"setState",payload:{replyLoading:!0}});case 5:return n.next=7,Object(l["b"])("/admin/ticket/reply",{id:i,message:a});case 7:return u=n.sent,n.next=10,c({type:"setState",payload:{replyLoading:!1}});case 10:if(r["a"].destroy(),200===u.code){n.next=13;break}return n.abrupt("return");case 13:return n.next=15,c({type:"fetchById",id:i});case 15:"function"===typeof s&&s();case 16:case"end":return n.stop()}},n)})()},filter(e,t){return o.a.mark(function n(){var r,i,a,l,c;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,i=e.filter,a=t.put,l=t.select,n.next=4,l(e=>e.ticket);case 4:return c=n.sent,n.next=7,a({type:"setState",payload:{pagination:s()({},c.pagination,r),filter:s()({},c.filter,i)}});case 7:return n.next=9,a({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},e6w7:function(e,t){t.f=Object.getOwnPropertySymbols},"eA/Y":function(e,t,n){"use strict";e.exports=o;var r=n("J78i"),i=Object.create(n("Onz0"));function o(e){if(!(this instanceof o))return new o(e);r.call(this,e)}i.inherits=n("P7XM"),i.inherits(o,r),o.prototype._transform=function(e,t,n){n(null,e)}},eDIo:function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("i8i4"),l=n.n(s),c=n("uciX"),u=n("TSYQ"),h=n.n(u),f={adjustX:1,adjustY:1},d=[0,0],p={topLeft:{points:["bl","tl"],overflow:f,offset:[0,-4],targetOffset:d},topCenter:{points:["bc","tc"],overflow:f,offset:[0,-4],targetOffset:d},topRight:{points:["br","tr"],overflow:f,offset:[0,-4],targetOffset:d},bottomLeft:{points:["tl","bl"],overflow:f,offset:[0,4],targetOffset:d},bottomCenter:{points:["tc","bc"],overflow:f,offset:[0,4],targetOffset:d},bottomRight:{points:["tr","br"],overflow:f,offset:[0,4],targetOffset:d}},m=p,g=n("VCL8"),v=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function w(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function x(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var _=function(e){function t(n){b(this,t);var r=w(this,e.call(this,n));return E.call(r),r.state="visible"in n?{visible:n.visible}:{visible:n.defaultVisible},r}return x(t,e),t.getDerivedStateFromProps=function(e){return"visible"in e?{visible:e.visible}:null},t.prototype.getOverlayElement=function(){var e=this.props.overlay,t=void 0;return t="function"===typeof e?e():e,t},t.prototype.getMenuElementOrLambda=function(){var e=this.props.overlay;return"function"===typeof e?this.getMenuElement:this.getMenuElement()},t.prototype.getPopupDomNode=function(){return this.trigger.getPopupDomNode()},t.prototype.getOpenClassName=function(){var e=this.props,t=e.openClassName,n=e.prefixCls;return void 0!==t?t:n+"-open"},t.prototype.renderChildren=function(){var e=this.props.children,t=this.state.visible,n=e.props?e.props:{},i=h()(n.className,this.getOpenClassName());return t&&e?Object(r["cloneElement"])(e,{className:i}):e},t.prototype.render=function(){var e=this.props,t=e.prefixCls,n=e.transitionName,r=e.animation,o=e.align,a=e.placement,s=e.getPopupContainer,l=e.showAction,u=e.hideAction,h=e.overlayClassName,f=e.overlayStyle,d=e.trigger,p=y(e,["prefixCls","transitionName","animation","align","placement","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","trigger"]),g=u;return g||-1===d.indexOf("contextMenu")||(g=["click"]),i.a.createElement(c["a"],v({},p,{prefixCls:t,ref:this.saveTrigger,popupClassName:h,popupStyle:f,builtinPlacements:m,action:d,showAction:l,hideAction:g||[],popupPlacement:a,popupAlign:o,popupTransitionName:n,popupAnimation:r,popupVisible:this.state.visible,afterPopupVisibleChange:this.afterVisibleChange,popup:this.getMenuElementOrLambda(),onPopupVisibleChange:this.onVisibleChange,getPopupContainer:s}),this.renderChildren())},t}(r["Component"]);_.propTypes={minOverlayWidthMatchTrigger:a.a.bool,onVisibleChange:a.a.func,onOverlayClick:a.a.func,prefixCls:a.a.string,children:a.a.any,transitionName:a.a.string,overlayClassName:a.a.string,openClassName:a.a.string,animation:a.a.any,align:a.a.object,overlayStyle:a.a.object,placement:a.a.string,overlay:a.a.oneOfType([a.a.node,a.a.func]),trigger:a.a.array,alignPoint:a.a.bool,showAction:a.a.array,hideAction:a.a.array,getPopupContainer:a.a.func,visible:a.a.bool,defaultVisible:a.a.bool},_.defaultProps={prefixCls:"rc-dropdown",trigger:["hover"],showAction:[],overlayClassName:"",overlayStyle:{},defaultVisible:!1,onVisibleChange:function(){},placement:"bottomLeft"};var E=function(){var e=this;this.onClick=function(t){var n=e.props,r=e.getOverlayElement().props;"visible"in n||e.setState({visible:!1}),n.onOverlayClick&&n.onOverlayClick(t),r.onClick&&r.onClick(t)},this.onVisibleChange=function(t){var n=e.props;"visible"in n||e.setState({visible:t}),n.onVisibleChange(t)},this.getMinOverlayWidthMatchTrigger=function(){var t=e.props,n=t.minOverlayWidthMatchTrigger,r=t.alignPoint;return"minOverlayWidthMatchTrigger"in e.props?n:!r},this.getMenuElement=function(){var t=e.props.prefixCls,n=e.getOverlayElement(),r={prefixCls:t+"-menu",onClick:e.onClick};return"string"===typeof n.type&&delete r.prefixCls,i.a.cloneElement(n,r)},this.afterVisibleChange=function(t){if(t&&e.getMinOverlayWidthMatchTrigger()){var n=e.getPopupDomNode(),r=l.a.findDOMNode(e);r&&n&&r.offsetWidth>n.offsetWidth&&(n.style.minWidth=r.offsetWidth+"px",e.trigger&&e.trigger._component&&e.trigger._component.alignInstance&&e.trigger._component.alignInstance.forceAlign())}},this.saveTrigger=function(t){e.trigger=t}};Object(g["polyfill"])(_);var S=_;t["a"]=S},eGJ5:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("q1tI"),a=n("iCc5"),s=n.n(a),l=n("FYw3"),c=n.n(l),u=n("mRg0"),h=n.n(u),f=n("i8i4"),d=n("4IlW"),p=n("l4aY"),m=n("MFj2"),g=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ithis.setState({visible:!1})})}show(){this.props.dispatch({type:"payment/getPaymentMethods",complete:e=>{this.setState({visible:!0,paymentMethods:e,selectPaymentMethod:this.state.submit.payment||e[0]},()=>{this.onSelectPaymentMethod(this.state.submit.payment||e[0])})}})}onSelectPaymentMethod(e){this.props.dispatch({type:"payment/getPaymentForm",payment:e,id:this.state.submit.id,complete:t=>{this.setState({form:t,selectPaymentMethod:e})}})}configOnChange(e,t){var n=this.state.config;n[e]=t,this.setState({config:n})}submitOnChange(e,t){var n=this.state.submit;n[e]=t,this.setState({submit:n})}render(){var e=this.props.payment.fetchLoading,t=this.state,n=t.paymentMethods,r=t.selectPaymentMethod,i=t.form,o=t.config,a=t.submit;return d.a.createElement(d.a.Fragment,null,d.a.cloneElement(this.props.children,{onClick:()=>this.show()}),d.a.createElement(s["a"],{title:this.state.submit.id?"\u7f16\u8f91\u652f\u4ed8\u65b9\u5f0f":"\u6dfb\u52a0\u652f\u4ed8\u65b9\u5f0f",visible:this.state.visible,onCancel:()=>this.setState({visible:!1}),onOk:()=>this.save(),okText:this.state.submit.id?"\u4fdd\u5b58":"\u6dfb\u52a0",okButtonProps:{loading:e},cancelText:"\u53d6\u6d88"},d.a.createElement("div",null,d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{for:"example-text-input-alt"},"\u663e\u793a\u540d\u79f0"),d.a.createElement(v["a"],{placeholder:"\u7528\u4e8e\u524d\u7aef\u663e\u793a\u4f7f\u7528",defaultValue:a.name,onChange:e=>this.submitOnChange("name",e.target.value)})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u56fe\u6807URL(\u9009\u586b)"),d.a.createElement(v["a"],{placeholder:"\u7528\u4e8e\u524d\u7aef\u663e\u793a\u4f7f\u7528(https://x.com/icon.svg)",defaultValue:a.icon,onChange:e=>this.submitOnChange("icon",e.target.value)})),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u81ea\u5b9a\u4e49\u901a\u77e5\u57df\u540d(\u9009\u586b)"),d.a.createElement(v["a"],{placeholder:"\u7f51\u5173\u7684\u901a\u77e5\u5c06\u4f1a\u53d1\u9001\u5230\u8be5\u57df\u540d(https://x.com)",defaultValue:a.notify_domain,onChange:e=>this.submitOnChange("notify_domain",e.target.value)})),d.a.createElement("div",{className:"row"},d.a.createElement("div",{className:"col-6"},d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u767e\u5206\u6bd4\u624b\u7eed\u8d39(\u9009\u586b)"),d.a.createElement(v["a"],{suffix:"%",type:"number",placeholder:"\u5728\u8ba2\u5355\u91d1\u989d\u57fa\u7840\u4e0a\u9644\u52a0\u624b\u7eed\u8d39",defaultValue:a.handling_fee_percent,onChange:e=>this.submitOnChange("handling_fee_percent",e.target.value)}))),d.a.createElement("div",{className:"col-6"},d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u56fa\u5b9a\u624b\u7eed\u8d39(\u9009\u586b)"),d.a.createElement(v["a"],{type:"number",placeholder:"\u5728\u8ba2\u5355\u91d1\u989d\u57fa\u7840\u4e0a\u9644\u52a0\u624b\u7eed\u8d39",defaultValue:a.handling_fee_fixed/100,onChange:e=>this.submitOnChange("handling_fee_fixed",100*e.target.value)})))),d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{for:"example-text-input-alt"},"\u63a5\u53e3\u6587\u4ef6"),d.a.createElement("div",null,d.a.createElement(g["a"],{style:{width:"100%"},defaultValue:r,onChange:e=>this.onSelectPaymentMethod(e)},n.map(e=>{return d.a.createElement(g["a"].Option,{value:e},e)})))),Object.keys(i).map(e=>{return d.a.createElement("div",{className:"form-group"},d.a.createElement("label",{for:"example-text-input-alt"},i[e].label),"input"===i[e].type&&d.a.createElement(v["a"],{placeholder:i[e].description,defaultValue:o[e]||i[e].value,onChange:t=>this.configOnChange(e,t.target.value)}))}),"MGate"===r&&d.a.createElement("div",{className:"alert alert-warning mb-0",role:"alert"},d.a.createElement("p",{className:"mb-0"},"MGate TG@nulledsan")))))}}var x=Object(m["c"])(e=>{var t=e.payment;return{payment:t}})(w),_=n("v32e"),E=n("qqou");class S extends d.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{show:0}}}componentDidMount(){this.props.dispatch({type:"payment/fetch"})}save(e,t){this.props.dispatch({type:"payment/save",params:{id:e,enable:t}})}show(e){this.props.dispatch({type:"payment/show",id:e})}render(){var e=this,t=this.props.payment,n=t.payments,r=t.fetchLoading,f=[{title:"ID",dataIndex:"id",key:"id",render:e=>{return d.a.createElement(d.a.Fragment,null,d.a.createElement(h["a"],{type:"menu",style:{cursor:"move"}})," ",e)}},{title:"\u542f\u7528",dataIndex:"enable",key:"enable",render:(e,t)=>d.a.createElement(u["a"],{checked:parseInt(e),size:"small",onChange:e=>this.show(t.id)})},{title:"\u663e\u793a\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u652f\u4ed8\u63a5\u53e3",dataIndex:"payment",key:"payment"},{title:d.a.createElement("span",null,"\u901a\u77e5\u5730\u5740 ",d.a.createElement(c["a"],{placement:"top",title:"\u652f\u4ed8\u7f51\u5173\u5c06\u4f1a\u628a\u6570\u636e\u901a\u77e5\u5230\u672c\u5730\u5740\uff0c\u8bf7\u901a\u8fc7\u9632\u706b\u5899\u653e\u884c\u672c\u5730\u5740\u3002"},d.a.createElement(h["a"],{type:"question-circle"}))),dataIndex:"notify_url",key:"notify_url"},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t)=>d.a.createElement(d.a.Fragment,null,d.a.createElement(x,{key:t.id,record:t},d.a.createElement("a",{href:"javascript:void(0);"},"\u7f16\u8f91")),d.a.createElement(l["a"],{type:"vertical"}),d.a.createElement("a",{href:"javascript:void(0)",onClick:()=>{s["a"].confirm({title:"\u8b66\u544a",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u9879\u76ee\u5417\uff1f",onOk:()=>this.props.dispatch({type:"payment/drop",id:t.id}),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})}},"\u5220\u9664"))}];return d.a.createElement(p["a"],i()({},this.props,{title:"\u652f\u4ed8\u914d\u7f6e"}),d.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),d.a.createElement(_["a"],{loading:r},d.a.createElement("div",{className:"block block-rounded"},d.a.createElement("div",{className:"bg-white"},d.a.createElement("div",{style:{padding:15}},d.a.createElement(x,{key:0},d.a.createElement(a["a"],null,d.a.createElement(h["a"],{type:"plus"})," \u6dfb\u52a0\u652f\u4ed8\u65b9\u5f0f"))),d.a.createElement(E["a"],{onDragEnd:(t,n)=>{e.props.dispatch({type:"payment/sort",fromIndex:t,toIndex:n})},nodeSelector:"tr",handleSelector:"i"},d.a.createElement(o["a"],{tableLayout:"auto",dataSource:n,columns:f,pagination:!1,scroll:{x:1300}}))))))}}t["default"]=Object(m["c"])(e=>{var t=e.payment;return{payment:t}})(S)},eOCx:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=n("wd/R"),c=n.n(l),u={coupons:[],fetchLoading:!1,saveLoading:!1,pagination:{pageSize:10,current:1},sort:{}};t["default"]={name:"coupon",state:a()({},u),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r,o,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,r=t.select,e.next=3,r(e=>e.coupon);case 3:return o=e.sent,e.next=6,n({type:"setState",payload:{fetchLoading:!0}});case 6:return e.next=8,Object(s["a"])("/admin/coupon/fetch",a()({},o.pagination,o.sort));case 8:return l=e.sent,e.next=11,n({type:"setState",payload:{fetchLoading:!1}});case 11:if(200===l.code){e.next=13;break}return e.abrupt("return");case 13:return l.data.forEach(e=>{1===e.type&&(e.value=e.value/100)}),e.next=16,n({type:"setState",payload:{coupons:l.data,pagination:a()({},o.pagination,{total:l.total})}});case 16:case"end":return e.stop()}},e)})()},generate(e,t){return i.a.mark(function n(){var r,o,a,l,u,h,f;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return 1===r.type&&(r.value=100*r.value),n.next=7,Object(s["b"])("/admin/coupon/generate",r);case 7:return l=n.sent,n.next=10,a({type:"setState",payload:{saveLoading:!1}});case 10:if(200===l.code){n.next=12;break}return n.abrupt("return");case 12:return r.generate_count&&(u=new Blob([l.buffer],{type:"text/plain,charset=UTF-8"}),h=window.URL.createObjectURL(u),f=document.createElement("a"),f.href=h,f.style.display="none",f.download="COUPON ".concat(c()().format("YYYY-MM-DD HH:mm:ss"),".csv"),f.click(),window.URL.revokeObjectURL(h)),n.next=15,a({type:"fetch"});case 15:"function"===typeof o&&o();case 16:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/coupon/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/coupon/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},changeTable(e,t){return i.a.mark(function n(){var r,o,s,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,o=e.sort,s=t.select,l=t.put,n.next=4,s(e=>e.coupon);case 4:return c=n.sent,n.next=7,l({type:"setState",payload:{pagination:a()({},c.pagination,r),sort:o}});case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},eUtF:function(e,t,n){e.exports=!n("jmDH")&&!n("KUxP")(function(){return 7!=Object.defineProperty(n("Hsns")("div"),"a",{get:function(){return 7}}).a})},eaoh:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},einR:function(e,t,n){"use strict";(function(e){n.d(t,"p",function(){return s}),n.d(t,"j",function(){return c}),n.d(t,"q",function(){return h}),n.d(t,"e",function(){return f}),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p}),n.d(t,"i",function(){return m}),n.d(t,"h",function(){return g}),n.d(t,"l",function(){return v}),n.d(t,"n",function(){return b}),n.d(t,"m",function(){return w}),n.d(t,"o",function(){return x}),n.d(t,"k",function(){return _}),n.d(t,"d",function(){return E}),n.d(t,"f",function(){return S}),n.d(t,"g",function(){return C}),n.d(t,"c",function(){return k});var r=n("bYtY"),i=n("Qe9p"),o=n("ItGF"),a=Math.round;function s(e){var t;if(e&&"transparent"!==e){if("string"===typeof e&&e.indexOf("rgba")>-1){var n=Object(i["d"])(e);n&&(e="rgb("+n[0]+","+n[1]+","+n[2]+")",t=n[3])}}else e="none";return{color:e,opacity:null==t?1:t}}var l=1e-4;function c(e){return e-l}function u(e){return a(1e3*e)/1e3}function h(e){return a(1e4*e)/1e4}function f(e){return"matrix("+u(e[0])+","+u(e[1])+","+u(e[2])+","+u(e[3])+","+h(e[4])+","+h(e[5])+")"}var d={left:"start",right:"end",center:"middle",middle:"middle"};function p(e,t,n){return"top"===n?e+=t/2:"bottom"===n&&(e-=t/2),e}function m(e){return e&&(e.shadowBlur||e.shadowOffsetX||e.shadowOffsetY)}function g(e){var t=e.style,n=e.getGlobalScale();return[t.shadowColor,(t.shadowBlur||0).toFixed(2),(t.shadowOffsetX||0).toFixed(2),(t.shadowOffsetY||0).toFixed(2),n[0],n[1]].join(",")}function v(e){return e&&!!e.image}function y(e){return e&&!!e.svgElement}function b(e){return v(e)||y(e)}function w(e){return"linear"===e.type}function x(e){return"radial"===e.type}function _(e){return e&&("linear"===e.type||"radial"===e.type)}function E(e){return"url(#"+e+")"}function S(e){var t=e.getGlobalScale(),n=Math.max(t[0],t[1]);return Math.max(Math.ceil(Math.log(n)/Math.log(10)),1)}function C(e){var t=e.x||0,n=e.y||0,i=(e.rotation||0)*r["a"],o=Object(r["K"])(e.scaleX,1),s=Object(r["K"])(e.scaleY,1),l=e.skewX||0,c=e.skewY||0,u=[];return(t||n)&&u.push("translate("+t+"px,"+n+"px)"),i&&u.push("rotate("+i+")"),1===o&&1===s||u.push("scale("+o+","+s+")"),(l||c)&&u.push("skew("+a(l*r["a"])+"deg, "+a(c*r["a"])+"deg)"),u.join(" ")}var k=function(){return o["a"].hasGlobalWindow&&Object(r["u"])(window.btoa)?function(e){return window.btoa(unescape(e))}:"undefined"!==typeof e?function(t){return e.from(t).toString("base64")}:function(e){return null}}()}).call(this,n("tjlA").Buffer)},er1Y:function(e,t,n){var r=n("WGNW"),i=n("Zgoe"),o=n("OeOC"),a=n("15BC"),s=n("aSE1");r(r.S,"Object",{getOwnPropertyDescriptors:function(e){var t,n,r=o(e),l=a.f,c=i(r),u={},h=0;while(c.length>h)n=l(r,t=c[h++]),void 0!==n&&s(u,t,n);return u}})},fDcq:function(e,t,n){"use strict";var r=n("iCc5"),i=n.n(r),o=n("FYw3"),a=n.n(o),s=n("mRg0"),l=n.n(s),c=n("q1tI"),u=n.n(c),h={DATE_ROW_COUNT:6,DATE_COL_COUNT:7},f=n("wd/R"),d=n.n(f),p=function(e){function t(){return i()(this,t),a()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.render=function(){for(var e=this.props,t=e.value,n=t.localeData(),r=e.prefixCls,i=[],o=[],a=n.firstDayOfWeek(),s=void 0,l=d()(),c=0;ct.year()?1:e.year()===t.year()&&e.month()>t.month()}function S(e){return"rc-calendar-"+e.year()+"-"+e.month()+"-"+e.date()}var C=function(e){function t(){return i()(this,t),a()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.render=function(){var e=this.props,t=e.contentRender,n=e.prefixCls,r=e.selectedValue,i=e.value,o=e.showWeekNumber,a=e.dateRender,s=e.disabledDate,l=e.hoverValue,c=void 0,f=void 0,d=void 0,p=[],m=Object(w["e"])(i),g=n+"-cell",v=n+"-week-number-cell",y=n+"-date",C=n+"-today",k=n+"-selected-day",O=n+"-selected-date",T=n+"-selected-start-date",A=n+"-selected-end-date",P=n+"-in-range-cell",M=n+"-last-month-cell",R=n+"-next-month-btn-day",j=n+"-disabled-cell",L=n+"-disabled-cell-first-of-row",D=n+"-disabled-cell-last-of-row",N=n+"-last-day-of-month",I=i.clone();I.date(1);var $=I.day(),F=($+7-i.localeData().firstDayOfWeek())%7,B=I.clone();B.add(0-F,"days");var V=0;for(c=0;c0&&(Y=p[V-1]);var X=g,Q=!1,Z=!1;x(d,m)&&(X+=" "+C,U=!0);var J=_(d,i),ee=E(d,i);if(r&&Array.isArray(r)){var te=l.length?l:r;if(!J&&!ee){var ne=te[0],re=te[1];ne&&x(d,ne)&&(Z=!0,q=!0,X+=" "+T),(ne||re)&&(x(d,re)?(Z=!0,q=!0,X+=" "+A):(null!==ne&&void 0!==ne||!d.isBefore(re,"day"))&&(null!==re&&void 0!==re||!d.isAfter(ne,"day"))?d.isAfter(ne,"day")&&d.isBefore(re,"day")&&(X+=" "+P):X+=" "+P)}}else x(d,i)&&(Z=!0,q=!0);x(d,r)&&(X+=" "+O),J&&(X+=" "+M),ee&&(X+=" "+R),d.clone().endOf("month").date()===d.date()&&(X+=" "+N),s&&s(d,i)&&(Q=!0,Y&&s(Y,i)||(X+=" "+L),G&&s(G,i)||(X+=" "+D)),Z&&(X+=" "+k),Q&&(X+=" "+j);var ie=void 0;if(a)ie=a(d,i);else{var oe=t?t(d,i):d.date();ie=u.a.createElement("div",{key:S(d),className:y,"aria-selected":Z,"aria-disabled":Q},oe)}K.push(u.a.createElement("td",{key:V,onClick:Q?void 0:e.onSelect.bind(null,d),onMouseEnter:Q?void 0:e.onDayHover&&e.onDayHover.bind(null,d)||void 0,role:"gridcell",title:Object(w["d"])(d),className:X},ie)),V++}W.push(u.a.createElement("tr",{key:c,role:"row",className:b()((H={},H[n+"-current-week"]=U,H[n+"-active-week"]=q,H))},z,K))}return u.a.createElement("tbody",{className:n+"-tbody"},W)},t}(u.a.Component);C.propTypes={contentRender:v.a.func,dateRender:v.a.func,disabledDate:v.a.func,prefixCls:v.a.string,selectedValue:v.a.oneOfType([v.a.object,v.a.arrayOf(v.a.object)]),value:v.a.object,hoverValue:v.a.any,showWeekNumber:v.a.bool},C.defaultProps={hoverValue:[]};var k=C,O=function(e){function t(){return i()(this,t),a()(this,e.apply(this,arguments))}return l()(t,e),t.prototype.render=function(){var e=this.props,t=e.prefixCls;return u.a.createElement("table",{className:t+"-table",cellSpacing:"0",role:"grid"},u.a.createElement(m,e),u.a.createElement(k,e))},t}(u.a.Component);t["a"]=O},fHKQ:function(e,t,n){var r=n("8Z/V"),i=n("Igga"),o=n("OeOC"),a=n("LsAW").f;e.exports=function(e){return function(t){var n,s=o(t),l=i(s),c=l.length,u=0,h=[];while(c>u)n=l[u++],r&&!a.call(s,n)||h.push(e?[n,s[n]]:s[n]);return h}}},fKCf:function(e,t){e.exports=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4E\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDF55-\uDF59]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDF3C-\uDF3E]|\uD806[\uDC3B\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/},"fKm+":function(e,t,n){"use strict";var r=n("2Os2"),i=n("Jc7p"),o="WeakSet";n("nWMQ")(o,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(i(this,o),e,!0)}},r,!1,!0)},fNJh:function(e,t,n){"use strict";var r=n("JbWX"),i=n("aGJD"),o=n("XUei"),a=n("Zy53");function s(e,t,n){var r="string"===typeof e?s.__parse(e):e;if(!r||"messageFormatPattern"!==r.type)throw new TypeError("A message must be provided as a String or AST.");n=this._mergeFormats(s.formats,n),i.defineProperty(this,"_locale",{value:this._resolveLocale(t)});var o=this._findPluralRuleFunction(this._locale),a=this._compilePattern(r,t,n,o),l=this;this.format=function(t){try{return l._format(a,t)}catch(t){throw t.variableId?new Error("The intl string context variable '"+t.variableId+"' was not provided to the string '"+e+"'"):t}}}t["default"]=s,i.defineProperty(s,"formats",{enumerable:!0,value:{number:{currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}}}),i.defineProperty(s,"__localeData__",{value:i.objCreate(null)}),i.defineProperty(s,"__addLocaleData",{value:function(e){if(!e||!e.locale)throw new Error("Locale data provided to IntlMessageFormat is missing a `locale` property");s.__localeData__[e.locale.toLowerCase()]=e}}),i.defineProperty(s,"__parse",{value:a["default"].parse}),i.defineProperty(s,"defaultLocale",{enumerable:!0,writable:!0,value:void 0}),s.prototype.resolvedOptions=function(){return{locale:this._locale}},s.prototype._compilePattern=function(e,t,n,r){var i=new o["default"](t,n,r);return i.compile(e)},s.prototype._findPluralRuleFunction=function(e){var t=s.__localeData__,n=t[e.toLowerCase()];while(n){if(n.pluralRuleFunction)return n.pluralRuleFunction;n=n.parentLocale&&t[n.parentLocale.toLowerCase()]}throw new Error("Locale data added to IntlMessageFormat is missing a `pluralRuleFunction` for :"+e)},s.prototype._format=function(e,t){var n,i,o,a,s,l,c="";for(n=0,i=e.length;n>5===6?2:e>>4===14?3:e>>3===30?4:e>>6===2?-1:-2}function c(e,t,n){var r=t.length-1;if(r=0?(i>0&&(e.lastNeed=i-1),i):--r=0?(i>0&&(e.lastNeed=i-2),i):--r=0?(i>0&&(2===i?i=0:e.lastNeed=i-3),i):0))}function u(e,t,n){if(128!==(192&t[0]))return e.lastNeed=0,"\ufffd";if(e.lastNeed>1&&t.length>1){if(128!==(192&t[1]))return e.lastNeed=1,"\ufffd";if(e.lastNeed>2&&t.length>2&&128!==(192&t[2]))return e.lastNeed=2,"\ufffd"}}function h(e){var t=this.lastTotal-this.lastNeed,n=u(this,e,t);return void 0!==n?n:this.lastNeed<=e.length?(e.copy(this.lastChar,t,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(e.copy(this.lastChar,t,0,e.length),void(this.lastNeed-=e.length))}function f(e,t){var n=c(this,e,t);if(!this.lastNeed)return e.toString("utf8",t);this.lastTotal=n;var r=e.length-(n-this.lastNeed);return e.copy(this.lastChar,0,r),e.toString("utf8",t,r)}function d(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+"\ufffd":t}function p(e,t){if((e.length-t)%2===0){var n=e.toString("utf16le",t);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=e[e.length-1],e.toString("utf16le",t,e.length-1)}function m(e){var t=e&&e.length?this.write(e):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return t+this.lastChar.toString("utf16le",0,n)}return t}function g(e,t){var n=(e.length-t)%3;return 0===n?e.toString("base64",t):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=e[e.length-1]:(this.lastChar[0]=e[e.length-2],this.lastChar[1]=e[e.length-1]),e.toString("base64",t,e.length-n))}function v(e){var t=e&&e.length?this.write(e):"";return this.lastNeed?t+this.lastChar.toString("base64",0,3-this.lastNeed):t}function y(e){return e.toString(this.encoding)}function b(e){return e&&e.length?this.write(e):""}t.StringDecoder=s,s.prototype.write=function(e){if(0===e.length)return"";var t,n;if(this.lastNeed){if(t=this.fillLast(e),void 0===t)return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=s&&i<0||n.scrollTop<=0&&i>0))||a&&(!d||d&&(n.scrollLeft>=l&&l<0||n.scrollLeft<=0&&l>0)))&&e(t,n.parentNode,r,i)};function w(e){return w="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(e)}function x(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _(e,t){if(null==e)return{};var n,r,i=E(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function E(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function S(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function C(e,t){for(var n=0;n1||(n.startPos={x:e.touches[0].clientX,y:e.touches[0].clientY})},n.removeMoveHandler=function(e){if(!(e.changedTouches.length>1)){var t=e.currentTarget,r=e.changedTouches[0].clientX-n.startPos.x,i=e.changedTouches[0].clientY-n.startPos.y;(t===n.maskDom||t===n.handlerDom||t===n.contentDom&&b(t,e.target,r,i))&&e.preventDefault()}},n.transitionEnd=function(e){var t=e.target;m(t,d,n.transitionEnd),t.style.transition=""},n.onKeyDown=function(e){if(e.keyCode===c["a"].ESC){var t=n.props.onClose;e.stopPropagation(),t&&t(e)}},n.onWrapperTransitionEnd=function(e){var t=n.props,r=t.open,i=t.afterVisibleChange;e.target===n.contentWrapper&&e.propertyName.match(/transform$/)&&(n.dom.style.transition="",!r&&n.getCurrentDrawerSome()&&(document.body.style.overflowX="",n.maskDom&&(n.maskDom.style.left="",n.maskDom.style.width="")),i&&i(!!r))},n.openLevelTransition=function(){var e=n.props,t=e.open,r=e.width,i=e.height,o=n.getHorizontalBoolAndPlacementName(),a=o.isHorizontal,s=o.placementName,l=n.contentDom?n.contentDom.getBoundingClientRect()[a?"width":"height"]:0,c=(a?r:i)||l;n.setLevelAndScrolling(t,s,c)},n.setLevelTransform=function(e,t,r,i){var o=n.props,a=o.placement,s=o.levelMove,l=o.duration,c=o.ease,u=o.showMask;n.levelDom.forEach(function(o){o.style.transition="transform ".concat(l," ").concat(c),p(o,d,n.transitionEnd);var h=e?r:0;if(s){var f=g(s,{target:o,open:e});h=e?f[0]:f[1]||0}var m="number"===typeof h?"".concat(h,"px"):h,v="left"===a||"top"===a?m:"-".concat(m);v=u&&"right"===a&&i?"calc(".concat(v," + ").concat(i,"px)"):v,o.style.transform=h?"".concat(t,"(").concat(v,")"):""})},n.setLevelAndScrolling=function(e,t,r){var i=n.props.onChange;if(!y){var o=document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth?Object(l["a"])(!0):0;n.setLevelTransform(e,t,r,o),n.toggleScrollingToDrawerAndBody(o)}i&&i(e)},n.toggleScrollingToDrawerAndBody=function(e){var t=n.props,r=t.getOpenCount,i=t.getContainer,o=t.showMask,a=t.open,s=i&&i(),l=r&&r();if(s&&s.parentNode===document.body&&o){var c=["touchstart"],u=[document.body,n.maskDom,n.handlerDom,n.contentDom];a&&"hidden"!==document.body.style.overflow?(e&&n.addScrollingEffect(e),1===l&&(document.body.style.overflow="hidden"),document.body.style.touchAction="none",u.forEach(function(e,t){e&&p(e,c[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)})):n.getCurrentDrawerSome()&&(l||(document.body.style.overflow=""),document.body.style.touchAction="",e&&n.remScrollingEffect(e),u.forEach(function(e,t){e&&m(e,c[t]||"touchmove",t?n.removeMoveHandler:n.removeStartHandler,n.passive)}))}},n.addScrollingEffect=function(e){var t=n.props,r=t.placement,i=t.duration,o=t.ease,a=t.getOpenCount,s=t.switchScrollingEffect,l=a&&a();1===l&&s();var c="width ".concat(i," ").concat(o),u="transform ".concat(i," ").concat(o);switch(n.dom.style.transition="none",r){case"right":n.dom.style.transform="translateX(-".concat(e,"px)");break;case"top":case"bottom":n.dom.style.width="calc(100% - ".concat(e,"px)"),n.dom.style.transform="translateZ(0)";break;default:break}clearTimeout(n.timeout),n.timeout=setTimeout(function(){n.dom&&(n.dom.style.transition="".concat(u,",").concat(c),n.dom.style.width="",n.dom.style.transform="")})},n.remScrollingEffect=function(e){var t,r=n.props,i=r.placement,o=r.duration,a=r.ease,s=r.getOpenCount,l=r.switchScrollingEffect,c=s&&s();c||l(!0),f&&(document.body.style.overflowX="hidden"),n.dom.style.transition="none";var u="width ".concat(o," ").concat(a),h="transform ".concat(o," ").concat(a);switch(i){case"left":n.dom.style.width="100%",u="width 0s ".concat(a," ").concat(o);break;case"right":n.dom.style.transform="translateX(".concat(e,"px)"),n.dom.style.width="100%",u="width 0s ".concat(a," ").concat(o),n.maskDom&&(n.maskDom.style.left="-".concat(e,"px"),n.maskDom.style.width="calc(100% + ".concat(e,"px)"));break;case"top":case"bottom":n.dom.style.width="calc(100% + ".concat(e,"px)"),n.dom.style.height="100%",n.dom.style.transform="translateZ(0)",t="height 0s ".concat(a," ").concat(o);break;default:break}clearTimeout(n.timeout),n.timeout=setTimeout(function(){n.dom&&(n.dom.style.transition="".concat(h,",").concat(t?"".concat(t,","):"").concat(u),n.dom.style.transform="",n.dom.style.width="",n.dom.style.height="")})},n.getCurrentDrawerSome=function(){return!Object.keys(R).some(function(e){return R[e]})},n.getLevelDom=function(e){var t=e.level,r=e.getContainer;if(!y){var i=r&&r(),o=i?i.parentNode:null;if(n.levelDom=[],"all"===t){var a=o?Array.prototype.slice.call(o.children):[];a.forEach(function(e){"SCRIPT"!==e.nodeName&&"STYLE"!==e.nodeName&&"LINK"!==e.nodeName&&e!==i&&n.levelDom.push(e)})}else t&&u(t).forEach(function(e){document.querySelectorAll(e).forEach(function(e){n.levelDom.push(e)})})}},n.getHorizontalBoolAndPlacementName=function(){var e=n.props.placement,t="left"===e||"right"===e,r="translate".concat(t?"X":"Y");return{isHorizontal:t,placementName:r}},n.state={_self:A(n)},n}return P(t,e),k(t,[{key:"componentDidMount",value:function(){var e=this;if(!y){var t=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return t=!0,null}}))}catch(e){}this.passive=!!t&&{passive:!1}}var n=this.props.open;this.drawerId="drawer_id_".concat(Number((Date.now()+Math.random()).toString().replace(".",Math.round(9*Math.random()).toString())).toString(16)),this.getLevelDom(this.props),n&&(R[this.drawerId]=n,this.openLevelTransition(),this.forceUpdate(function(){e.domFocus()}))}},{key:"componentDidUpdate",value:function(e){var t=this.props.open;t!==e.open&&(t&&this.domFocus(),R[this.drawerId]=!!t,this.openLevelTransition())}},{key:"componentWillUnmount",value:function(){var e=this.props,t=e.getOpenCount,n=e.open,r=e.switchScrollingEffect,i="function"===typeof t&&t();delete R[this.drawerId],n&&(this.setLevelTransform(!1),document.body.style.touchAction=""),i||(document.body.style.overflow="",r(!0))}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.className,o=n.children,a=n.style,l=n.width,c=n.height,u=(n.defaultOpen,n.open),h=n.prefixCls,f=n.placement,d=(n.level,n.levelMove,n.ease,n.duration,n.getContainer,n.handler),p=(n.onChange,n.afterVisibleChange,n.showMask),m=n.maskClosable,g=n.maskStyle,y=n.onClose,b=n.onHandleClick,w=n.keyboard,E=(n.getOpenCount,n.switchScrollingEffect,_(n,["className","children","style","width","height","defaultOpen","open","prefixCls","placement","level","levelMove","ease","duration","getContainer","handler","onChange","afterVisibleChange","showMask","maskClosable","maskStyle","onClose","onHandleClick","keyboard","getOpenCount","switchScrollingEffect"])),S=!!this.dom&&u,C=s()(h,(e={},x(e,"".concat(h,"-").concat(f),!0),x(e,"".concat(h,"-open"),S),x(e,r||"",!!r),x(e,"no-mask",!p),e)),k=this.getHorizontalBoolAndPlacementName(),O=k.placementName,T="left"===f||"top"===f?"-100%":"100%",A=S?"":"".concat(O,"(").concat(T,")"),P=d&&i["cloneElement"](d,{onClick:function(e){d.props.onClick&&d.props.onClick(),b&&b(e)},ref:function(e){t.handlerDom=e}});return i["createElement"]("div",Object.assign({},E,{tabIndex:-1,className:C,style:a,ref:function(e){t.dom=e},onKeyDown:S&&w?this.onKeyDown:void 0,onTransitionEnd:this.onWrapperTransitionEnd}),p&&i["createElement"]("div",{className:"".concat(h,"-mask"),onClick:m?y:void 0,style:g,ref:function(e){t.maskDom=e}}),i["createElement"]("div",{className:"".concat(h,"-content-wrapper"),style:{transform:A,msTransform:A,width:v(l)?"".concat(l,"px"):l,height:v(c)?"".concat(c,"px"):c},ref:function(e){t.contentWrapper=e}},i["createElement"]("div",{className:"".concat(h,"-content"),ref:function(e){t.contentDom=e},onTouchStart:S&&p?this.removeStartHandler:void 0,onTouchMove:S&&p?this.removeMoveHandler:void 0},o),P))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n=t.prevProps,r=t._self,i={prevProps:e};if(void 0!==n){var o=e.placement,a=e.level;o!==n.placement&&(r.contentDom=null),a!==n.level&&r.getLevelDom(e)}return i}}]),t}(i["Component"]);j.defaultProps={switchScrollingEffect:function(){}};var L=Object(o["polyfill"])(j);function D(e){return D="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function N(e,t){if(null==e)return{};var n,r,i=I(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function I(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}function $(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F(e,t){for(var n=0;nl)r.f(e,n=a[l++],t[n]);return e}},g0MP:function(e,t,n){"use strict";var r=n("GB+t"),i=n.n(r),o=n("QLaP"),a=n.n(o),s=n("/Qhy"),l=n("brdU"),c=function(e){return"/"===e.charAt(0)?e:"/"+e},u=function(e){return"/"===e.charAt(0)?e.substr(1):e},h=function(e,t){return new RegExp("^"+t+"(\\/|\\?|#|$)","i").test(e)},f=function(e,t){return h(e,t)?e.substr(t.length):e},d=function(e){return"/"===e.charAt(e.length-1)?e.slice(0,-1):e},p=function(e){var t=e||"/",n="",r="",i=t.indexOf("#");-1!==i&&(r=t.substr(i),t=t.substr(0,i));var o=t.indexOf("?");return-1!==o&&(n=t.substr(o),t=t.substr(0,o)),{pathname:t,search:"?"===n?"":n,hash:"#"===r?"":r}},m=function(e){var t=e.pathname,n=e.search,r=e.hash,i=t||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},g=n("ck9s"),v=n.n(g),y=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a()(E,"Browser history needs a DOM");var t=window.history,n=C(),r=!k(),o=e.forceRefresh,s=void 0!==o&&o,l=e.getUserConfirmation,u=void 0===l?S:l,p=e.keyLength,g=void 0===p?6:p,v=e.basename?d(c(e.basename)):"",y=function(e){var t=e||{},n=t.key,r=t.state,o=window.location,a=o.pathname,s=o.search,l=o.hash,c=a+s+l;return i()(!v||h(c,v),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+c+'" to begin with "'+v+'".'),v&&(c=f(c,v)),b(c,r,n)},w=function(){return Math.random().toString(36).substr(2,g)},x=_(),O=function(e){P(Z,e),Z.length=t.length,x.notifyListeners(Z.location,Z.action)},L=function(e){T(e)||I(y(e.state))},D=function(){I(y(j()))},N=!1,I=function(e){if(N)N=!1,O();else{var t="POP";x.confirmTransitionTo(e,t,u,function(n){n?O({action:t,location:e}):$(e)})}},$=function(e){var t=Z.location,n=B.indexOf(t.key);-1===n&&(n=0);var r=B.indexOf(e.key);-1===r&&(r=0);var i=n-r;i&&(N=!0,U(i))},F=y(j()),B=[F.key],V=function(e){return v+m(e)},W=function(e,r){i()(!("object"===("undefined"===typeof e?"undefined":A(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var o="PUSH",a=b(e,r,w(),Z.location);x.confirmTransitionTo(a,o,u,function(e){if(e){var r=V(a),l=a.key,c=a.state;if(n)if(t.pushState({key:l,state:c},null,r),s)window.location.href=r;else{var u=B.indexOf(Z.location.key),h=B.slice(0,-1===u?0:u+1);h.push(a.key),B=h,O({action:o,location:a})}else i()(void 0===c,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},H=function(e,r){i()(!("object"===("undefined"===typeof e?"undefined":A(e))&&void 0!==e.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var o="REPLACE",a=b(e,r,w(),Z.location);x.confirmTransitionTo(a,o,u,function(e){if(e){var r=V(a),l=a.key,c=a.state;if(n)if(t.replaceState({key:l,state:c},null,r),s)window.location.replace(r);else{var u=B.indexOf(Z.location.key);-1!==u&&(B[u]=a.key),O({action:o,location:a})}else i()(void 0===c,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},U=function(e){t.go(e)},z=function(){return U(-1)},q=function(){return U(1)},K=0,G=function(e){K+=e,1===K?(window.addEventListener(M,L),r&&window.addEventListener(R,D)):0===K&&(window.removeEventListener(M,L),r&&window.removeEventListener(R,D))},Y=!1,X=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return Y||(G(1),Y=!0),function(){return Y&&(Y=!1,G(-1)),t()}},Q=function(e){var t=x.appendListener(e);return G(1),function(){G(-1),t()}},Z={length:t.length,action:"POP",location:F,createHref:V,push:W,replace:H,go:U,goBack:z,goForward:q,block:X,listen:Q};return Z},D=L,N=Object.assign||function(e){for(var t=1;t=0?t:0)+"#"+e)},W=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(E,"Hash history needs a DOM");var t=window.history,n=O(),r=e.getUserConfirmation,o=void 0===r?S:r,s=e.hashType,l=void 0===s?"slash":s,u=e.basename?d(c(e.basename)):"",p=$[l],g=p.encodePath,v=p.decodePath,y=function(){var e=v(F());return i()(!u||h(e,u),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+e+'" to begin with "'+u+'".'),u&&(e=f(e,u)),b(e)},x=_(),C=function(e){N(J,e),J.length=t.length,x.notifyListeners(J.location,J.action)},k=!1,T=null,A=function(){var e=F(),t=g(e);if(e!==t)V(t);else{var n=y(),r=J.location;if(!k&&w(r,n))return;if(T===m(n))return;T=null,P(n)}},P=function(e){if(k)k=!1,C();else{var t="POP";x.confirmTransitionTo(e,t,o,function(n){n?C({action:t,location:e}):M(e)})}},M=function(e){var t=J.location,n=D.lastIndexOf(m(t));-1===n&&(n=0);var r=D.lastIndexOf(m(e));-1===r&&(r=0);var i=n-r;i&&(k=!0,z(i))},R=F(),j=g(R);R!==j&&V(j);var L=y(),D=[m(L)],W=function(e){return"#"+g(u+m(e))},H=function(e,t){i()(void 0===t,"Hash history cannot push state; it is ignored");var n="PUSH",r=b(e,void 0,void 0,J.location);x.confirmTransitionTo(r,n,o,function(e){if(e){var t=m(r),o=g(u+t),a=F()!==o;if(a){T=t,B(o);var s=D.lastIndexOf(m(J.location)),l=D.slice(0,-1===s?0:s+1);l.push(t),D=l,C({action:n,location:r})}else i()(!1,"Hash history cannot PUSH the same path; a new entry will not be added to the history stack"),C()}})},U=function(e,t){i()(void 0===t,"Hash history cannot replace state; it is ignored");var n="REPLACE",r=b(e,void 0,void 0,J.location);x.confirmTransitionTo(r,n,o,function(e){if(e){var t=m(r),i=g(u+t),o=F()!==i;o&&(T=t,V(i));var a=D.indexOf(m(J.location));-1!==a&&(D[a]=t),C({action:n,location:r})}})},z=function(e){i()(n,"Hash history go(n) causes a full page reload in this browser"),t.go(e)},q=function(){return z(-1)},K=function(){return z(1)},G=0,Y=function(e){G+=e,1===G?window.addEventListener(I,A):0===G&&window.removeEventListener(I,A)},X=!1,Q=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=x.setPrompt(e);return X||(Y(1),X=!0),function(){return X&&(X=!1,Y(-1)),t()}},Z=function(e){var t=x.appendListener(e);return Y(1),function(){Y(-1),t()}},J={length:t.length,action:"POP",location:L,createHref:W,push:H,replace:U,go:z,goBack:q,goForward:K,block:Q,listen:Z};return J},H=W,U="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},z=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},t=e.getUserConfirmation,n=e.initialEntries,r=void 0===n?["/"]:n,o=e.initialIndex,a=void 0===o?0:o,s=e.keyLength,l=void 0===s?6:s,c=_(),u=function(e){z(k,e),k.length=k.entries.length,c.notifyListeners(k.location,k.action)},h=function(){return Math.random().toString(36).substr(2,l)},f=q(a,0,r.length-1),d=r.map(function(e){return b(e,void 0,"string"===typeof e?h():e.key||h())}),p=m,g=function(e,n){i()(!("object"===("undefined"===typeof e?"undefined":U(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var r="PUSH",o=b(e,n,h(),k.location);c.confirmTransitionTo(o,r,t,function(e){if(e){var t=k.index,n=t+1,i=k.entries.slice(0);i.length>n?i.splice(n,i.length-n,o):i.push(o),u({action:r,location:o,index:n,entries:i})}})},v=function(e,n){i()(!("object"===("undefined"===typeof e?"undefined":U(e))&&void 0!==e.state&&void 0!==n),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var r="REPLACE",o=b(e,n,h(),k.location);c.confirmTransitionTo(o,r,t,function(e){e&&(k.entries[k.index]=o,u({action:r,location:o}))})},y=function(e){var n=q(k.index+e,0,k.entries.length-1),r="POP",i=k.entries[n];c.confirmTransitionTo(i,r,t,function(e){e?u({action:r,location:i,index:n}):u()})},w=function(){return y(-1)},x=function(){return y(1)},E=function(e){var t=k.index+e;return t>=0&&t0&&void 0!==arguments[0]&&arguments[0];return c.setPrompt(e)},C=function(e){return c.appendListener(e)},k={length:d.length,action:"POP",location:d[f],index:f,entries:d,createHref:p,push:g,replace:v,go:y,goBack:w,goForward:x,canGo:E,block:S,listen:C};return k},G=K;n.d(t,"a",function(){return D}),n.d(t,"b",function(){return H}),n.d(t,"d",function(){return G}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return w}),n.d(t,"e",function(){return m})},gENZ:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={};t["default"]={name:"system",state:a()({},l),reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{getQueueStats(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"save",payload:{getQueueStatsLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/system/getQueueStats");case 5:return r=e.sent,e.next=8,n({type:"save",payload:{getQueueStatsLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"save",payload:{queueStats:r.data}});case 12:case"end":return e.stop()}},e)})()},getQueueWorkload(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"save",payload:{getQueueWorkloadLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/system/getQueueWorkload");case 5:return r=e.sent,e.next=8,n({type:"save",payload:{getQueueWorkloadLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"save",payload:{queueWorkload:r.data}});case 12:case"end":return e.stop()}},e)})()}}}},gL7N:function(e,t,n){var r=n("VyuQ")("wks"),i=n("kCK5"),o=n("c0Oy").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},gRqi:function(e,t,n){"use strict";var r=n("c0Oy"),i=n("V5/1"),o=n("8Z/V"),a=n("gL7N")("species");e.exports=function(e){var t=r[e];o&&t&&!t[a]&&i.f(t,a,{configurable:!0,get:function(){return this}})}},h7Gi:function(e,t,n){"use strict";n("q97H");var r=n("rKIl"),i=n("VPOE"),o=n("wUWy"),a=n("ZDr/"),s=n("gL7N"),l=n("330p"),c=s("species"),u=!o(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$
")}),h=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=s(e),d=!o(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),p=d?!o(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[c]=function(){return n}),n[f](""),!t}):void 0;if(!d||!p||"replace"===e&&!u||"split"===e&&!h){var m=/./[f],g=n(a,f,""[e],function(e,t,n,r,i){return t.exec===l?d&&!i?{done:!0,value:m.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),v=g[0],y=g[1];r(String.prototype,e,v),i(RegExp.prototype,f,2==t?function(e,t){return y.call(e,this,t)}:function(e){return y.call(e,this)})}}},h7HQ:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("T6xi"),a=function(){function e(){this.points=null,this.smooth=0,this.smoothConstraint=null}return e}(),s=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new a},t.prototype.buildPath=function(e,t){o["a"](e,t,!0)},t}(i["b"]);s.prototype.type="polygon",t["a"]=s},hDam:function(e,t){e.exports=function(){}},hIUm:function(e,t,n){"use strict";var r=n("oF12"),i=n("7vYJ"),o=n("VeyY"),a=n("ETUh"),s=n("OsVd"),l=n("bsDr"),c=n("330p"),u=n("wUWy"),h=Math.min,f=[].push,d="split",p="length",m="lastIndex",g=4294967295,v=!u(function(){RegExp(g,"y")});n("h7Gi")("split",2,function(e,t,n,u){var y;return y="c"=="abbc"[d](/(b)*/)[1]||4!="test"[d](/(?:)/,-1)[p]||2!="ab"[d](/(?:ab)*/)[p]||4!="."[d](/(.?)(.?)/)[p]||"."[d](/()()/)[p]>1||""[d](/.?/)[p]?function(e,t){var i=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(i,e,t);var o,a,s,l=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,d=void 0===t?g:t>>>0,v=new RegExp(e.source,u+"g");while(o=c.call(v,i)){if(a=v[m],a>h&&(l.push(i.slice(h,o.index)),o[p]>1&&o.index=d))break;v[m]===o.index&&v[m]++}return h===i[p]?!s&&v.test("")||l.push(""):l.push(i.slice(h)),l[p]>d?l.slice(0,d):l}:"0"[d](void 0,0)[p]?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var i=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,i,r):y.call(String(i),n,r)},function(e,t){var r=u(y,e,this,t,y!==n);if(r.done)return r.value;var c=i(e),f=String(this),d=o(c,RegExp),p=c.unicode,m=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(v?"y":"g"),b=new d(v?c:"^(?:"+c.source+")",m),w=void 0===t?g:t>>>0;if(0===w)return[];if(0===f.length)return null===l(b,f)?[f]:[];var x=0,_=0,E=[];while(_{this.setState({select:d()({},this.defaultValue),selectIndex:0})})):h["a"].error("\u503c\u4e0d\u80fd\u4e3a\u7a7a")}onChange(e,t,n,r){var i=this.state.filter;i[n][e]=t,"key"===e&&(i[n]["condition"]=this.props.keys[r].condition[0]),this.setState({filter:i}),"undefined"!==typeof r&&this.setState({keyIndex:r})}onOk(){var e=!0;this.state.filter.forEach(t=>{""===t.value&&(u["a"].error({message:"\u8fc7\u6ee4\u5668",description:"\u6b32\u68c0\u7d22\u5185\u5bb9\u4e0d\u80fd\u4e3a\u7a7a",duration:1.5}),e=!1)}),e&&(this.props.onOk(this.state.filter),this.setState({visible:!1}))}hide(){var e=this.state.select;e["value"]="",this.setState({visible:!1,select:e})}onDelete(e){var t=this.state.filter;t.splice(e,1),this.setState({filter:t})}reset(){this.setState({filter:[]},()=>{this.onOk()})}render(){return m.a.createElement(m.a.Fragment,null,m.a.cloneElement(this.props.children,{onClick:()=>this.show()}),m.a.createElement(r["a"],{onOk:()=>this.onOk(),title:"\u8fc7\u6ee4\u5668",visible:this.state.visible,onClose:()=>this.hide(),className:"v2board-filter-drawer",footer:m.a.createElement(m.a.Fragment,null)},this.state.filter.length>0&&this.state.filter.map((e,t)=>{var n=this.props.keys.find(e=>e.key===this.state.filter[t].key);return m.a.createElement(m.a.Fragment,null,m.a.createElement(l["a"],{type:"horizontal"},"\u6761\u4ef6".concat(t+1)," ",m.a.createElement(c["a"],{type:"delete",style:{color:"#ff4d4f"},onClick:()=>this.onDelete(t)})),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",null,"\u5b57\u6bb5\u540d"),m.a.createElement("div",null,m.a.createElement(s["a"],{value:this.state.filter[t].key,style:{width:"100%"}},this.props.keys.map((e,n)=>{return m.a.createElement(s["a"].Option,{key:n,value:e.key,onClick:()=>this.onChange("key",this.props.keys[n].key,t,n)},e.title)})))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",null,"\u6761\u4ef6"),m.a.createElement("div",null,m.a.createElement(s["a"],{value:this.state.filter[t].condition,style:{width:"100%"},onChange:e=>this.onChange("condition",e,t)},this.props.keys[this.state.keyIndex].condition.map(e=>{return m.a.createElement(s["a"].Option,{key:e,value:e},e)})))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",null,"\u6b32\u68c0\u7d22\u5185\u5bb9"),m.a.createElement("div",null,"select"===n.type&&m.a.createElement(s["a"],{defaultValue:this.state.filter[t].value||void 0,style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u503c",onChange:e=>this.onChange("value",e,t)},n.options.map((e,t)=>{return m.a.createElement(s["a"].Option,{value:e.value},e.key)})),"date"===n.type&&m.a.createElement(a["a"],{style:{width:"100%"},onChange:e=>this.onChange("value",e&&e.format("X"),t),showTime:{defaultValue:v()("00:00:00","HH:mm:ss")}}),void 0===n.type&&m.a.createElement(o["a"],{style:{width:"100%"},defaultValue:this.state.filter[t].value||void 0,placeholder:"\u503c",onChange:e=>this.onChange("value",e.target.value,t)}))))}),m.a.createElement(i["a"],{style:{width:"100%"},type:"primary",onClick:()=>this.add()},m.a.createElement(c["a"],{type:"plus"})," \u6dfb\u52a0\u6761\u4ef6"),m.a.createElement("div",{className:"v2board-drawer-action"},m.a.createElement(i["a"],{disabled:!this.state.filter.length,type:"danger",onClick:()=>this.reset(),style:{float:"left"}},"\u91cd\u7f6e"),m.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.hide()},"\u53d6\u6d88"),m.a.createElement(i["a"],{disabled:!this.state.filter.length,onClick:()=>this.onOk(),type:"primary"},"\u68c0\u7d22"))))}}},hYLj:function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return p});var r=n("Fofx"),i=n("QBsz"),o=r["c"],a=5e-5;function s(e){return e>a||e<-a}var l=[],c=[],u=r["b"](),h=Math.abs,f=function(){function e(){}return e.prototype.getLocalTransform=function(t){return e.getLocalTransform(this,t)},e.prototype.setPosition=function(e){this.x=e[0],this.y=e[1]},e.prototype.setScale=function(e){this.scaleX=e[0],this.scaleY=e[1]},e.prototype.setSkew=function(e){this.skewX=e[0],this.skewY=e[1]},e.prototype.setOrigin=function(e){this.originX=e[0],this.originY=e[1]},e.prototype.needLocalTransform=function(){return s(this.rotation)||s(this.x)||s(this.y)||s(this.scaleX-1)||s(this.scaleY-1)||s(this.skewX)||s(this.skewY)},e.prototype.updateTransform=function(){var e=this.parent&&this.parent.transform,t=this.needLocalTransform(),n=this.transform;t||e?(n=n||r["b"](),t?this.getLocalTransform(n):o(n),e&&(t?r["e"](n,e,n):r["a"](n,e)),this.transform=n,this._resolveGlobalScaleRatio(n)):n&&o(n)},e.prototype._resolveGlobalScaleRatio=function(e){var t=this.globalScaleRatio;if(null!=t&&1!==t){this.getGlobalScale(l);var n=l[0]<0?-1:1,i=l[1]<0?-1:1,o=((l[0]-n)*t+n)/l[0]||0,a=((l[1]-i)*t+i)/l[1]||0;e[0]*=o,e[1]*=o,e[2]*=a,e[3]*=a}this.invTransform=this.invTransform||r["b"](),r["d"](this.invTransform,e)},e.prototype.getComputedTransform=function(){var e=this,t=[];while(e)t.push(e),e=e.parent;while(e=t.pop())e.updateTransform();return this.transform},e.prototype.setLocalTransform=function(e){if(e){var t=e[0]*e[0]+e[1]*e[1],n=e[2]*e[2]+e[3]*e[3],r=Math.atan2(e[1],e[0]),i=Math.PI/2+r-Math.atan2(e[3],e[2]);n=Math.sqrt(n)*Math.cos(i),t=Math.sqrt(t),this.skewX=i,this.skewY=0,this.rotation=-r,this.x=+e[4],this.y=+e[5],this.scaleX=t,this.scaleY=n,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var e=this.parent,t=this.transform;e&&e.transform&&(r["e"](c,e.invTransform,t),t=c);var n=this.originX,i=this.originY;(n||i)&&(u[4]=n,u[5]=i,r["e"](c,t,u),c[4]-=n,c[5]-=i,t=c),this.setLocalTransform(t)}},e.prototype.getGlobalScale=function(e){var t=this.transform;return e=e||[],t?(e[0]=Math.sqrt(t[0]*t[0]+t[1]*t[1]),e[1]=Math.sqrt(t[2]*t[2]+t[3]*t[3]),t[0]<0&&(e[0]=-e[0]),t[3]<0&&(e[1]=-e[1]),e):(e[0]=1,e[1]=1,e)},e.prototype.transformCoordToLocal=function(e,t){var n=[e,t],r=this.invTransform;return r&&i["b"](n,n,r),n},e.prototype.transformCoordToGlobal=function(e,t){var n=[e,t],r=this.transform;return r&&i["b"](n,n,r),n},e.prototype.getLineScale=function(){var e=this.transform;return e&&h(e[0]-1)>1e-10&&h(e[3]-1)>1e-10?Math.sqrt(h(e[0]*e[3]-e[2]*e[1])):1},e.prototype.copyTransform=function(e){p(this,e)},e.getLocalTransform=function(e,t){t=t||[];var n=e.originX||0,i=e.originY||0,o=e.scaleX,a=e.scaleY,s=e.anchorX,l=e.anchorY,c=e.rotation||0,u=e.x,h=e.y,f=e.skewX?Math.tan(e.skewX):0,d=e.skewY?Math.tan(-e.skewY):0;if(n||i||s||l){var p=n+s,m=i+l;t[4]=-p*o-f*m*a,t[5]=-m*a-d*p*o}else t[4]=t[5]=0;return t[0]=o,t[3]=a,t[1]=d*o,t[2]=f*a,c&&r["f"](t,t,c),t[4]+=n+u,t[5]+=i+h,t},e.initDefaultProps=function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0}(),e}(),d=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function p(e,t){for(var n=0;ne.user);case 3:return i=e.sent,e.next=6,n({type:"setState",payload:{fetchLoading:!0}});case 6:return e.next=8,Object(l["a"])("/admin/user/fetch",s()({filter:i.filter},i.pagination,i.sort));case 8:return a=e.sent,e.next=11,n({type:"setState",payload:{fetchLoading:!1}});case 11:if(200===a.code){e.next=13;break}return e.abrupt("return");case 13:return a.data.forEach(e=>{e.password="",e.transfer_enable=(e.transfer_enable/1073741824).toFixed(2),e.u=(e.u/1073741824).toFixed(2),e.d=(e.d/1073741824).toFixed(2),e.total_used=(e.total_used/1073741824).toFixed(2),e.commission_balance=(e.commission_balance/100).toFixed(2),e.balance=(e.balance/100).toFixed(2)}),e.next=16,n({type:"setState",payload:{users:a.data,pagination:s()({},i.pagination,{total:a.total})}});case 16:case"end":return e.stop()}},e)})()},filter(e,t){return o.a.mark(function n(){var r,i,a,s,l;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.filter,i=t.put,a=t.select,n.next=4,a(e=>e.user);case 4:return s=n.sent,l=s.pagination,l["current"]=1,n.next=9,i({type:"setState",payload:{filter:r}});case 9:return n.next=11,i({type:"fetch"});case 11:case"end":return n.stop()}},n)})()},changeTable(e,t){return o.a.mark(function n(){var r,i,a,l,c;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.pagination,i=e.sort,a=t.select,l=t.put,n.next=4,a(e=>e.user);case 4:return c=n.sent,n.next=7,l({type:"setState",payload:{pagination:s()({},c.pagination,r),sort:i}});case 7:return n.next=9,l({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},update(e,t){return o.a.mark(function n(){var r,i,a,s;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,i=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{updateLoading:!0}});case 4:return r.transfer_enable=1073741824*r.transfer_enable,r.u=Math.round(1073741824*r.u),r.d=Math.round(1073741824*r.d),r.balance=Math.round(100*r.balance),r.commission_balance=Math.round(100*r.commission_balance),r.invite_user&&delete r.invite_user,n.next=12,Object(l["b"])("/admin/user/update",r);case 12:return s=n.sent,n.next=15,a({type:"setState",payload:{updateLoading:!1}});case 15:if(200===s.code){n.next=17;break}return n.abrupt("return");case 17:return n.next=19,a({type:"fetch"});case 19:"function"===typeof i&&i();case 20:case"end":return n.stop()}},n)})()},addFilter(e,t){return o.a.mark(function n(){var r,i,a,s,l,c,u,h,f;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.key,i=e.condition,a=e.value,s=e.clear,l=t.put,c=t.select,n.next=4,c(e=>e.user);case 4:return u=n.sent,h=u.filter,f=u.pagination,s&&(h=[]),h.push({key:r,condition:i,value:a}),f["current"]=1,n.next=12,l({type:"setState",payload:{filter:h,pagination:f}});case 12:return n.next=14,l({type:"fetch"});case 14:case"end":return n.stop()}},n)})()},generate(e,t){return o.a.mark(function n(){var r,i,a,s,c,h,f;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,i=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{generateLoading:!0}});case 4:return n.next=6,Object(l["b"])("/admin/user/generate",r);case 6:return s=n.sent,n.next=9,a({type:"setState",payload:{generateLoading:!1}});case 9:if(200===s.code){n.next=11;break}return n.abrupt("return");case 11:return r.generate_count&&(c=new Blob([s.buffer],{type:"text/plain,charset=UTF-8"}),h=window.URL.createObjectURL(c),f=document.createElement("a"),f.href=h,f.style.display="none",f.download="USER ".concat(u()().format("YYYY-MM-DD HH:mm:ss"),".csv"),f.click(),window.URL.revokeObjectURL(h)),n.next=14,a({type:"fetch"});case 14:"function"===typeof i&&i();case 15:case"end":return n.stop()}},n)})()},dumpCSV(e,t){return o.a.mark(function e(){var n,i,a,s,c,h,f;return o.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.select,e.next=3,n(e=>e.user);case 3:return i=e.sent,a=i.filter,r["a"].loading("\u5bfc\u51fa\u4e2d"),e.next=8,Object(l["b"])("/admin/user/dumpCSV",{filter:a});case 8:if(s=e.sent,r["a"].destroy(),200===s.code){e.next=12;break}return e.abrupt("return");case 12:c=new Blob([s.buffer],{type:"text/plain,charset=UTF-8"}),h=window.URL.createObjectURL(c),f=document.createElement("a"),f.href=h,f.style.display="none",f.download=u()().format("YYYY-MM-DD HH:mm:ss")+".csv",f.click(),window.URL.revokeObjectURL(h);case 20:case"end":return e.stop()}},e)})()},sendMail(e,t){return o.a.mark(function n(){var i,a,c,u,h,f,d;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return i=e.params,a=e.callback,c=t.select,u=t.put,n.next=4,c(e=>e.user);case 4:return h=n.sent,f=h.filter,n.next=8,u({type:"setState",payload:{sendMailLoading:!0}});case 8:return n.next=10,Object(l["b"])("/admin/user/sendMail",s()({filter:f},i));case 10:return d=n.sent,n.next=13,u({type:"setState",payload:{sendMailLoading:!1}});case 13:if(200===d.code){n.next=15;break}return n.abrupt("return");case 15:r["a"].success("\u5df2\u52a0\u5165\u961f\u5217\u6267\u884c"),"function"===typeof a&&a();case 17:case"end":return n.stop()}},n)})()},ban(e,t){return o.a.mark(function e(){var n,r,i,a,s;return o.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.select,r=t.put,e.next=3,n(e=>e.user);case 3:return i=e.sent,a=i.filter,e.next=7,Object(l["b"])("/admin/user/ban",{filter:a});case 7:if(s=e.sent,200===s.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,r({type:"fetch"});case 12:case"end":return e.stop()}},e)})()},resetSecret(e,t){return o.a.mark(function n(){var i,a,s;return o.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return i=e.id,a=t.put,n.next=4,Object(l["b"])("/admin/user/resetSecret",{id:i});case 4:if(s=n.sent,200===s.code){n.next=7;break}return n.abrupt("return");case 7:return r["a"].success("\u91cd\u7f6e\u6210\u529f"),n.next=10,a({type:"fetch"});case 10:case"end":return n.stop()}},n)})()}}}},hsuR:function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"k",function(){return c}),n.d(t,"i",function(){return u}),n.d(t,"h",function(){return h}),n.d(t,"j",function(){return f}),n.d(t,"g",function(){return d}),n.d(t,"d",function(){return p}),n.d(t,"e",function(){return m}),n.d(t,"b",function(){return g}),n.d(t,"c",function(){return b}),n.d(t,"f",function(){return w});var r=n("YEIV"),i=n.n(r),o=n("q1tI"),a=n.n(o);function s(e){var t=[];return a.a.Children.forEach(e,function(e){e&&t.push(e)}),t}function l(e,t){for(var n=s(e),r=0;r2&&void 0!==arguments[2]?arguments[2]:"ltr",r=f(t)?"translateY":"translateX";return f(t)||"rtl"!==n?r+"("+100*-e+"%) translateZ(0)":r+"("+100*e+"%) translateZ(0)"}function p(e,t){var n=f(t)?"marginTop":"marginLeft";return i()({},n,100*-e+"%")}function m(e,t){return+window.getComputedStyle(e).getPropertyValue(t).replace("px","")}function g(e){return Object.keys(e).reduce(function(t,n){return"aria-"!==n.substr(0,5)&&"data-"!==n.substr(0,5)&&"role"!==n||(t[n]=e[n]),t},{})}function v(e,t){return+e.getPropertyValue(t).replace("px","")}function y(e,t,n,r,i){var o=m(i,"padding-"+e);if(!r||!r.parentNode)return o;var a=r.parentNode.childNodes;return Array.prototype.some.call(a,function(i){var a=window.getComputedStyle(i);return i!==r?(o+=v(a,"margin-"+e),o+=i[t],o+=v(a,"margin-"+n),"content-box"===a.boxSizing&&(o+=v(a,"border-"+e+"-width")+v(a,"border-"+n+"-width")),!1):(o+=v(a,"margin-"+e),!0)}),o}function b(e,t){return y("left","offsetWidth","right",e,t)}function w(e,t){return y("top","offsetHeight","bottom",e,t)}},hwdV:function(e,t,n){var r=n("tjlA"),i=r.Buffer;function o(e,t){for(var n in e)t[n]=e[n]}function a(e,t,n){return i(e,t,n)}i.from&&i.alloc&&i.allocUnsafe&&i.allocUnsafeSlow?e.exports=r:(o(r,t),t.Buffer=a),o(i,a),a.from=function(e,t,n){if("number"===typeof e)throw new TypeError("Argument must not be a number");return i(e,t,n)},a.alloc=function(e,t,n){if("number"!==typeof e)throw new TypeError("Argument must be a number");var r=i(e);return void 0!==t?"string"===typeof n?r.fill(t,n):r.fill(t):r.fill(0),r},a.allocUnsafe=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return i(e)},a.allocUnsafeSlow=function(e){if("number"!==typeof e)throw new TypeError("Argument must be a number");return r.SlowBuffer(e)}},i4x8:function(e,t,n){"use strict";n.r(t),n.d(t,"routes",function(){return u}),n.d(t,"default",function(){return f});var r=n("q1tI"),i=n.n(r),o=n("Crw4"),a=n.n(o),s=n("RFCh"),l=n("Hg0r"),c=l["c"].ConnectedRouter,u=[{path:"/config/payment",exact:!0,component:n("eIZb").default},{path:"/config/system",exact:!0,component:n("1dM+").default},{path:"/config/theme",exact:!0,component:n("8drl").default},{path:"/coupon",exact:!0,component:n("Q55k").default},{path:"/dashboard",exact:!0,component:n("sFYk").default},{path:"/",exact:!0,component:n("RXBc").default},{path:"/knowledge",exact:!0,component:n("jJ5y").default},{path:"/login",exact:!0,component:n("SGa5").default},{path:"/notice",exact:!0,component:n("JZE9").default},{path:"/order",exact:!0,component:n("pi3A").default},{path:"/plan",exact:!0,component:n("ih8c").default},{path:"/queue",exact:!0,component:n("Jezz").default},{path:"/server/group",exact:!0,component:n("11+Y").default},{path:"/server/manage",exact:!0,component:n("uzXD").default},{path:"/ticket/:ticket_id",exact:!0,component:n("FPmv").default},{path:"/ticket",exact:!0,component:n("RJTe").default},{path:"/user",exact:!0,component:n("d1ca").default}];window.g_routes=u;var h=n("PszG");h.applyForEach("patchRoutes",{initialValue:u});class f extends i.a.Component{unListen(){}constructor(e){function t(e,t){h.applyForEach("onRouteChange",{initialValue:{routes:u,location:e,action:t}})}super(e),this.unListen=s["default"].listen(t);var n=s["default"].listen.toString().indexOf("callback(history.location, history.action)")>-1;n||t(s["default"].location)}componentWillUnmount(){this.unListen()}render(){var e=this.props||{};return i.a.createElement(c,{history:s["default"]},a()(u,e))}}},iCc5:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},ih8c:function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("+L6B"),n("2/Rp")),a=(n("qVdP"),n("jsC+")),s=(n("lUTK"),n("BvKs")),l=(n("+BJd"),n("mr32")),c=(n("5Dmo"),n("3S7+")),u=(n("BoS7"),n("Sdc0")),h=(n("Pwec"),n("CtXQ")),f=n("p0pE"),d=n.n(f),p=n("q1tI"),m=n.n(p),g=n("Bl7J"),v=n("/MKj"),y=n("tI4l"),b=n("qqou"),w=(n("bbsP"),n("/wGt")),x=(n("sRBo"),n("kaz8")),_=(n("OaEy"),n("2fM7")),E=(n("14J3"),n("BMrR")),S=(n("jCWc"),n("kPKH")),C=(n("/zsF"),n("PArb")),k=(n("5NDa"),n("5rEg")),O=n("8zNj");class T extends m.a.Component{constructor(e){super(e),this.state={visible:!1,record:e.record||{show:0,name:null,transfer_enable:null,group_id:void 0,month_price:null,quarter_price:null,half_year_price:null,year_price:null,two_year_price:null,three_year_price:null,onetime_price:null,reset_price:null}},this.show=(()=>{this.setState({visible:!this.state.visible})})}componentDidMount(){this.props.dispatch({type:"config/fetch",key:"site"}),this.props.dispatch({type:"serverGroup/fetch"})}priceOnChange(e,t){this.setState({record:d()({},this.state.record,{[e]:""!==t?t:null})})}save(){this.props.dispatch({type:"plan/save",params:d()({},this.state.record),callback:()=>{this.setState({visible:!1})}})}render(){var e=this.props.config.site,t=this.props.plan.saveLoading,n=this.props.serverGroup.groups;return m.a.createElement(m.a.Fragment,null,m.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),m.a.createElement(w["a"],{id:"plan",maskClosable:!0,onClose:()=>this.setState({visible:!1}),title:"".concat(this.state.record.id?"\u7f16\u8f91\u8ba2\u9605":"\u65b0\u5efa\u8ba2\u9605"),visible:this.state.visible,width:"80%"},m.a.createElement("div",null,m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5957\u9910\u540d\u79f0"),m.a.createElement(k["a"],{placeholder:"\u8bf7\u8f93\u5165\u5957\u9910\u540d\u79f0",value:this.state.record.name,onChange:e=>{this.setState({record:d()({},this.state.record,{name:e.target.value})})}})),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5957\u9910\u63cf\u8ff0"),m.a.createElement(k["a"].TextArea,{rows:4,value:this.state.record.content,placeholder:"\u8bf7\u8f93\u5165\u5957\u9910\u63cf\u8ff0\uff0c\u652f\u6301HTML",onChange:e=>{this.setState({record:d()({},this.state.record,{content:e.target.value})})}})),m.a.createElement(C["a"],{orientation:"center"},"\u552e\u4ef7\u8bbe\u7f6e ",m.a.createElement(c["a"],{placement:"top",title:"\u5c06\u91d1\u989d\u7559\u7a7a\u5219\u4e0d\u4f1a\u8fdb\u884c\u51fa\u552e"},m.a.createElement(h["a"],{type:"info-circle"}))),m.a.createElement(E["a"],{gutter:10},m.a.createElement(S["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u6708\u4ed8"),m.a.createElement(k["a"],{value:null!==this.state.record.month_price?this.state.record.month_price:void 0,onChange:e=>this.priceOnChange("month_price",e.target.value)}))),m.a.createElement(S["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5b63\u4ed8"),m.a.createElement(k["a"],{value:null!==this.state.record.quarter_price?this.state.record.quarter_price:void 0,onChange:e=>this.priceOnChange("quarter_price",e.target.value)}))),m.a.createElement(S["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u534a\u5e74"),m.a.createElement(k["a"],{value:null!==this.state.record.half_year_price?this.state.record.half_year_price:void 0,onChange:e=>this.priceOnChange("half_year_price",e.target.value)}))),m.a.createElement(S["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5e74\u4ed8"),m.a.createElement(k["a"],{value:null!==this.state.record.year_price?this.state.record.year_price:void 0,onChange:e=>this.priceOnChange("year_price",e.target.value)}))),m.a.createElement(S["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u4e24\u5e74\u4ed8"),m.a.createElement(k["a"],{value:null!==this.state.record.two_year_price?this.state.record.two_year_price:void 0,onChange:e=>this.priceOnChange("two_year_price",e.target.value)}))),m.a.createElement(S["a"],{md:4},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u4e09\u5e74\u4ed8"),m.a.createElement(k["a"],{value:null!==this.state.record.three_year_price?this.state.record.three_year_price:void 0,onChange:e=>this.priceOnChange("three_year_price",e.target.value)})))),m.a.createElement(E["a"],{gutter:10},m.a.createElement(S["a"],{md:12},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u4e00\u6b21\u6027"),m.a.createElement(k["a"],{addonAfter:e.currency_symbol,value:null!==this.state.record.onetime_price?this.state.record.onetime_price:void 0,onChange:e=>this.priceOnChange("onetime_price",e.target.value)}))),m.a.createElement(S["a"],{md:12},m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u91cd\u7f6e\u5305"),m.a.createElement(k["a"],{addonAfter:e.currency_symbol,value:null!==this.state.record.reset_price?this.state.record.reset_price:void 0,onChange:e=>this.priceOnChange("reset_price",e.target.value)})))),m.a.createElement(C["a"],null),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u5957\u9910\u6d41\u91cf"),m.a.createElement(k["a"],{addonAfter:"GB",placeholder:"\u8bf7\u8f93\u5165\u5957\u9910\u6d41\u91cf",value:this.state.record.transfer_enable,onChange:e=>{this.setState({record:d()({},this.state.record,{transfer_enable:e.target.value})})}})),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u6743\u9650\u7ec4 ",m.a.createElement(O["a"],null,m.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),m.a.createElement(_["a"],{placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},value:this.state.record.group_id,onChange:e=>{this.setState({record:d()({},this.state.record,{group_id:e})})}},n.map(e=>{return m.a.createElement(_["a"].Option,{key:e.id,value:e.id},e.name)}))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6d41\u91cf\u91cd\u7f6e\u65b9\u5f0f"),m.a.createElement(_["a"],{placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},value:this.state.record.reset_traffic_method,onChange:e=>{this.setState({record:d()({},this.state.record,{reset_traffic_method:e})})}},m.a.createElement(_["a"].Option,{key:null,value:null},"\u8ddf\u968f\u7cfb\u7edf\u8bbe\u7f6e"),m.a.createElement(_["a"].Option,{key:0,value:0},"\u6bcf\u67081\u53f7"),m.a.createElement(_["a"].Option,{key:1,value:1},"\u6309\u6708\u91cd\u7f6e"),m.a.createElement(_["a"].Option,{key:2,value:2},"\u4e0d\u91cd\u7f6e"),m.a.createElement(_["a"].Option,{key:3,value:3},"\u6bcf\u5e741\u67081\u65e5"),m.a.createElement(_["a"].Option,{key:4,value:4},"\u6309\u5e74\u91cd\u7f6e")))),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u6700\u5927\u5bb9\u7eb3\u7528\u6237\u91cf"),m.a.createElement(k["a"],{placeholder:"\u7559\u7a7a\u5219\u4e0d\u9650\u5236",value:this.state.record.capacity_limit,onChange:e=>{this.setState({record:d()({},this.state.record,{capacity_limit:e.target.value})})}})),m.a.createElement("div",{className:"form-group"},m.a.createElement("label",{for:"example-text-input-alt"},"\u9650\u901f"),m.a.createElement(k["a"],{addonAfter:"Mbps",placeholder:"\u7559\u7a7a\u5219\u4e0d\u9650\u5236",value:this.state.record.speed_limit,onChange:e=>{this.setState({record:d()({},this.state.record,{speed_limit:e.target.value})})}})),m.a.createElement("div",{className:"v2board-drawer-action"},m.a.createElement("div",{style:{float:"left",marginTop:5}},m.a.createElement(c["a"],{title:"\u52fe\u9009\u540e\u53d8\u66f4\u7684\u6d41\u91cf\u3001\u9650\u901f\u3001\u6743\u9650\u7ec4\u5c06\u5e94\u7528\u5230\u8be5\u5957\u9910\u4e0b\u7684\u7528\u6237",placement:"top"},m.a.createElement(x["a"],{onChange:e=>this.setState({record:d()({},this.state.record,{force_update:e.target.checked})})},"\u5f3a\u5236\u66f4\u65b0\u5230\u7528\u6237"))),m.a.createElement(o["a"],{style:{marginRight:8},onClick:()=>this.setState({visible:!1})},"\u53d6\u6d88"),m.a.createElement(o["a"],{loading:t,onClick:()=>t||this.save(),type:"primary"},"\u63d0\u4ea4"))))}}var A=Object(v["c"])(e=>{var t=e.plan,n=e.serverGroup,r=e.config;return{plan:t,serverGroup:n,config:r}})(T),P=n("Oa6W"),M=(n("H9LU"),n("I1u9"),n("ykC2"),n("v32e"));class R extends m.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{show:0}}}componentDidMount(){this.props.dispatch({type:"plan/fetch"}),this.props.dispatch({type:"serverGroup/fetch"})}balanceFormat(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return Object.keys(y["a"].periodText).map(n=>{0!==e[n]&&(e[n]?e[n]=t?Math.round(100*e[n]):e[n]/100:e[n]=null)}),e}drop(e){this.props.dispatch({type:"plan/drop",id:e})}edit(e){var t=this.props.plan.plans;this.setState({submit:d()({},t[e]),visible:!0})}update(e,t,n){this.props.dispatch({type:"plan/update",id:e,key:t,value:n})}render(){var e,t=this.props.plan,n=t.plans,r=t.fetchLoading,f=this.props.serverGroup.groups,d=[{title:"\u6392\u5e8f",dataIndex:"sort",key:"sort",render:(e,t)=>{return m.a.createElement(m.a.Fragment,null,m.a.createElement(h["a"],{type:"menu",style:{cursor:"move"}}))}},{title:"\u9500\u552e\u72b6\u6001",dataIndex:"show",key:"show",render:(e,t)=>{return m.a.createElement(u["a"],{size:"small",checked:parseInt(e),onClick:()=>this.update(t.id,"show",parseInt(e)?0:1)})}},{title:m.a.createElement("span",null,"\u7eed\u8d39 ",m.a.createElement(c["a"],{placement:"top",title:"\u5728\u8ba2\u9605\u505c\u6b62\u9500\u552e\u65f6\uff0c\u5df2\u8d2d\u7528\u6237\u662f\u5426\u53ef\u4ee5\u7eed\u8d39"},m.a.createElement(h["a"],{type:"question-circle"}))),dataIndex:"renew",key:"renew",render:(e,t)=>{return m.a.createElement(u["a"],{size:"small",checked:parseInt(e),onClick:()=>this.update(t.id,"renew",parseInt(e)?0:1)})}},{title:"\u540d\u79f0",dataIndex:"name",key:"name"},{title:"\u7edf\u8ba1",dataIndex:"count",key:"count",render:e=>{return m.a.createElement(m.a.Fragment,null,m.a.createElement(h["a"],{type:"user",style:{cursor:"move"}})," ",e)}},{title:"\u6d41\u91cf",dataIndex:"transfer_enable",key:"transfer_enable",render:e=>{return m.a.createElement(m.a.Fragment,null,e," GB")}},{title:"\u6708\u4ed8",dataIndex:"month_price",key:"month_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u5b63\u4ed8",dataIndex:"quarter_price",key:"quarter_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u534a\u5e74\u4ed8",dataIndex:"half_year_price",key:"half_year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u5e74\u4ed8",dataIndex:"year_price",key:"year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u4e24\u5e74\u4ed8",dataIndex:"two_year_price",key:"two_year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u4e09\u5e74\u4ed8",dataIndex:"three_year_price",key:"three_year_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u4e00\u6b21\u6027",dataIndex:"onetime_price",key:"onetime_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u91cd\u7f6e\u5305",dataIndex:"reset_price",key:"reset_price",render:e=>{return null!==e?e.toFixed(2):"-"}},{title:"\u6743\u9650\u7ec4",dataIndex:"group_id",key:"group_id",render:(e,t)=>{var n=[];return f.map(t=>{t.id===parseInt(e)&&n.push(m.a.createElement(l["a"],null,t.name))}),n}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",fixed:"right",align:"right",render:(e,t)=>{return m.a.createElement(m.a.Fragment,null,m.a.createElement(a["a"],{trigger:"click",overlay:m.a.createElement(s["a"],null,m.a.createElement(s["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},m.a.createElement(A,{record:t,key:null===t||void 0===t?void 0:t.id},m.a.createElement("a",null,m.a.createElement(h["a"],{type:"edit"})," \u7f16\u8f91"))),m.a.createElement(s["a"].Item,{style:{color:"#ff4d4f"},onClick:()=>this.drop(t.id)},m.a.createElement(h["a"],{type:"delete"})," \u5220\u9664"))},m.a.createElement("a",{href:"javascript:void(0);"},"\u64cd\u4f5c ",m.a.createElement(h["a"],{type:"caret-down"}))))}}],p=this;return m.a.createElement(g["a"],i()({},this.props,{title:"\u8ba2\u9605\u7ba1\u7406"}),m.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),m.a.createElement(M["a"],{loading:r},m.a.createElement("div",{className:"block block-rounded"},m.a.createElement("div",{className:"bg-white"},m.a.createElement("div",{style:{padding:15}},m.a.createElement(A,null,m.a.createElement(o["a"],null,m.a.createElement(h["a"],{type:"plus"})," \u6dfb\u52a0\u8ba2\u9605"))),m.a.createElement(b["a"],{onDragEnd:(e,t)=>{p.props.dispatch({type:"plan/sort",fromIndex:e,toIndex:t})},nodeSelector:"tr",handleSelector:"i"},m.a.createElement(P["a"],{onContextMenu:e=>{this.record=e,this.forceUpdate()},tableLayout:"auto",dataSource:n,columns:d,pagination:!1,scroll:{x:1300}},m.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"},m.a.createElement("li",{className:"ant-dropdown-menu-item"},m.a.createElement(A,{record:this.record,key:null===(e=this.record)||void 0===e?void 0:e.id},m.a.createElement("a",null,m.a.createElement(h["a"],{type:"edit"})," \u7f16\u8f91"))),m.a.createElement("li",{className:"ant-dropdown-menu-item",onClick:()=>{var e;return this.drop(null===(e=this.record)||void 0===e?void 0:e.id)}},m.a.createElement("a",{style:{color:"#ff4d4f"}},m.a.createElement(h["a"],{type:"delete"})," \u5220\u9664")))))))))}}t["default"]=Object(v["c"])(e=>{var t=e.plan,n=e.serverGroup;return{plan:t,serverGroup:n}})(R)},il4q:function(e,t,n){var r=n("ZDr/");e.exports=function(e){return Object(r(e))}},"j/1Z":function(e,t){e.exports=function(e){return e&&"object"===typeof e&&"function"===typeof e.copy&&"function"===typeof e.fill&&"function"===typeof e.readUInt8}},"j/9B":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=n("6YkS"),i=r.Prompt;t.default=i},j2DC:function(e,t,n){"use strict";var r=n("oVml"),i=n("rr1i"),o=n("RfKB"),a={};n("NegM")(a,n("UWiX")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},jAWH:function(e,t){e.exports={100:"Continue",101:"Switching Protocols",102:"Processing",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"}},jB5C:function(e,t,n){"use strict";var r=Object.assign||function(e){for(var t=1;tPromise.resolve().then(()=>T(n("ZM0C")))}),P=new C.a({html:!0,linkify:!0,typographer:!0});class M extends f.a.Component{constructor(e){super(e),this.state={visible:!1,selectedTab:!1}}componentDidMount(){}formChange(e,t){var n=this.props.knowledge.knowledge;n[e]=t,this.props.dispatch({type:"knowledge/setState",payload:{knowledge:n}})}show(){this.props.id&&this.props.dispatch({type:"knowledge/fetchById",id:this.props.id}),this.setState({visible:!0}),this.key=Math.random()}hide(){this.props.dispatch({type:"knowledge/setState",payload:{knowledge:{}}}),this.setState({visible:!1})}save(){this.props.dispatch({type:"knowledge/save",callback:()=>{x["a"].success("\u4fdd\u5b58\u6210\u529f")}})}render(){var e=this.state.visible,t=this.props.knowledge,n=t.knowledge,r=(t.categorys,t.fetchByIdLoading),i=t.saveLoading,o=this.props.id;return f.a.createElement(f.a.Fragment,null,f.a.cloneElement(this.props.children,{onClick:()=>this.show()}),f.a.createElement(y["a"],{width:"80%",visible:e,title:o?"\u7f16\u8f91\u77e5\u8bc6":"\u65b0\u589e\u77e5\u8bc6",id:"knowledge",onClose:()=>this.hide()},r?f.a.createElement(u["a"],{type:"loading"}):f.a.createElement("div",null,f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6807\u9898"),f.a.createElement(w["a"],{placeholder:"\u8bf7\u8f93\u5165\u77e5\u8bc6\u6807\u9898",value:n.title,onChange:e=>this.formChange("title",e.target.value)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5206\u7c7b"),f.a.createElement(w["a"],{placeholder:"\u8bf7\u8f93\u5165\u5206\u7c7b\uff0c\u5206\u7c7b\u5c06\u4f1a\u81ea\u52a8\u5f52\u96c6",value:n.category,onChange:e=>this.formChange("category",e.target.value)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u8bed\u8a00"),f.a.createElement(b["a"],{placeholder:"\u8bf7\u9009\u62e9\u77e5\u8bc6\u8bed\u8a00",defaultValue:n.language||1,style:{width:"100%"},value:n.language,onChange:e=>this.formChange("language",e)},Object.keys(k["a"].i18nText).sort().map(e=>{return f.a.createElement(b["a"].Option,{value:e},k["a"].i18nText[e])}))),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u5185\u5bb9"),f.a.createElement(A,{key:this.key,style:{height:"500px"},renderHTML:e=>P.render(e),value:n.body,onChange:e=>this.formChange("body",e.text),config:{view:{menu:!0,md:!0,fullScreen:!0,hideMenu:!0}}}))),f.a.createElement("div",{className:"v2board-drawer-action"},f.a.createElement(a["a"],{style:{marginRight:8},onClick:()=>this.hide()},"\u53d6\u6d88"),f.a.createElement(a["a"],{loading:i,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4"))))}}var R=Object(g["c"])(e=>{var t=e.knowledge;return{knowledge:t}})(M),j=n("v32e");class L extends f.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{steps:[]}}}componentDidMount(){this.props.dispatch({type:"knowledge/fetch"}),this.props.dispatch({type:"knowledge/getCategory"})}modalVisible(){this.setState({visible:!this.state.visible},()=>{this.state.visible||this.setState({submit:{steps:[]}})})}show(e){this.props.dispatch({type:"knowledge/show",id:e})}drop(e){this.props.dispatch({type:"knowledge/drop",id:e.id})}render(){var e=this.props.knowledge,t=e.knowledges,n=e.fetchLoading,r=(e.categorys,[{title:"\u6392\u5e8f",dataIndex:"sort",key:"sort",render:e=>{return f.a.createElement(f.a.Fragment,null,f.a.createElement(u["a"],{type:"menu",style:{cursor:"move"}}))}},{title:"\u6587\u7ae0ID",dataIndex:"id",key:"id"},{title:"\u663e\u793a",dataIndex:"show",key:"show",render:(e,t)=>{return f.a.createElement(c["a"],{size:"small",onChange:()=>this.show(t.id),checked:e})}},{title:"\u6807\u9898",dataIndex:"title",key:"title"},{title:"\u5206\u7c7b",dataIndex:"category",key:"category"},{title:"\u66f4\u65b0\u65f6\u95f4",dataIndex:"updated_at",key:"updated_at",align:"right",render:e=>{return m()(1e3*e).format("YYYY/MM/DD HH:mm")}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",render:(e,t,n)=>{return f.a.createElement(f.a.Fragment,null,f.a.createElement(R,{id:t.id},f.a.createElement("a",{href:"javascript:void(0);"},"\u7f16\u8f91")),f.a.createElement(l["a"],{type:"vertical"}),f.a.createElement("a",{href:"javascript:void(0);",onClick:()=>{s["a"].confirm({title:"\u8b66\u544a",content:"\u786e\u5b9a\u8981\u5220\u9664\u8be5\u6761\u9879\u76ee\u5417\uff1f",onOk:()=>this.drop(t),okText:"\u786e\u5b9a",cancelText:"\u53d6\u6d88"})}},"\u5220\u9664"))}}]),h=this;return f.a.createElement(d["a"],i()({},this.props,{title:"\u77e5\u8bc6\u5e93\u7ba1\u7406"}),f.a.createElement(j["a"],{loading:n},f.a.createElement("div",{className:"block border-bottom"},f.a.createElement("div",{className:"bg-white"},f.a.createElement("div",{style:{padding:15}},f.a.createElement(R,null,f.a.createElement(a["a"],null,f.a.createElement(u["a"],{type:"plus"}),"\u65b0\u589e"))),f.a.createElement(v["a"],{onDragEnd:(e,t)=>{h.props.dispatch({type:"knowledge/sort",fromIndex:e,toIndex:t})},nodeSelector:"tr",handleSelector:"i"},f.a.createElement(o["a"],{tableLayout:"auto",dataSource:t,pagination:!1,columns:r,scroll:{x:750}}))))))}}t["default"]=Object(g["c"])(e=>{var t=e.knowledge;return{knowledge:t}})(L)},"jN/G":function(e,t,n){"use strict";var r=n("WGNW"),i=n("il4q"),o=n("wYm8"),a=n("V5/1");n("8Z/V")&&r(r.P+n("OJuA"),"Object",{__defineSetter__:function(e,t){a.f(i(this),e,{set:o(t),enumerable:!0,configurable:!0})}})},jR2x:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("bYtY");function i(e,t){return e&&"solid"!==e&&t>0?"dashed"===e?[4*t,2*t]:"dotted"===e?[t]:Object(r["w"])(e)?[e]:Object(r["r"])(e)?e:null:null}function o(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&i(t.lineDash,t.lineWidth),o=t.lineDashOffset;if(n){var a=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;a&&1!==a&&(n=Object(r["D"])(n,function(e){return e/a}),o/=a)}return[n,o]}},jTL6:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=function(){function e(){this.cx=0,this.cy=0,this.r=0,this.startAngle=0,this.endAngle=2*Math.PI,this.clockwise=!0}return e}(),a=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new o},t.prototype.buildPath=function(e,t){var n=t.cx,r=t.cy,i=Math.max(t.r,0),o=t.startAngle,a=t.endAngle,s=t.clockwise,l=Math.cos(o),c=Math.sin(o);e.moveTo(l*i+n,c*i+r),e.arc(n,r,i,o,a,!s)},t}(i["b"]);a.prototype.type="arc",t["a"]=a},jce2:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function o(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n1&&-1!==t.indexOf("Macintosh")&&-1!==t.indexOf("Safari")&&(n=!0),n}},jjMW:function(e,t,n){"use strict";var r=n("WGNW"),i=n("il4q"),o=n("8BMt"),a=n("BFt8"),s=n("15BC").f;n("8Z/V")&&r(r.P+n("OJuA"),"Object",{__lookupSetter__:function(e){var t,n=i(this),r=o(e,!0);do{if(t=s(n,r))return t.set}while(n=a(n))}})},jmDH:function(e,t,n){e.exports=!n("KUxP")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},jo6Y:function(e,t,n){"use strict";t.__esModule=!0,t.default=function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}},jpXb:function(e,t,n){var r=n("wZXL");e.exports=new r},jzd5:function(e,t,n){"use strict";var r={};function i(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),i.push(n);for(t=0;t=55296&&l<=57343?"\ufffd\ufffd\ufffd":String.fromCharCode(l),t+=6):240===(248&i)&&t+91114111?c+="\ufffd\ufffd\ufffd\ufffd":(l-=65536,c+=String.fromCharCode(55296+(l>>10),56320+(1023&l))),t+=9):c+="\ufffd";return c})}o.defaultChars=";/?:@&=+$,#",o.componentChars="",e.exports=o},k3GJ:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("YEIV"),a=n.n(o),s=n("jo6Y"),l=n.n(s),c=n("iCc5"),u=n.n(c),h=n("V7oC"),f=n.n(h),d=n("FYw3"),p=n.n(d),m=n("mRg0"),g=n.n(m),v=n("q1tI"),y=n.n(v),b=n("17x9"),w=n.n(b),x=n("TSYQ"),_=n.n(x),E=n("xEkU"),S=n.n(E),C=n("VCL8"),k={LEFT:37,UP:38,RIGHT:39,DOWN:40},O=n("hsuR"),T=n("4IlW"),A=n("foW8"),P=n.n(A),M=P()({}),R=M.Provider,j=M.Consumer,L={width:0,height:0,overflow:"hidden",position:"absolute"},D=function(e){function t(){var e,n,r,i;u()(this,t);for(var o=arguments.length,a=Array(o),s=0;s=0}I.propTypes={className:w.a.string,active:w.a.bool,style:w.a.any,destroyInactiveTabPane:w.a.bool,forceRender:w.a.bool,placeholder:w.a.node,rootPrefixCls:w.a.string,children:w.a.node,id:w.a.string},I.defaultProps={placeholder:null};var W=function(e){function t(e){u()(this,t);var n=p()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));H.call(n);var r=void 0;return r="activeKey"in e?e.activeKey:"defaultActiveKey"in e?e.defaultActiveKey:B(e),n.state={activeKey:r},n}return g()(t,e),f()(t,[{key:"componentWillUnmount",value:function(){this.destroy=!0,S.a.cancel(this.sentinelId)}},{key:"updateSentinelContext",value:function(){var e=this;this.destroy||(S.a.cancel(this.sentinelId),this.sentinelId=S()(function(){e.destroy||e.forceUpdate()}))}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.navWrapper,o=t.tabBarPosition,s=t.className,c=t.renderTabContent,u=t.renderTabBar,h=t.destroyInactiveTabPane,f=t.direction,d=l()(t,["prefixCls","navWrapper","tabBarPosition","className","renderTabContent","renderTabBar","destroyInactiveTabPane","direction"]),p=_()((e={},a()(e,n,1),a()(e,n+"-"+o,1),a()(e,s,!!s),a()(e,n+"-rtl","rtl"===f),e));this.tabBar=u();var m=y.a.cloneElement(this.tabBar,{prefixCls:n,navWrapper:r,key:"tabBar",onKeyDown:this.onNavKeyDown,tabBarPosition:o,onTabClick:this.onTabClick,panels:t.children,activeKey:this.state.activeKey,direction:this.props.direction}),g=y.a.cloneElement(c(),{prefixCls:n,tabBarPosition:o,activeKey:this.state.activeKey,destroyInactiveTabPane:h,children:t.children,onChange:this.setActiveKey,key:"tabContent",direction:this.props.direction}),v=y.a.createElement(N,{key:"sentinelStart",setRef:this.setSentinelStart,nextElement:this.panelSentinelStart}),b=y.a.createElement(N,{key:"sentinelEnd",setRef:this.setSentinelEnd,prevElement:this.panelSentinelEnd}),w=[];return"bottom"===o?w.push(v,g,b,m):w.push(m,v,g,b),y.a.createElement(R,{value:{sentinelStart:this.sentinelStart,sentinelEnd:this.sentinelEnd,setPanelSentinelStart:this.setPanelSentinelStart,setPanelSentinelEnd:this.setPanelSentinelEnd}},y.a.createElement("div",i()({className:p,style:t.style},Object(O["b"])(d),{onScroll:this.onScroll}),w))}}],[{key:"getDerivedStateFromProps",value:function(e,t){var n={};return"activeKey"in e?n.activeKey=e.activeKey:V(e,t.activeKey)||(n.activeKey=B(e)),Object.keys(n).length>0?n:null}}]),t}(y.a.Component),H=function(){var e=this;this.onTabClick=function(t,n){e.tabBar.props.onTabClick&&e.tabBar.props.onTabClick(t,n),e.setActiveKey(t)},this.onNavKeyDown=function(t){var n=t.keyCode;if(n===k.RIGHT||n===k.DOWN){t.preventDefault();var r=e.getNextActiveKey(!0);e.onTabClick(r)}else if(n===k.LEFT||n===k.UP){t.preventDefault();var i=e.getNextActiveKey(!1);e.onTabClick(i)}},this.onScroll=function(e){var t=e.target,n=e.currentTarget;t===n&&t.scrollLeft>0&&(t.scrollLeft=0)},this.setSentinelStart=function(t){e.sentinelStart=t},this.setSentinelEnd=function(t){e.sentinelEnd=t},this.setPanelSentinelStart=function(t){t!==e.panelSentinelStart&&e.updateSentinelContext(),e.panelSentinelStart=t},this.setPanelSentinelEnd=function(t){t!==e.panelSentinelEnd&&e.updateSentinelContext(),e.panelSentinelEnd=t},this.setActiveKey=function(t){e.state.activeKey!==t&&("activeKey"in e.props||e.setState({activeKey:t}),e.props.onChange(t))},this.getNextActiveKey=function(t){var n=e.state.activeKey,r=[];y.a.Children.forEach(e.props.children,function(e){e&&!e.props.disabled&&(t?r.push(e):r.unshift(e))});var i=r.length,o=i&&r[0].key;return r.forEach(function(e,t){e.key===n&&(o=t===i-1?r[0].key:r[t+1].key)}),o}};W.propTypes={destroyInactiveTabPane:w.a.bool,renderTabBar:w.a.func.isRequired,renderTabContent:w.a.func.isRequired,navWrapper:w.a.func,onChange:w.a.func,children:w.a.node,prefixCls:w.a.string,className:w.a.string,tabBarPosition:w.a.string,style:w.a.object,activeKey:w.a.string,defaultActiveKey:w.a.string,direction:w.a.string},W.defaultProps={prefixCls:"rc-tabs",destroyInactiveTabPane:!1,onChange:F,navWrapper:function(e){return e},tabBarPosition:"top",children:null,style:{},direction:"ltr"},W.TabPane=$,Object(C["polyfill"])(W);var U=W;n("bTih");n.d(t,"a",function(){return $});t["b"]=U},kAMH:function(e,t,n){var r=n("a0xu");e.exports=Array.isArray||function(e){return"Array"==r(e)}},kCCV:function(e,t){function n(e){this.options=e,!e.deferSetup&&this.setup()}n.prototype={constructor:n,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(e){return this.options===e||this.options.match===e}},e.exports=n},kCK5:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},kTiW:function(e,t,n){e.exports=n("NegM")},"kVK+":function(e,t){t.read=function(e,t,n,r,i){var o,a,s=8*i-r-1,l=(1<>1,u=-7,h=n?i-1:0,f=n?-1:1,d=e[t+h];for(h+=f,o=d&(1<<-u)-1,d>>=-u,u+=s;u>0;o=256*o+e[t+h],h+=f,u-=8);for(a=o&(1<<-u)-1,o>>=-u,u+=r;u>0;a=256*a+e[t+h],h+=f,u-=8);if(0===o)o=1-c;else{if(o===l)return a?NaN:1/0*(d?-1:1);a+=Math.pow(2,r),o-=c}return(d?-1:1)*a*Math.pow(2,o-r)},t.write=function(e,t,n,r,i,o){var a,s,l,c=8*o-i-1,u=(1<>1,f=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,d=r?0:o-1,p=r?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-a))<1&&(a--,l*=2),t+=a+h>=1?f/l:f*Math.pow(2,1-h),t*l>=2&&(a++,l/=2),a+h>=u?(s=0,a=u):a+h>=1?(s=(t*l-1)*Math.pow(2,i),a+=h):(s=t*Math.pow(2,h-1)*Math.pow(2,i),a=0));i>=8;e[n+d]=255&s,d+=p,s/=256,i-=8);for(a=a<0;e[n+d]=255&a,d+=p,a/=256,c-=8);e[n+d-p]|=128*m}},kWR5:function(e,t,n){"use strict";var r=n("WGNW"),i=n("bV5f"),o=n("c0Oy"),a=n("VeyY"),s=n("tGd3");r(r.P+r.R,"Promise",{finally:function(e){var t=a(this,i.Promise||o.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},kd2E:function(e,t,n){"use strict";function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,n,o){t=t||"&",n=n||"=";var a={};if("string"!==typeof e||0===e.length)return a;var s=/\+/g;e=e.split(t);var l=1e3;o&&"number"===typeof o.maxKeys&&(l=o.maxKeys);var c=e.length;l>0&&c>l&&(c=l);for(var u=0;u=0?(h=m.substr(0,g),f=m.substr(g+1)):(h=m,f=""),d=decodeURIComponent(h),p=decodeURIComponent(f),r(a,d)?i(a[d])?a[d].push(p):a[d]=[a[d],p]:a[d]=p}return a};var i=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},kgWH:function(e,t,n){n("gRqi")("Array")},kl5A:function(e,t,n){(function(t,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("yQtW"),l=n("43KI"),c=n("2Tiy"),u=s.IncomingMessage,h=s.readyStates;function f(e,t){return o.fetch&&t?"fetch":o.mozchunkedarraybuffer?"moz-chunked-arraybuffer":o.msstream?"ms-stream":o.arraybuffer&&e?"arraybuffer":o.vbArray&&e?"text:vbarray":"text"}var d=e.exports=function(e){var n,r=this;l.Writable.call(r),r._opts=e,r._body=[],r._headers={},e.auth&&r.setHeader("Authorization","Basic "+new t(e.auth).toString("base64")),Object.keys(e.headers).forEach(function(t){r.setHeader(t,e.headers[t])});var i=!0;if("disable-fetch"===e.mode||"requestTimeout"in e&&!o.abortController)i=!1,n=!0;else if("prefer-streaming"===e.mode)n=!1;else if("allow-wrong-content-type"===e.mode)n=!o.overrideMimeType;else{if(e.mode&&"default"!==e.mode&&"prefer-fast"!==e.mode)throw new Error("Invalid value for opts.mode");n=!0}r._mode=f(n,i),r._fetchTimer=null,r.on("finish",function(){r._onFinish()})};function p(e){try{var t=e.status;return null!==t&&0!==t}catch(e){return!1}}a(d,l.Writable),d.prototype.setHeader=function(e,t){var n=this,r=e.toLowerCase();-1===m.indexOf(r)&&(n._headers[r]={name:e,value:t})},d.prototype.getHeader=function(e){var t=this._headers[e.toLowerCase()];return t?t.value:null},d.prototype.removeHeader=function(e){var t=this;delete t._headers[e.toLowerCase()]},d.prototype._onFinish=function(){var e=this;if(!e._destroyed){var n=e._opts,a=e._headers,s=null;"GET"!==n.method&&"HEAD"!==n.method&&(s=o.arraybuffer?c(t.concat(e._body)):o.blobConstructor?new r.Blob(e._body.map(function(e){return c(e)}),{type:(a["content-type"]||{}).value||""}):t.concat(e._body).toString());var l=[];if(Object.keys(a).forEach(function(e){var t=a[e].name,n=a[e].value;Array.isArray(n)?n.forEach(function(e){l.push([t,e])}):l.push([t,n])}),"fetch"===e._mode){var u=null;if(o.abortController){var f=new AbortController;u=f.signal,e._fetchAbortController=f,"requestTimeout"in n&&0!==n.requestTimeout&&(e._fetchTimer=r.setTimeout(function(){e.emit("requestTimeout"),e._fetchAbortController&&e._fetchAbortController.abort()},n.requestTimeout))}r.fetch(e._opts.url,{method:e._opts.method,headers:l,body:s||void 0,mode:"cors",credentials:n.withCredentials?"include":"same-origin",signal:u}).then(function(t){e._fetchResponse=t,e._connect()},function(t){r.clearTimeout(e._fetchTimer),e._destroyed||e.emit("error",t)})}else{var d=e._xhr=new r.XMLHttpRequest;try{d.open(e._opts.method,e._opts.url,!0)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}"responseType"in d&&(d.responseType=e._mode.split(":")[0]),"withCredentials"in d&&(d.withCredentials=!!n.withCredentials),"text"===e._mode&&"overrideMimeType"in d&&d.overrideMimeType("text/plain; charset=x-user-defined"),"requestTimeout"in n&&(d.timeout=n.requestTimeout,d.ontimeout=function(){e.emit("requestTimeout")}),l.forEach(function(e){d.setRequestHeader(e[0],e[1])}),e._response=null,d.onreadystatechange=function(){switch(d.readyState){case h.LOADING:case h.DONE:e._onXHRProgress();break}},"moz-chunked-arraybuffer"===e._mode&&(d.onprogress=function(){e._onXHRProgress()}),d.onerror=function(){e._destroyed||e.emit("error",new Error("XHR error"))};try{d.send(s)}catch(t){return void i.nextTick(function(){e.emit("error",t)})}}}},d.prototype._onXHRProgress=function(){var e=this;p(e._xhr)&&!e._destroyed&&(e._response||e._connect(),e._response._onXHRProgress())},d.prototype._connect=function(){var e=this;e._destroyed||(e._response=new u(e._xhr,e._fetchResponse,e._mode,e._fetchTimer),e._response.on("error",function(t){e.emit("error",t)}),e.emit("response",e._response))},d.prototype._write=function(e,t,n){var r=this;r._body.push(e),n()},d.prototype.abort=d.prototype.destroy=function(){var e=this;e._destroyed=!0,r.clearTimeout(e._fetchTimer),e._response&&(e._response._destroyed=!0),e._xhr?e._xhr.abort():e._fetchAbortController&&e._fetchAbortController.abort()},d.prototype.end=function(e,t,n){var r=this;"function"===typeof e&&(n=e,e=void 0),l.Writable.prototype.end.call(r,e,t,n)},d.prototype.flushHeaders=function(){},d.prototype.setTimeout=function(){},d.prototype.setNoDelay=function(){},d.prototype.setSocketKeepAlive=function(){};var m=["accept-charset","accept-encoding","access-control-request-headers","access-control-request-method","connection","content-length","cookie","cookie2","date","dnt","expect","host","keep-alive","origin","referer","te","trailer","transfer-encoding","upgrade","via"]}).call(this,n("tjlA").Buffer,n("yLpj"),n("Q2Ig"))},kwZ1:function(e,t,n){"use strict";var r=n("jmDH"),i=n("w6GO"),o=n("mqlF"),a=n("NV0k"),s=n("JB68"),l=n("M1xp"),c=Object.assign;e.exports=!c||n("KUxP")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,f=a.f;while(c>u){var d,p=l(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;while(g>v)d=m[v++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:c},l0kz:function(e,t,n){"use strict";var r=n("wUWy");e.exports=function(e,t){return!!e&&r(function(){t?e.call(null,function(){},1):e.call(null)})}},l4aY:function(e,t,n){"use strict";function r(e,t){var n=t;while(n){if(n===e)return!0;n=n.parentNode}return!1}n.d(t,"a",function(){return r})},lCc8:function(e,t,n){var r=n("Y7ZC");r(r.S,"Object",{create:n("oVml")})},lETv:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={notices:[],fetchLoading:!1};t["default"]={name:"notice",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/notice/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{notices:r.data}});case 12:case"end":return e.stop()}},e)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/notice/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"fetch"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/notice/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/notice/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()}}}},lFUy:function(e,t,n){"use strict";var r=n("8Z/V"),i=n("Igga"),o=n("e6w7"),a=n("LsAW"),s=n("il4q"),l=n("9WFV"),c=Object.assign;e.exports=!c||n("wUWy")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=s(e),c=arguments.length,u=1,h=o.f,f=a.f;while(c>u){var d,p=l(arguments[u++]),m=h?i(p).concat(h(p)):i(p),g=m.length,v=0;while(g>v)d=m[v++],r&&!f.call(p,d)||(n[d]=p[d])}return n}:c},lJCZ:function(e,t,n){(function(e){var r=n("kl5A"),i=n("yQtW"),o=n("U6jy"),a=n("jAWH"),s=n("CxY0"),l=t;l.request=function(t,n){t="string"===typeof t?s.parse(t):o(t);var i=-1===e.location.protocol.search(/^https?:$/)?"http:":"",a=t.protocol||i,l=t.hostname||t.host,c=t.port,u=t.path||"/";l&&-1!==l.indexOf(":")&&(l="["+l+"]"),t.url=(l?a+"//"+l:"")+(c?":"+c:"")+u,t.method=(t.method||"GET").toUpperCase(),t.headers=t.headers||{};var h=new r(t);return n&&h.on("response",n),h},l.get=function(e,t){var n=l.request(e,t);return n.end(),n},l.ClientRequest=r,l.IncomingMessage=i.IncomingMessage,l.Agent=function(){},l.Agent.defaultMaxSockets=4,l.globalAgent=new l.Agent,l.STATUS_CODES=a,l.METHODS=["CHECKOUT","CONNECT","COPY","DELETE","GET","HEAD","LOCK","M-SEARCH","MERGE","MKACTIVITY","MKCOL","MOVE","NOTIFY","OPTIONS","PATCH","POST","PROPFIND","PROPPATCH","PURGE","PUT","REPORT","SEARCH","SUBSCRIBE","TRACE","UNLOCK","UNSUBSCRIBE"]}).call(this,n("yLpj"))},lVBX:function(e,t,n){"use strict";var r=n("fNJh"),i=n("R5jr");r["default"].__addLocaleData(i["default"]),r["default"].defaultLocale="en",t["default"]=r["default"]},lWxU:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={switchLoading:{},saveLoading:!1};t["default"]={name:"serverTrojan",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/server/trojan/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/trojan/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},copy(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/trojan/copy",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/server/trojan/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"serverManage/getNodes"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()}}}},lZXM:function(e,t,n){"use strict";var r=n("7vYJ"),i=n("OsVd"),o=n("ETUh"),a=n("bsDr");n("h7Gi")("match",1,function(e,t,n,s){return[function(n){var r=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=s(n,e,this);if(t.done)return t.value;var l=r(e),c=String(this);if(!l.global)return a(l,c);var u=l.unicode;l.lastIndex=0;var h,f=[],d=0;while(null!==(h=a(l,c))){var p=String(h[0]);f[d]=p,""===p&&(l.lastIndex=o(c,i(l.lastIndex),u)),d++}return 0===d?null:f}]})},lm0R:function(e,t,n){"use strict";(function(t){function n(e,n,r,i){if("function"!==typeof e)throw new TypeError('"callback" argument must be a function');var o,a,s=arguments.length;switch(s){case 0:case 1:return t.nextTick(e);case 2:return t.nextTick(function(){e.call(null,n)});case 3:return t.nextTick(function(){e.call(null,n,r)});case 4:return t.nextTick(function(){e.call(null,n,r,i)});default:o=new Array(s-1),a=0;while(a{this.state.visible||this.setState({submit:{email:this.props.email||void 0,plan_id:void 0,period:void 0,total_amount:void 0}})})}setSubmit(e,t){this.setState({submit:l()({},this.state.submit,{[e]:t})})}ok(){this.props.dispatch({type:"order/assign",params:l()({},this.state.submit),callback:()=>{this.show()}})}render(){var e=this.state,t=e.visible,n=e.submit,s=this.props.plan.plans,l=this.props.order.assignLoading;return u.a.createElement(u.a.Fragment,null,u.a.cloneElement(this.props.children,{onClick:()=>this.show()}),u.a.createElement(r["a"],{title:"\u8ba2\u5355\u5206\u914d",visible:t,onCancel:()=>this.show(),onOk:()=>this.ok(),okText:l?u.a.createElement(a["a"],{type:"loading"}):"\u786e\u5b9a",cancelText:"\u53d6\u6d88"},u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u7528\u6237\u90ae\u7bb1"),u.a.createElement(o["a"],{placeholder:"\u8bf7\u8f93\u5165\u7528\u6237\u90ae\u7bb1",value:n.email,onChange:e=>this.setSubmit("email",e.target.value)})),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u8bf7\u9009\u62e9\u8ba2\u9605"),u.a.createElement("div",null,u.a.createElement(i["a"],{value:n.plan_id,style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u8ba2\u9605",onChange:e=>this.setSubmit("plan_id",e)},s.map(e=>{return u.a.createElement(i["a"].Option,{value:e.id,key:Math.random()},e.name)})))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u8bf7\u9009\u62e9\u5468\u671f"),u.a.createElement("div",null,u.a.createElement(i["a"],{value:n.period,style:{width:"100%"},placeholder:"\u8bf7\u9009\u62e9\u5468\u671f",onChange:e=>this.setSubmit("period",e)},Object.keys(f["a"].periodText).map(e=>{return u.a.createElement(i["a"].Option,{value:e,key:Math.random()},f["a"].periodText[e])})))),u.a.createElement("div",{className:"form-group"},u.a.createElement("label",{for:"example-text-input-alt"},"\u652f\u4ed8\u91d1\u989d"),u.a.createElement(o["a"],{placeholder:"\u8bf7\u8f93\u5165\u9700\u8981\u652f\u4ed8\u7684\u91d1\u989d",addonAfter:"\xa5",value:n.total_amount,onChange:e=>this.setSubmit("total_amount",e.target.value)}))))}}t["a"]=Object(h["c"])(e=>{var t=e.plan,n=e.order;return{plan:t,order:n}})(d)},mFDi:function(e,t,n){"use strict";var r=n("Fofx"),i=n("3Oj7"),o=Math.min,a=Math.max,s=new i["a"],l=new i["a"],c=new i["a"],u=new i["a"],h=new i["a"],f=new i["a"],d=function(){function e(e,t,n,r){n<0&&(e+=n,n=-n),r<0&&(t+=r,r=-r),this.x=e,this.y=t,this.width=n,this.height=r}return e.prototype.union=function(e){var t=o(e.x,this.x),n=o(e.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=a(e.x+e.width,this.x+this.width)-t:this.width=e.width,isFinite(this.y)&&isFinite(this.height)?this.height=a(e.y+e.height,this.y+this.height)-n:this.height=e.height,this.x=t,this.y=n},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(e){var t=this,n=e.width/t.width,i=e.height/t.height,o=r["b"]();return r["h"](o,o,[-t.x,-t.y]),r["g"](o,o,[n,i]),r["h"](o,o,[e.x,e.y]),o},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,u=t.x+t.width,d=t.y,p=t.y+t.height,m=!(av&&(v=_,yv&&(v=E,w=n.x&&e<=n.x+n.width&&t>=n.y&&t<=n.y+n.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return 0===this.width||0===this.height},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(e,t){e.x=t.x,e.y=t.y,e.width=t.width,e.height=t.height},e.applyTransform=function(t,n,r){if(r){if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var i=r[0],h=r[3],f=r[4],d=r[5];return t.x=n.x*i+f,t.y=n.y*h+d,t.width=n.width*i,t.height=n.height*h,t.width<0&&(t.x+=t.width,t.width=-t.width),void(t.height<0&&(t.y+=t.height,t.height=-t.height))}s.x=c.x=n.x,s.y=u.y=n.y,l.x=u.x=n.x+n.width,l.y=c.y=n.y+n.height,s.transform(r),u.transform(r),l.transform(r),c.transform(r),t.x=o(s.x,l.x,c.x,u.x),t.y=o(s.y,l.y,c.y,u.y);var p=a(s.x,l.x,c.x,u.x),m=a(s.y,l.y,c.y,u.y);t.width=p-t.x,t.height=m-t.y}else t!==n&&e.copy(t,n)},e}();t["a"]=d},mHNb:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={knowledges:[],fetchLoading:!1,categorys:[],knowledge:{},fetchByIdLoading:!1,saveLoading:!1};t["default"]={name:"knowledge",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{fetch(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,n({type:"setState",payload:{fetchLoading:!0}});case 3:return e.next=5,Object(s["a"])("/admin/knowledge/fetch");case 5:return r=e.sent,e.next=8,n({type:"setState",payload:{fetchLoading:!1}});case 8:if(200===r.code){e.next=10;break}return e.abrupt("return");case 10:return e.next=12,n({type:"setState",payload:{knowledges:r.data}});case 12:case"end":return e.stop()}},e)})()},fetchById(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,o({type:"setState",payload:{fetchByIdLoading:!0}});case 4:return n.next=6,Object(s["a"])("/admin/knowledge/fetch",{id:r});case 6:return a=n.sent,n.next=9,o({type:"setState",payload:{fetchByIdLoading:!1}});case 9:if(200===a.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,o({type:"setState",payload:{knowledge:a.data}});case 13:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.callback,o=t.put,l=t.select,n.next=4,l(e=>e.knowledge);case 4:return c=n.sent,u=c.knowledge,n.next=8,o({type:"setState",payload:{saveLoading:!0}});case 8:return n.next=10,Object(s["b"])("/admin/knowledge/save",a()({},u));case 10:return h=n.sent,n.next=13,o({type:"setState",payload:{saveLoading:!1}});case 13:if(200===h.code){n.next=15;break}return n.abrupt("return");case 15:return n.next=17,o({type:"fetch"});case 17:"function"===typeof r&&r();case 18:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/knowledge/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},show(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/knowledge/show",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"fetch"});case 9:case"end":return n.stop()}},n)})()},sort(e,t){return i.a.mark(function n(){var r,o,a,l,c,u,h;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.fromIndex,o=e.toIndex,a=t.select,l=t.put,n.next=4,l({type:"setState",payload:{fetchLoading:!0}});case 4:return n.next=6,a(e=>e.knowledge);case 6:return c=n.sent,u=c.knowledges,re.id)});case 13:if(h=n.sent,200===h.code){n.next=16;break}return n.abrupt("return");case 16:return n.next=18,l({type:"fetch"});case 18:case"end":return n.stop()}},n)})()},getCategory(e,t){return i.a.mark(function e(){var n,r;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return n=t.put,e.next=3,Object(s["a"])("/admin/knowledge/getCategory");case 3:if(r=e.sent,200===r.code){e.next=6;break}return e.abrupt("return");case 6:return e.next=8,n({type:"setState",payload:{categorys:r.data}});case 8:case"end":return e.stop()}},e)})()}}}},mRg0:function(e,t,n){"use strict";t.__esModule=!0;var r=n("s3Ml"),i=c(r),o=n("AyUB"),a=c(o),s=n("EJiy"),l=c(s);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+("undefined"===typeof t?"undefined":(0,l.default)(t)));e.prototype=(0,a.default)(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(i.default?(0,i.default)(e,t):e.__proto__=t)}},maVC:function(e,t,n){"use strict";n("2qtc");var r=n("kLXV"),i=n("p0pE"),o=n.n(i),a=(n("5NDa"),n("5rEg")),s=n("q1tI"),l=n.n(s),c=n("/MKj");class u extends l.a.Component{constructor(e){super(e),this.state={visible:!1,submit:{}}}show(){this.setState({visible:!0})}hide(){this.setState({visible:!1})}send(){this.props.dispatch({type:"user/sendMail",params:this.state.submit,callback:()=>{this.hide()}})}render(){var e=this.props.user,t=e.filter,n=e.sendMailLoading,i=this.state.visible;return l.a.createElement(l.a.Fragment,null,l.a.cloneElement(this.props.children,{onClick:()=>this.show()}),l.a.createElement(r["a"],{title:"\u53d1\u9001\u90ae\u4ef6",visible:i,onOk:()=>this.send(),okButtonProps:{loading:n},onCancel:()=>this.hide()},l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u6536\u4ef6\u4eba"),l.a.createElement(a["a"],{disabled:!0,value:t.length?"\u8fc7\u6ee4\u7528\u6237":"\u5168\u90e8\u7528\u6237"})),l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u4e3b\u9898"),l.a.createElement(a["a"],{placeholder:"\u8bf7\u8f93\u5165\u90ae\u4ef6\u4e3b\u9898",value:this.state.submit.subject,onChange:e=>{this.setState({submit:o()({},this.state.submit,{subject:e.target.value})})}})),l.a.createElement("div",{className:"form-group"},l.a.createElement("label",{htmlFor:"example-text-input-alt"},"\u53d1\u9001\u5185\u5bb9"),l.a.createElement(a["a"].TextArea,{rows:12,value:this.state.submit.content,placeholder:"\u8bf7\u8f93\u5165\u90ae\u4ef6\u5185\u5bb9",onChange:e=>{this.setState({submit:o()({},this.state.submit,{content:e.target.value})})}}))))}}t["a"]=Object(c["c"])(e=>{var t=e.user;return{user:t}})(u)},mcDz:function(e,t,n){"use strict";t.__esModule=!0,t.locationsAreEqual=t.createLocation=void 0;var r=Object.assign||function(e){for(var t=1;t0&&i[i.length-1])&&(6===o[0]||2===o[0])){a=0;continue}if(3===o[0]&&(!i||o[1]>i[0]&&o[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function o(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,o=n.call(e),a=[];try{while((void 0===t||t-- >0)&&!(r=o.next()).done)a.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=o["return"])&&n.call(o)}finally{if(i)throw i.error}}return a}function a(e,t,n){if(n||2===arguments.length)for(var r,i=0,o=t.length;i Promise))`.","See if using `DarkReader.setFetchMethod(window.fetch)`","before `DarkReader.enable()` works."].join(" ")))]})})},E=_;function S(e){E=e||_}function C(e){return n(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return[4,E(e)];case 1:return[2,t.sent()]}})})}window.chrome||(window.chrome={}),chrome.runtime||(chrome.runtime={});var k=new Set;function O(){for(var e=[],t=0;t=r){if(d-cte)return!0;for(var t=0,n=0;nte)return!0;return!1}function re(e){var t=new Set,n=new Set,r=new Set;e.forEach(function(e){D(e.addedNodes,function(e){e instanceof Element&&e.isConnected&&t.add(e)}),D(e.removedNodes,function(e){e instanceof Element&&(e.isConnected?r.add(e):n.add(e))})}),r.forEach(function(e){return t.delete(e)});var i=[],o=[];return t.forEach(function(e){t.has(e.parentElement)&&i.push(e)}),n.forEach(function(e){n.has(e.parentElement)&&o.push(e)}),i.forEach(function(e){return t.delete(e)}),o.forEach(function(e){return n.delete(e)}),{additions:t,moves:r,deletions:n}}var ie,oe=new Map,ae=new WeakMap;function se(e,t){var n,r,i;if(oe.has(e))n=oe.get(e),r=ae.get(n);else{var o=!1,a=!1;n=new MutationObserver(function(t){if(ne(t))!o||q()?r.forEach(function(t){var n=t.onHugeMutations;return n(e)}):a||(i=function(){return r.forEach(function(t){var n=t.onHugeMutations;return n(e)})},G(i),a=!0),o=!0;else{var n=re(t);r.forEach(function(e){var t=e.onMinorMutations;return t(n)})}}),n.observe(e,{childList:!0,subtree:!0}),oe.set(e,n),r=new Set,ae.set(n,r)}return r.add(t),{disconnect:function(){r.delete(t),i&&Y(i),0===r.size&&(n.disconnect(),ae.delete(n),oe.delete(e))}}}var le=new Map;function ce(e){return ie||(ie=document.createElement("a")),ie.href=e,ie.href}function ue(e,t){void 0===t&&(t=null);var n=e+(t?";"+t:"");if(le.has(n))return le.get(n);if(t){var r=new URL(e,ce(t));return le.set(n,r),r}var i=new URL(ce(e));return le.set(e,i),i}function he(e,t){if(t.match(/^data\\?\:/))return t;var n=ue(e),r=ue(t,n.href);return r.href}function fe(e,t,n){D(e,function(e){if(e.selectorText)t(e);else if(e.href)try{fe(e.styleSheet.cssRules,t,n)}catch(e){$("Found a non-loaded link."),n&&n()}else if(e.media){var r=Array.from(e.media),i=r.some(function(e){return e.startsWith("screen")||e.startsWith("all")}),o=r.some(function(e){return e.startsWith("print")||e.startsWith("speech")});!i&&o||fe(e.cssRules,t,n)}else e.conditionText?CSS.supports(e.conditionText)&&fe(e.cssRules,t,n):F("CSSRule type not supported",e)})}var de=["background","border","border-color","border-bottom","border-left","border-right","border-top","outline","outline-color"],pe=d?de.map(function(e){var t=new RegExp(e+":\\s*(.*?)\\s*;");return[e,t]}):null;function me(e,t){D(e,function(n){var r=e.getPropertyValue(n).trim();r&&t(n,r)});var n=e.cssText;n.includes("var(")&&(d?pe.forEach(function(e){var r=o(e,2),i=r[0],a=r[1],s=n.match(a);if(s&&s[1]){var l=s[1].trim();t(i,l)}}):de.forEach(function(n){var r=e.getPropertyValue(n);r&&r.includes("var(")&&t(n,r)}))}var ge=/url\((('.+?')|(".+?")|([^\)]*?))\)/g,ve=/@import\s*(url\()?(('.+?')|(".+?")|([^\)]*?))\)?;?/g;function ye(e){return e.replace(/^url\((.*)\)$/,"$1").replace(/^"(.*)"$/,"$1").replace(/^'(.*)'$/,"$1")}function be(e){var t=ue(e);return""+t.origin+t.pathname.replace(/\?.*$/,"").replace(/(\/)([^\/]+)$/i,"$1")}function we(e,t){return e.replace(ge,function(e){var n=ye(e);return'url("'+he(t,n)+'")'})}var xe=/\/\*[\s\S]*?\*\//g;function _e(e){return e.replace(xe,"")}var Ee=/@font-face\s*{[^}]*}/g;function Se(e){return e.replace(Ee,"")}function Ce(e){var t=e.h,n=e.s,r=e.l,i=e.a,a=void 0===i?1:i;if(0===n){var s=o([r,r,r].map(function(e){return Math.round(255*e)}),3),l=s[0],c=s[1],u=s[2];return{r:l,g:u,b:c,a:a}}var h=(1-Math.abs(2*r-1))*n,f=h*(1-Math.abs(t/60%2-1)),d=r-h/2,p=o((t<60?[h,f,0]:t<120?[f,h,0]:t<180?[0,h,f]:t<240?[0,f,h]:t<300?[f,0,h]:[h,0,f]).map(function(e){return Math.round(255*(e+d))}),3),m=p[0],g=p[1],v=p[2];return{r:m,g:g,b:v,a:a}}function ke(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=void 0===i?1:i,a=t/255,s=n/255,l=r/255,c=Math.max(a,s,l),u=Math.min(a,s,l),h=c-u,f=(c+u)/2;if(0===h)return{h:0,s:0,l:f,a:o};var d=60*(c===a?(s-l)/h%6:c===s?(l-a)/h+2:(a-s)/h+4);d<0&&(d+=360);var p=h/(1-Math.abs(2*f-1));return{h:d,s:p,l:f,a:o}}function Oe(e,t){void 0===t&&(t=0);var n=e.toFixed(t);if(0===t)return n;var r=n.indexOf(".");if(r>=0){var i=n.match(/0+$/);if(i)return i.index===r+1?n.substring(0,r):n.substring(0,i.index)}return n}function Te(e){var t=e.r,n=e.g,r=e.b,i=e.a;return null!=i&&i<1?"rgba("+Oe(t)+", "+Oe(n)+", "+Oe(r)+", "+Oe(i,2)+")":"rgb("+Oe(t)+", "+Oe(n)+", "+Oe(r)+")"}function Ae(e){var t=e.r,n=e.g,r=e.b,i=e.a;return"#"+(null!=i&&i<1?[t,n,r,Math.round(255*i)]:[t,n,r]).map(function(e){return(e<16?"0":"")+e.toString(16)}).join("")}function Pe(e){var t=e.h,n=e.s,r=e.l,i=e.a;return null!=i&&i<1?"hsla("+Oe(t)+", "+Oe(100*n)+"%, "+Oe(100*r)+"%, "+Oe(i,2)+")":"hsl("+Oe(t)+", "+Oe(100*n)+"%, "+Oe(100*r)+"%)"}var Me=/^rgba?\([^\(\)]+\)$/,Re=/^hsla?\([^\(\)]+\)$/,je=/^#[0-9a-f]+$/i;function Le(e){var t=e.trim().toLowerCase();if(t.match(Me))return Fe(t);if(t.match(Re))return He(t);if(t.match(je))return Ue(t);if(Ke.has(t))return ze(t);if(Ge.has(t))return qe(t);if("transparent"===e)return{r:0,g:0,b:0,a:0};throw new Error("Unable to parse "+e)}function De(e,t,n,r){var i=e.split(t).filter(function(e){return e}),a=Object.entries(r),s=i.map(function(e){return e.trim()}).map(function(e,t){var r,i=a.find(function(t){var n=o(t,1),r=n[0];return e.endsWith(r)});return r=i?parseFloat(e.substring(0,e.length-i[0].length))/i[1]*n[t]:parseFloat(e),n[t]>1?Math.round(r):r});return s}var Ne=/rgba?|\(|\)|\/|,|\s/gi,Ie=[255,255,255,1],$e={"%":100};function Fe(e){var t=o(De(e,Ne,Ie,$e),4),n=t[0],r=t[1],i=t[2],a=t[3],s=void 0===a?1:a;return{r:n,g:r,b:i,a:s}}var Be=/hsla?|\(|\)|\/|,|\s/gi,Ve=[360,1,1,1],We={"%":100,deg:360,rad:2*Math.PI,turn:1};function He(e){var t=o(De(e,Be,Ve,We),4),n=t[0],r=t[1],i=t[2],a=t[3],s=void 0===a?1:a;return Ce({h:n,s:r,l:i,a:s})}function Ue(e){var t=e.substring(1);switch(t.length){case 3:case 4:var n=o([0,1,2].map(function(e){return parseInt(""+t[e]+t[e],16)}),3),r=n[0],i=n[1],a=n[2],s=3===t.length?1:parseInt(""+t[3]+t[3],16)/255;return{r:r,g:i,b:a,a:s};case 6:case 8:var l=o([0,2,4].map(function(e){return parseInt(t.substring(e,e+2),16)}),3);r=l[0],i=l[1],a=l[2],s=6===t.length?1:parseInt(t.substring(6,8),16)/255;return{r:r,g:i,b:a,a:s}}throw new Error("Unable to parse "+e)}function ze(e){var t=Ke.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}function qe(e){var t=Ge.get(e);return{r:t>>16&255,g:t>>8&255,b:t>>0&255,a:1}}var Ke=new Map(Object.entries({aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgrey:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,grey:8421504,green:32768,greenyellow:11403055,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgrey:13882323,lightgreen:9498256,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074})),Ge=new Map(Object.entries({ActiveBorder:3906044,ActiveCaption:0,AppWorkspace:11184810,Background:6513614,ButtonFace:16777215,ButtonHighlight:15329769,ButtonShadow:10461343,ButtonText:0,CaptionText:0,GrayText:8355711,Highlight:11720703,HighlightText:0,InactiveBorder:16777215,InactiveCaption:16777215,InactiveCaptionText:0,InfoBackground:16514245,InfoText:0,Menu:16185078,MenuText:16777215,Scrollbar:11184810,ThreeDDarkShadow:0,ThreeDFace:12632256,ThreeDHighlight:16777215,ThreeDLightShadow:16777215,ThreeDShadow:0,Window:15527148,WindowFrame:11184810,WindowText:0,"-webkit-focus-ring-color":15046400}).map(function(e){var t=o(e,2),n=t[0],r=t[1];return[n.toLowerCase(),r]}));function Ye(e,t,n,r,i){return(e-t)*(i-r)/(n-t)+r}function Xe(e,t,n){return Math.min(n,Math.max(t,e))}function Qe(e,t){for(var n=[],r=0,i=e.length;r200&&i<280;r=o<.24||a>.8&&c}var u=i,h=a;r&&(l?(u=t.h,h=t.s):(u=n.h,h=n.s));var f=Ye(a,0,1,t.l,n.l);return{h:u,s:h,l:f,a:s}}var yt=.4;function bt(e,t){var n=e.h,r=e.s,i=e.l,o=e.a,a=i<.5,s=n>200&&n<280,l=r<.12||i>.8&&s;if(a){var c=Ye(i,0,.5,0,yt);if(l){var u=t.h,h=t.s;return{h:u,s:h,l:c,a:o}}return{h:n,s:r,l:c,a:o}}var f=Ye(i,.5,1,yt,t.l);if(l){var d=t.h;h=t.s;return{h:d,s:h,l:f,a:o}}var p=n,m=n>60&&n<180;if(m){var g=n>120;p=g?Ye(n,120,180,135,180):Ye(n,60,120,60,105)}return{h:p,s:r,l:f,a:o}}function wt(e,n){if(0===n.mode)return gt(e,n);var r=it(n);return dt(e,t(t({},n),{mode:0}),bt,r)}var xt,_t=.55;function Et(e){return Ye(e,205,245,205,220)}function St(e,t){var n=e.h,r=e.s,i=e.l,o=e.a,a=i>.5,s=i<.2||r<.24,l=!s&&n>205&&n<245;if(a){var c=Ye(i,.5,1,_t,t.l);if(s){var u=t.h,h=t.s;return{h:u,s:h,l:c,a:o}}var f=n;return l&&(f=Et(n)),{h:f,s:r,l:c,a:o}}if(s){var d=t.h,p=(h=t.s,Ye(i,0,.5,t.l,_t));return{h:d,s:h,l:p,a:o}}var m,g=n;return l?(g=Et(n),m=Ye(i,0,.5,t.l,Math.min(1,_t+.05))):m=Ye(i,0,.5,t.l,_t),{h:g,s:r,l:m,a:o}}function Ct(e,n){if(0===n.mode)return gt(e,n);var r=ot(n);return dt(e,t(t({},n),{mode:0}),St,r)}function kt(e,t,n){var r=e.h,i=e.s,o=e.l,a=e.a,s=o<.5,l=o<.2||i<.24,c=r,u=i;l&&(s?(c=t.h,u=t.s):(c=n.h,u=n.s));var h=Ye(o,0,1,.5,.2);return{h:c,s:u,l:h,a:a}}function Ot(e,n){if(0===n.mode)return gt(e,n);var r=ot(n),i=it(n);return dt(e,t(t({},n),{mode:0}),kt,r,i)}function Tt(e,t){return wt(e,t)}function At(e,t){return wt(e,t)}function Pt(e){var t=[];return t.push('*:not(pre, pre *, code, .far, .fa, .glyphicon, [class*="vjs-"], .fab, .fa-github, .fas, .material-icons, .icofont, .typcn, mu, [class*="mu-"], .glyphicon, .icon) {'),e.useFont&&e.fontFamily&&t.push(" font-family: "+e.fontFamily+" !important;"),e.textStroke>0&&(t.push(" -webkit-text-stroke: "+e.textStroke+"px !important;"),t.push(" text-stroke: "+e.textStroke+"px !important;")),t.push("}"),t.join("\n")}function Mt(e){var t=[];return e.mode===xt.dark&&t.push("invert(100%) hue-rotate(180deg)"),100!==e.brightness&&t.push("brightness("+e.brightness+"%)"),100!==e.contrast&&t.push("contrast("+e.contrast+"%)"),0!==e.grayscale&&t.push("grayscale("+e.grayscale+"%)"),0!==e.sepia&&t.push("sepia("+e.sepia+"%)"),0===t.length?null:t.join(" ")}function Rt(e){return e.slice(0,4).map(function(e){return e.map(function(e){return e.toFixed(3)}).join(" ")}).join(" ")}function jt(e){return Rt(tt(e))}(function(e){e[e["light"]=0]="light",e[e["dark"]=1]="dark"})(xt||(xt={}));var Lt=0,Dt=new Map,Nt=new Map;function It(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,new Promise(function(t,n){var r=++Lt;Dt.set(r,t),Nt.set(r,n),chrome.runtime.sendMessage({type:s.CS_FETCH,data:e,id:r})})]})})}chrome.runtime.onMessage.addListener(function(e){var t=e.type,n=e.data,r=e.error,i=e.id;if(t===s.BG_FETCH_RESPONSE){var o=Dt.get(i),a=Nt.get(i);Dt.delete(i),Nt.delete(i),r?a&&a(r):o&&o(n)}});var $t=function(){function e(){this.queue=[],this.timerId=null,this.frameDuration=1e3/60}return e.prototype.addToQueue=function(e){this.queue.push(e),this.startQueue()},e.prototype.stopQueue=function(){null!==this.timerId&&(cancelAnimationFrame(this.timerId),this.timerId=null),this.queue=[]},e.prototype.startQueue=function(){var e=this;this.timerId||(this.timerId=requestAnimationFrame(function(){e.timerId=null;var t,n=Date.now();while(t=e.queue.shift())if(t(),Date.now()-n>=e.frameDuration){e.startQueue();break}}))},e}(),Ft=new $t;function Bt(e){return n(this,void 0,void 0,function(){var i=this;return r(this,function(o){return[2,new Promise(function(o,a){return n(i,void 0,void 0,function(){var n,i,s,l;return r(this,function(r){switch(r.label){case 0:return e.startsWith("data:")?(n=e,[3,4]):[3,1];case 1:return r.trys.push([1,3,,4]),[4,Vt(e)];case 2:return n=r.sent(),[3,4];case 3:return i=r.sent(),a(i),[3,4];case 4:return r.trys.push([4,6,,7]),[4,Wt(n)];case 5:return s=r.sent(),Ft.addToQueue(function(){o(t({src:e,dataURL:n,width:s.naturalWidth,height:s.naturalHeight},Yt(s)))}),[3,7];case 6:return l=r.sent(),a(l),[3,7];case 7:return[2]}})})})]})})}function Vt(e){return n(this,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return t=new URL(e),t.origin!==location.origin?[3,2]:[4,w(e)];case 1:return[2,n.sent()];case 2:return[4,It({url:e,responseType:"data-url"})];case 3:return[2,n.sent()]}})})}function Wt(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,new Promise(function(t,n){var r=new Image;r.onload=function(){return t(r)},r.onerror=function(){return n("Unable to load image "+e)},r.src=e})]})})}var Ht,Ut,zt=1024;function qt(){var e=zt,t=zt;Ht=document.createElement("canvas"),Ht.width=e,Ht.height=t,Ut=Ht.getContext("2d"),Ut.imageSmoothingEnabled=!1}function Kt(){Ht=null,Ut=null}var Gt=5242880;function Yt(e){Ht||qt();var t=e.naturalWidth,n=e.naturalHeight;if(0===n||0===t)return F("logWarn(Image is empty "+e.currentSrc+")"),null;var r=t*n*4;if(r>Gt)return $("Skipped large image analyzing(Larger than 5mb in memory)"),{isDark:!1,isLight:!1,isTransparent:!1,isLarge:!1,isTooLarge:!0};var i=t*n,o=Math.min(1,Math.sqrt(zt/i)),a=Math.ceil(t*o),s=Math.ceil(n*o);Ut.clearRect(0,0,a,s),Ut.drawImage(e,0,0,t,n,0,0,a,s);var l,c,u,h,f,d,p,m,g=Ut.getImageData(0,0,a,s),v=g.data,y=.05,b=.4,w=.7,x=0,_=0,E=0;for(u=0;uw&&E++);var S=a*s,C=S-x,k=.7,O=.7,T=.1,A=48e4;return{isDark:_/C>=k,isLight:E/C>=O,isTransparent:x/S>=T,isLarge:i>=A,isTooLarge:!1}}function Xt(e,t){var n=e.dataURL,r=e.width,i=e.height,o=jt(t),a=['',"",'','',"","",'',""].join("");return"data:image/svg+xml;base64,"+btoa(a)}function Qt(){Ft&&Ft.stopQueue(),Kt()}function Zt(e,t){return Boolean(e&&e.getPropertyPriority(t))}function Jt(e,t,n,r,i,o){if(e.startsWith("--")){var a=vn(r,e,t,n,i,o);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if(t.includes("var(")){a=yn(r,e,t);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if(e.includes("color")&&"-webkit-print-color-adjust"!==e||"fill"===e||"stroke"===e||"stop-color"===e){a=un(e,t);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if("background-image"===e||"list-style-image"===e){a=mn(t,n,i,o);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}else if(e.includes("shadow")){a=gn(t);if(a)return{property:e,value:a,important:Zt(n.style,e),sourceValue:t}}return null}function en(e,t,n){var r=[];return t||(r.push("html {"),r.push(" background-color: "+wt({r:255,g:255,b:255},e)+" !important;"),r.push("}")),r.push((t?"":"html, body, ")+(n?"input, textarea, select, button":"")+" {"),r.push(" background-color: "+wt({r:255,g:255,b:255},e)+";"),r.push("}"),r.push("html, body, "+(n?"input, textarea, select, button":"")+" {"),r.push(" border-color: "+Ot({r:76,g:76,b:76},e)+";"),r.push(" color: "+Ct({r:0,g:0,b:0},e)+";"),r.push("}"),r.push("a {"),r.push(" color: "+Ct({r:0,g:64,b:255},e)+";"),r.push("}"),r.push("table {"),r.push(" border-color: "+Ot({r:128,g:128,b:128},e)+";"),r.push("}"),r.push("::placeholder {"),r.push(" color: "+Ct({r:169,g:169,b:169},e)+";"),r.push("}"),r.push("input:-webkit-autofill,"),r.push("textarea:-webkit-autofill,"),r.push("select:-webkit-autofill {"),r.push(" background-color: "+wt({r:250,g:255,b:189},e)+" !important;"),r.push(" color: "+Ct({r:0,g:0,b:0},e)+" !important;"),r.push("}"),e.scrollbarColor&&r.push(rn(e)),e.selectionColor&&r.push(nn(e)),r.join("\n")}function tn(e){var n,r;if("auto"===e.selectionColor)n=wt({r:0,g:96,b:212},t(t({},e),{grayscale:0})),r=Ct({r:255,g:255,b:255},t(t({},e),{grayscale:0}));else{var i=Le(e.selectionColor),o=ke(i);n=e.selectionColor,r=o.l<.5?"#FFF":"#000"}return{backgroundColorSelection:n,foregroundColorSelection:r}}function nn(e){var t=[],n=tn(e),r=n.backgroundColorSelection,i=n.foregroundColorSelection;return["::selection","::-moz-selection"].forEach(function(e){t.push(e+" {"),t.push(" background-color: "+r+" !important;"),t.push(" color: "+i+" !important;"),t.push("}")}),t.join("\n")}function rn(e){var n,r,i,o,a,s,l=[];if("auto"===e.scrollbarColor)n=wt({r:241,g:241,b:241},e),r=Ct({r:96,g:96,b:96},e),i=wt({r:176,g:176,b:176},e),o=wt({r:144,g:144,b:144},e),a=wt({r:96,g:96,b:96},e),s=wt({r:255,g:255,b:255},e);else{var c=Le(e.scrollbarColor),u=ke(c),h=u.l>.5,d=function(e){return t(t({},u),{l:Xe(u.l+e,0,1)})},p=function(e){return t(t({},u),{l:Xe(u.l-e,0,1)})};n=Pe(p(.4)),r=Pe(h?p(.4):d(.4)),i=Pe(u),o=Pe(d(.1)),a=Pe(d(.2))}return l.push("::-webkit-scrollbar {"),l.push(" background-color: "+n+";"),l.push(" color: "+r+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb {"),l.push(" background-color: "+i+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb:hover {"),l.push(" background-color: "+o+";"),l.push("}"),l.push("::-webkit-scrollbar-thumb:active {"),l.push(" background-color: "+a+";"),l.push("}"),l.push("::-webkit-scrollbar-corner {"),l.push(" background-color: "+s+";"),l.push("}"),f&&(l.push("* {"),l.push(" scrollbar-color: "+i+" "+n+";"),l.push("}")),l.join("\n")}function on(e,t){var n=t.strict,r=[];return r.push("html, body, "+(n?"body :not(iframe)":"body > :not(iframe)")+" {"),r.push(" background-color: "+wt({r:255,g:255,b:255},e)+" !important;"),r.push(" border-color: "+Ot({r:64,g:64,b:64},e)+" !important;"),r.push(" color: "+Ct({r:0,g:0,b:0},e)+" !important;"),r.push("}"),r.join("\n")}var an=new Set(["inherit","transparent","initial","currentcolor","none","unset"]),sn=new Map;function ln(e){if(e=e.trim(),sn.has(e))return sn.get(e);var t=Le(e);return sn.set(e,t),t}function cn(e){try{return ln(e)}catch(e){return null}}function un(e,t){if(an.has(t.toLowerCase()))return t;try{var n=ln(t);return e.includes("background")?function(e){return wt(n,e)}:e.includes("border")||e.includes("outline")?function(e){return Ot(n,e)}:function(e){return Ct(n,e)}}catch(e){return F("Color parse error",e),null}}var hn=/[\-a-z]+gradient\(([^\(\)]*(\(([^\(\)]*(\(.*?\)))*[^\(\)]*\))){0,15}[^\(\)]*\)/g,fn=new Map,dn=new Map;function pn(e,t){if(!e||0===t.length)return!1;if(t.some(function(e){return"*"===e}))return!0;for(var n=e.split(/,\s*/g),r=function(e){var r=t[e];if(n.some(function(e){return e===r}))return{value:!0}},i=0;i2){$("Inverting dark image "+e.src);var u=Xt(e,t(t({},n),{sepia:Xe(n.sepia+10,0,100)}));r='url("'+u+'")'}else if(o&&!a&&1===n.mode)if(s)r="none";else{$("Dimming light image "+e.src);var h=Xt(e,n);r='url("'+h+'")'}else if(0===n.mode&&o&&!s){$("Applying filter to image "+e.src);var f=Xt(e,t(t({},n),{brightness:Xe(n.brightness-10,5,200),sepia:Xe(n.sepia+10,0,100)}));r='url("'+f+'")'}else r=null;return r},m=[],g=0;return h.forEach(function(t,n){var r=t.match,i=t.type,o=t.index,a=g,s=o+r.length;g=s,m.push(function(){return e.substring(a,o)}),m.push("url"===i?d(r):f(r)),n===h.length-1&&m.push(function(){return e.substring(s)})}),function(e){var t=m.filter(Boolean).map(function(t){return t(e)});return t.some(function(e){return e instanceof Promise})?Promise.all(t).then(function(e){return e.join("")}):t.join("")}}catch(t){return F("Unable to parse gradient "+e,t),null}}function gn(e){try{var t=0,n=Ze(/(^|\s)([a-z]+\(.+?\)|#[0-9a-f]+|[a-z]+)(.*?(inset|outset)?($|,))/gi,e,2),r=n.map(function(r,i){var o=t,a=e.indexOf(r,t),s=a+r.length;t=s;var l=cn(r);return l?function(t){return""+e.substring(o,a)+Tt(l,t)+(i===n.length-1?e.substring(s):"")}:function(){return e.substring(o,s)}});return function(e){return r.map(function(t){return t(e)}).join("")}}catch(t){return F("Unable to parse shadow "+e,t),null}}function vn(e,t,n,r,i,o){return e.getModifierForVariable({varName:t,sourceValue:n,rule:r,ignoredImgSelectors:i,isCancelled:o})}function yn(e,t,n){return e.getModifierForVarDependant(t,n)}function bn(){sn.clear(),ct(),fn.clear(),Qt(),dn.clear()}var wn=1,xn=2,_n=4,En=8,Sn=function(){function e(){this.varTypes=new Map,this.rulesQueue=[],this.definedVars=new Set,this.varRefs=new Map,this.unknownColorVars=new Set,this.unknownBgVars=new Set,this.undefinedVars=new Set,this.initialVarTypes=new Map,this.changedTypeVars=new Set,this.typeChangeSubscriptions=new Map,this.unstableVarValues=new Map}return e.prototype.clear=function(){this.varTypes.clear(),this.rulesQueue.splice(0),this.definedVars.clear(),this.varRefs.clear(),this.unknownColorVars.clear(),this.unknownBgVars.clear(),this.undefinedVars.clear(),this.initialVarTypes.clear(),this.changedTypeVars.clear(),this.typeChangeSubscriptions.clear(),this.unstableVarValues.clear()},e.prototype.isVarType=function(e,t){return this.varTypes.has(e)&&(this.varTypes.get(e)&t)>0},e.prototype.addRulesForMatching=function(e){this.rulesQueue.push(e)},e.prototype.matchVariablesAndDependants=function(){var e=this;this.changedTypeVars.clear(),this.initialVarTypes=new Map(this.varTypes),this.collectRootVariables(),this.rulesQueue.forEach(function(t){return e.collectVariables(t)}),this.rulesQueue.forEach(function(t){return e.collectVarDependants(t)}),this.rulesQueue.splice(0),this.collectRootVarDependants(),this.varRefs.forEach(function(t,n){t.forEach(function(t){e.varTypes.has(n)&&e.resolveVariableType(t,e.varTypes.get(n))})}),this.unknownColorVars.forEach(function(t){e.unknownBgVars.has(t)?(e.unknownColorVars.delete(t),e.unknownBgVars.delete(t),e.resolveVariableType(t,wn)):e.isVarType(t,wn|xn|_n)?e.unknownColorVars.delete(t):e.undefinedVars.add(t)}),this.unknownBgVars.forEach(function(t){var n=null!=e.findVarRef(t,function(t){return e.unknownColorVars.has(t)||e.isVarType(t,xn|_n)});n?e.itarateVarRefs(t,function(t){e.resolveVariableType(t,wn)}):e.isVarType(t,wn|En)?e.unknownBgVars.delete(t):e.undefinedVars.add(t)}),this.changedTypeVars.forEach(function(t){e.typeChangeSubscriptions.has(t)&&e.typeChangeSubscriptions.get(t).forEach(function(e){e()})}),this.changedTypeVars.clear()},e.prototype.getModifierForVariable=function(e){var t=this;return function(n){var r=e.varName,i=e.sourceValue,o=e.rule,a=e.ignoredImgSelectors,s=e.isCancelled,l=function(){var e=[],l=function(o,a,s){if(t.isVarType(r,o)){var l,c=a(r);if(Fn(i))if(Bn(i)){var u=Un(i,t.unstableVarValues);u||(u=o===wn?"#ffffff":"#000000"),l=s(u,n)}else l=Pn(i,function(e){return a(e)},function(e){return s(e,n)});else l=s(i,n);e.push({property:c,value:l})}};if(l(wn,Ln,Vn),l(xn,Dn,Wn),l(_n,Nn,Hn),t.isVarType(r,En)){var c=In(r),u=i;Fn(i)&&(u=Pn(i,function(e){return Ln(e)},function(e){return Vn(e,n)}));var h=mn(u,o,a,s);u="function"===typeof h?h(n):h,e.push({property:c,value:u})}return e},c=new Set,u=function(e){var n=function(){var t=l();e(t)};c.add(n),t.subscribeForVarTypeChange(r,n)},h=function(){c.forEach(function(e){t.unsubscribeFromVariableTypeChanges(r,e)})};return{declarations:l(),onTypeChange:{addListener:u,removeListeners:h}}}},e.prototype.getModifierForVarDependant=function(e,t){var n=this;if(t.match(/^\s*(rgb|hsl)a?\(/)){var r=e.startsWith("background"),i="color"===e;return function(e){var o=Un(t,n.unstableVarValues);o||(o=r?"#ffffff":"#000000");var a=r?Vn:i?Wn:Hn;return a(o,e)}}if("background-color"===e)return function(e){return Pn(t,function(e){return Ln(e)},function(t){return Vn(t,e)})};if("color"===e)return function(e){return Pn(t,function(e){return Dn(e)},function(t){return Wn(t,e)})};if("background"===e||"background-image"===e||"box-shadow"===e)return function(e){var r=new Set,i=function(){return Pn(t,function(e){return n.isVarType(e,wn)?Ln(e):n.isVarType(e,En)?In(e):(r.add(e),e)},function(t){return Vn(t,e)})},o=i();return r.size>0?new Promise(function(e){var t=r.values().next().value,o=function(){n.unsubscribeFromVariableTypeChanges(t,o);var r=i();e(r)};n.subscribeForVarTypeChange(t,o)}):o};if(e.startsWith("border")||e.startsWith("outline")){if(t.endsWith(")")){var o=t.match(/((rgb|hsl)a?)\(/);if(o){var a=o.index;return function(e){var r=Un(t,n.unstableVarValues);if(!r)return t;var i=t.substring(0,a),o=t.substring(a,t.length),s=Un(o,n.unstableVarValues),l=Hn(s,e);return""+i+l}}}return function(e){return Pn(t,function(e){return Nn(e)},function(t){return Wn(t,e)})}}return null},e.prototype.subscribeForVarTypeChange=function(e,t){this.typeChangeSubscriptions.has(e)||this.typeChangeSubscriptions.set(e,new Set);var n=this.typeChangeSubscriptions.get(e);n.has(t)||n.add(t)},e.prototype.unsubscribeFromVariableTypeChanges=function(e,t){this.typeChangeSubscriptions.has(e)&&this.typeChangeSubscriptions.get(e).delete(t)},e.prototype.collectVariables=function(e){var t=this;Mn(e,function(e,n){t.inspectVariable(e,n)})},e.prototype.collectRootVariables=function(){var e=this;me(document.documentElement.style,function(t,n){$n(t)&&e.inspectVariable(t,n)})},e.prototype.inspectVariable=function(e,t){if(this.unstableVarValues.set(e,t),Fn(t)&&Bn(t)&&(this.unknownColorVars.add(e),this.definedVars.add(e)),!this.definedVars.has(e)){this.definedVars.add(e);var n=cn(t);n?this.unknownColorVars.add(e):(t.includes("url(")||t.includes("linear-gradient(")||t.includes("radial-gradient("))&&this.resolveVariableType(e,En)}},e.prototype.resolveVariableType=function(e,t){var n=this.initialVarTypes.get(e)||0,r=this.varTypes.get(e)||0,i=r|t;this.varTypes.set(e,i),(i!==n||this.undefinedVars.has(e))&&(this.changedTypeVars.add(e),this.undefinedVars.delete(e)),this.unknownColorVars.delete(e),this.unknownBgVars.delete(e)},e.prototype.collectVarDependants=function(e){var t=this;Rn(e,function(e,n){t.inspectVerDependant(e,n)})},e.prototype.collectRootVarDependants=function(){var e=this;me(document.documentElement.style,function(t,n){Fn(n)&&e.inspectVerDependant(t,n)})},e.prototype.inspectVerDependant=function(e,t){var n=this;$n(e)?this.iterateVarDeps(t,function(t){n.varRefs.has(e)||n.varRefs.set(e,new Set),n.varRefs.get(e).add(t)}):"background-color"===e||"box-shadow"===e?this.iterateVarDeps(t,function(e){return n.resolveVariableType(e,wn)}):"color"===e?this.iterateVarDeps(t,function(e){return n.resolveVariableType(e,xn)}):e.startsWith("border")||e.startsWith("outline")?this.iterateVarDeps(t,function(e){return n.resolveVariableType(e,_n)}):"background"!==e&&"background-image"!==e||this.iterateVarDeps(t,function(e){if(!n.isVarType(e,wn|En)){var t=null!=n.findVarRef(e,function(e){return n.unknownColorVars.has(e)||n.isVarType(e,xn|_n)});n.itarateVarRefs(e,function(e){t?n.resolveVariableType(e,wn):n.unknownBgVars.add(e)})}})},e.prototype.iterateVarDeps=function(e,t){var n=new Set;jn(e,function(e){return n.add(e)}),n.forEach(function(e){return t(e)})},e.prototype.findVarRef=function(e,t,n){var r,o;if(void 0===n&&(n=new Set),n.has(e))return null;n.add(e);var a=t(e);if(a)return e;var s=this.varRefs.get(e);if(!s||0===s.size)return null;try{for(var l=i(s),c=l.next();!c.done;c=l.next()){var u=c.value,h=this.findVarRef(u,t,n);if(h)return h}}catch(e){r={error:e}}finally{try{c&&!c.done&&(o=l.return)&&o.call(l)}finally{if(r)throw r.error}}return null},e.prototype.itarateVarRefs=function(e,t){this.findVarRef(e,function(e){return t(e),!1})},e.prototype.setOnRootVariableChange=function(e){this.onRootVariableDefined=e},e.prototype.putRootVars=function(e,t){var n,r,a=this,s=e.sheet;s.cssRules.length>0&&s.deleteRule(0);var l=new Map;me(document.documentElement.style,function(e,n){$n(e)&&(a.isVarType(e,wn)&&l.set(Ln(e),Vn(n,t)),a.isVarType(e,xn)&&l.set(Dn(e),Wn(n,t)),a.isVarType(e,_n)&&l.set(Nn(e),Hn(n,t)),a.subscribeForVarTypeChange(e,a.onRootVariableDefined))});var c=[];c.push(":root {");try{for(var u=i(l),h=u.next();!h.done;h=u.next()){var f=o(h.value,2),d=f[0],p=f[1];c.push(" "+d+": "+p+";")}}catch(e){n={error:e}}finally{try{h&&!h.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}c.push("}");var m=c.join("\n");s.insertRule(m)},e}(),Cn=new Sn;function kn(e,t){void 0===t&&(t=0);var n=e.indexOf("var(",t);if(n>=0){var r=et(e,n+3);return r?{start:n,end:r.end}:null}}function On(e){var t,n=[],r=0;while(t=kn(e,r)){var i=t.start,o=t.end;n.push({start:i,end:o,value:e.substring(i,o)}),r=t.end+1}return n}function Tn(e,t){var n=On(e),r=n.length;if(0===r)return e;var i=e.length,o=n.map(function(e){return t(e.value)}),a=[];a.push(e.substring(0,n[0].start));for(var s=0;s=0?(t=e.substring(4,r).trim(),n=e.substring(r+1,e.length-1).trim()):(t=e.substring(4,e.length-1).trim(),n=""),{name:t,fallback:n}}function Pn(e,t,n){var r=function(e){var r,i=An(e),o=i.name,a=i.fallback,s=t(o);return a?(r=Fn(a)?Pn(a,t,n):n?n(a):a,"var("+s+", "+r+")"):"var("+s+")"};return Tn(e,r)}function Mn(e,t){fe(e,function(e){e.style&&me(e.style,function(e,n){e.startsWith("--")&&t(e,n)})})}function Rn(e,t){fe(e,function(e){e.style&&me(e.style,function(e,n){Fn(n)&&t(e,n)})})}function jn(e,t){Pn(e,function(e){return t(e),e})}function Ln(e){return"--darkreader-bg"+e}function Dn(e){return"--darkreader-text"+e}function Nn(e){return"--darkreader-border"+e}function In(e){return"--darkreader-bgimg"+e}function $n(e){return e.startsWith("--")}function Fn(e){return e.includes("var(")}function Bn(e){return e.match(/^\s*(rgb|hsl)a?\(/)}function Vn(e,t){var n=cn(e);return n?wt(n,t):e}function Wn(e,t){var n=cn(e);return n?Ct(n,t):e}function Hn(e,t){var n=cn(e);return n?Ot(n,t):e}function Un(e,t,n){void 0===n&&(n=new Set);var r=!1,i=function(e){var i=An(e),o=i.name,a=i.fallback;if(n.has(o))return r=!0,null;n.add(o);var s=t.get(o)||a,l=null;return s&&(l=Fn(s)?Un(s,t,n):s),l||(r=!0,null)},o=Tn(e,i);return r?null:o}var zn={"background-color":{customProp:"--darkreader-inline-bgcolor",cssProp:"background-color",dataAttr:"data-darkreader-inline-bgcolor"},"background-image":{customProp:"--darkreader-inline-bgimage",cssProp:"background-image",dataAttr:"data-darkreader-inline-bgimage"},"border-color":{customProp:"--darkreader-inline-border",cssProp:"border-color",dataAttr:"data-darkreader-inline-border"},"border-bottom-color":{customProp:"--darkreader-inline-border-bottom",cssProp:"border-bottom-color",dataAttr:"data-darkreader-inline-border-bottom"},"border-left-color":{customProp:"--darkreader-inline-border-left",cssProp:"border-left-color",dataAttr:"data-darkreader-inline-border-left"},"border-right-color":{customProp:"--darkreader-inline-border-right",cssProp:"border-right-color",dataAttr:"data-darkreader-inline-border-right"},"border-top-color":{customProp:"--darkreader-inline-border-top",cssProp:"border-top-color",dataAttr:"data-darkreader-inline-border-top"},"box-shadow":{customProp:"--darkreader-inline-boxshadow",cssProp:"box-shadow",dataAttr:"data-darkreader-inline-boxshadow"},color:{customProp:"--darkreader-inline-color",cssProp:"color",dataAttr:"data-darkreader-inline-color"},fill:{customProp:"--darkreader-inline-fill",cssProp:"fill",dataAttr:"data-darkreader-inline-fill"},stroke:{customProp:"--darkreader-inline-stroke",cssProp:"stroke",dataAttr:"data-darkreader-inline-stroke"},"outline-color":{customProp:"--darkreader-inline-outline",cssProp:"outline-color",dataAttr:"data-darkreader-inline-outline"},"stop-color":{customProp:"--darkreader-inline-stopcolor",cssProp:"stop-color",dataAttr:"data-darkreader-inline-stopcolor"}},qn=Object.values(zn),Kn={};qn.forEach(function(e){var t=e.cssProp,n=e.customProp;return Kn[n]=t});var Gn=["style","fill","stop-color","stroke","bgcolor","color"],Yn=Gn.map(function(e){return"["+e+"]"}).join(", ");function Xn(){return qn.map(function(e){var t=e.dataAttr,n=e.customProp,r=e.cssProp;return["["+t+"] {"," "+r+": var("+n+") !important;","}"].join("\n")}).join("\n")}function Qn(e){var t=[];return e instanceof Element&&e.matches(Yn)&&t.push(e),(e instanceof Element||g&&e instanceof ShadowRoot||e instanceof Document)&&N(t,e.querySelectorAll(Yn)),t}var Zn=new Map,Jn=new Map;function er(e,t){tr(document,e,t),z(document.documentElement,function(n){tr(n.shadowRoot,e,t)})}function tr(e,t,n){Zn.has(e)&&(Zn.get(e).disconnect(),Jn.get(e).disconnect());var r=new WeakSet;function i(e){Qn(e).forEach(function(e){r.has(e)||(r.add(e),t(e))}),z(e,function(i){r.has(e)||(r.add(e),n(i.shadowRoot),tr(i.shadowRoot,t,n))})}var s=se(e,{onMinorMutations:function(e){var t=e.additions;t.forEach(function(e){return i(e)})},onHugeMutations:function(){i(e)}});Zn.set(e,s);var l=0,c=null,u=W({seconds:10}),h=W({seconds:2}),f=50,d=[],p=null,m=B(function(e){e.forEach(function(e){Gn.includes(e.attributeName)&&t(e.target)})}),g=new MutationObserver(function(e){if(p)d.push.apply(d,a([],o(e)));else{l++;var t=Date.now();if(null==c)c=t;else if(l>=f){if(t-c0&&ar(e,n))o.forEach(function(t){e.removeAttribute(zn[t].dataAttr)});else{if(e.hasAttribute("bgcolor")){var a=e.getAttribute("bgcolor");(a.match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),u("background-color","background-color",a)}if(e.hasAttribute("color")&&"mask-icon"!==e.rel){a=e.getAttribute("color");(a.match(/^[0-9a-f]{3}$/i)||a.match(/^[0-9a-f]{6}$/i))&&(a="#"+a),u("color","color",a)}if(e instanceof SVGElement){if(e.hasAttribute("fill")){var s=32,l=e.getAttribute("fill");if("none"!==l)if(e instanceof SVGTextElement)u("fill","color",l);else{var c=function(){var t=e.getBoundingClientRect(),n=t.width,r=t.height,i=n>s||r>s;u("fill",i?"background-color":"color",l)};X()?c():Z(c)}}e.hasAttribute("stop-color")&&u("stop-color","background-color",e.getAttribute("stop-color"))}if(e.hasAttribute("stroke")){a=e.getAttribute("stroke");u("stroke",e instanceof SVGLineElement||e instanceof SVGTextElement?"border-color":"color",a)}e.style&&me(e.style,function(t,n){if("background-image"!==t||!n.includes("url"))if(zn.hasOwnProperty(t))u(t,t,n);else{var r=Kn[t];!r||e.style.getPropertyValue(r)||e.hasAttribute(r)||e.style.setProperty(t,"")}}),e.style&&e instanceof SVGTextElement&&e.style.fill&&u("fill","color",e.style.getPropertyValue("fill")),D(o,function(t){e.removeAttribute(zn[t].dataAttr)}),rr.set(e,or(e,t))}}function u(n,i,a){var s=zn[n],l=s.customProp,c=s.dataAttr,u=Jt(i,a,{},Cn,r,null);if(u){var h=u.value;"function"===typeof h&&(h=h(t)),e.style.setProperty(l,h),e.hasAttribute(c)||e.setAttribute(c,""),o.delete(n)}}}var lr="theme-color",cr='meta[name="'+lr+'"]',ur=null,hr=null;function fr(e,t){ur=ur||e.content;try{var n=Le(ur);e.content=wt(n,t)}catch(e){F(e)}}function dr(e){var t=document.querySelector(cr);t?fr(t,e):(hr&&hr.disconnect(),hr=new MutationObserver(function(t){e:for(var n=0;n0){var s=e.parentRule;a={selector:e.selectorText,declarations:o,parentRule:s},w.push(a)}n.set(r,a)}else w.push(n.get(r))},function(){s=!0}),v.forEach(function(e){t.delete(e),n.delete(e)}),i=y,d||g||b){e++;var x=new Map,_=new Map,E=0,S=0,C={rule:null,rules:[],isGroup:!0},k=new WeakMap;r.forEach(function(e){return e()}),r.clear(),w.filter(function(e){return e}).forEach(function(t){var n=t.selector,i=t.declarations,s=t.parentRule,l=A(s),c={selector:n,declarations:[],isGroup:!1},u=c.declarations;function f(t,n,r,i){var o=++E,a={property:t,value:null,important:r,asyncKey:o,sourceValue:i};u.push(a);var s=e;n.then(function(t){t&&!m()&&s===e&&(a.value=t,vr.add(function(){m()||s!==e||M(o)}))})}function d(t,n,i,s){var l=n,c=l.declarations,h=l.onTypeChange,d=++S,p=e,g=u.length,v=[];if(0===c.length){var y={property:t,value:s,important:i,sourceValue:s,varKey:d};u.push(y),v=[y]}c.forEach(function(e){if(e.value instanceof Promise)f(e.property,e.value,i,s);else{var t={property:e.property,value:e.value,important:i,sourceValue:s,varKey:d};u.push(t),v.push(t)}}),h.addListener(function(t){if(!m()&&p===e){var n=t.map(function(e){return{property:e.property,value:e.value,important:i,sourceValue:s,varKey:d}}),r=u.indexOf(v[0],g);u.splice.apply(u,a([r,v.length],o(n))),v=n,R(d)}}),r.add(function(){return h.removeListeners()})}l.rules.push(c),i.forEach(function(e){var t=e.property,n=e.value,r=e.important,i=e.sourceValue;if("function"===typeof n){var o=n(h);o instanceof Promise?f(t,o,r,i):t.startsWith("--")?d(t,o,r,i):u.push({property:t,value:o,important:r,sourceValue:i})}else u.push({property:t,value:n,important:r,sourceValue:i})})});var O=p();P()}function T(e,t,n){var r=n.selector,i=n.declarations,o=function(e){var t=e.property,n=e.value,r=e.important,i=e.sourceValue;return t+": "+(null==n?i:n)+(r?" !important":"")+";"},a=r+" { "+i.map(o).join(" ")+" }";e.insertRule(a,t)}function A(e){if(null==e)return C;if(k.has(e))return k.get(e);var t={rule:e,rules:[],isGroup:!0};k.set(e,t);var n=A(e.parentRule);return n.rules.push(t),t}function P(){function e(e,t){var n=e.rule;if(n instanceof CSSMediaRule){var r=n.media,i=t.cssRules.length;return t.insertRule("@media "+r.mediaText+" {}",i),t.cssRules[i]}return t}function t(n,r,i){n.rules.forEach(function(n){if(n.isGroup){var o=e(n,r);t(n,o,i)}else i(n,r)})}t(C,O,function(e,t){var n=t.cssRules.length;e.declarations.forEach(function(r){var i=r.asyncKey,o=r.varKey;null!=i&&x.set(i,{rule:e,target:t,index:n}),null!=o&&_.set(o,{rule:e,target:t,index:n})}),T(t,n,e)})}function M(e){var t=x.get(e),n=t.rule,r=t.target,i=t.index;r.deleteRule(i),T(r,i,n),x.delete(e)}function R(e){var t=_.get(e),n=t.rule,r=t.target,i=t.index;r.deleteRule(i),T(r,i,n)}}return{modifySheet:u,shouldRebuildStyle:c}}var br='style, link[rel*="stylesheet" i]:not([disabled])';function wr(e){return(e instanceof HTMLStyleElement||e instanceof SVGStyleElement||e instanceof HTMLLinkElement&&e.rel&&e.rel.toLowerCase().includes("stylesheet")&&!e.disabled)&&!e.classList.contains("darkreader")&&"print"!==e.media.toLowerCase()&&!e.classList.contains("stylus")}function xr(e,t,n){return void 0===t&&(t=[]),void 0===n&&(n=!0),wr(e)?t.push(e):(e instanceof Element||g&&e instanceof ShadowRoot||e===document)&&(D(e.querySelectorAll(br),function(e){return xr(e,t,!1)}),n&&z(e,function(e){return xr(e.shadowRoot,t,!1)})),t}var _r=new WeakSet,Er=new WeakSet,Sr=!1;document.addEventListener("__darkreader__inlineScriptsAllowed",function(){Sr=!0});var Cr=0,kr=new Map;function Or(){kr.clear()}function Tr(e,t){var i=t.update,a=t.loadingStart,s=t.loadingEnd,l=[],c=e;while((c=c.nextElementSibling)&&c.matches(".darkreader"))l.push(c);var f=l.find(function(e){return e.matches(".darkreader--cors")&&!Er.has(e)})||null,p=l.find(function(e){return e.matches(".darkreader--sync")&&!_r.has(e)})||null,m=null,g=null,v=!1,y=!0,b=yr(),w=new MutationObserver(function(){i()}),x={attributes:!0,childList:!0,subtree:!0,characterData:!0};function _(){return e instanceof HTMLStyleElement&&e.textContent.trim().match(ve)}function E(e){var t=!1;if(e){var n=void 0;e:for(var r=0,i=e.length;r=0;t--)e.deleteRule(t);return g?g.run():g=U(p,"prev-sibling",function(){R=!0,o()}),p.sheet}function o(){var o=R;R=!1,b.modifySheet({prepareSheet:r,sourceCSSRules:n,theme:e,ignoreImageAnalysis:t,force:o,isAsyncCancelled:function(){return v}}),y=0===p.sheet.cssRules.length,b.shouldRebuildStyle()&&Z(function(){return i()})}n&&(v=!1,o())}function L(){try{return null==e.sheet?[null,null]:[e.sheet.cssRules,null]}catch(e){return[null,e]}}function D(e){return e&&e.message&&e.message.includes("loading")}function N(){var e=o(L(),2),t=e[0],n=e[1];return n?(F(n),null):t}function I(){X(),h||Sr&&e.sheet||q()}var B=null,V=null;function W(){var e=N();return e?e.length:null}function z(){return W()!==B}function q(){B=W(),K();var t=function(){z()&&(B=W(),i()),Sr&&e.sheet?K():V=requestAnimationFrame(t)};t()}function K(){cancelAnimationFrame(V)}var G=!1;function Y(){function e(){G=!1,v||i()}Sr=!0,K(),G||(G=!0,"function"===typeof queueMicrotask?queueMicrotask(e):requestAnimationFrame(e))}function X(){e.addEventListener("__darkreader__updateSheet",Y)}function Q(){e.removeEventListener("__darkreader__updateSheet",Y)}function J(){Q(),K()}function ee(){w.disconnect(),v=!0,m&&m.stop(),g&&g.stop(),J()}function te(){if(ee(),H(f),H(p),s(),kr.has(A)){var e=kr.get(A);kr.delete(A),e&&e()}}function ne(){w.observe(e,x),e instanceof HTMLStyleElement&&I()}var re=10,ie=0;function oe(){p&&(ie++,ie>re?F("Style sheet was moved multiple times",e):(F("Restore style",p,e),C(),m&&m.skip(),g&&g.skip(),y||(R=!0,i())))}return{details:M,render:j,pause:ee,destroy:te,watch:ne,restore:oe}}function Ar(e,t){return n(this,void 0,void 0,function(){return r(this,function(n){return[2,new Promise(function(n,r){var i=function(){e.removeEventListener("load",o),e.removeEventListener("error",a),kr.delete(t)},o=function(){i(),$("Linkelement "+t+" has been loaded"),n()},a=function(){i(),r("Linkelement "+t+" couldn't be loaded. "+e.href)};kr.set(t,function(){i(),r()}),e.addEventListener("load",o),e.addEventListener("error",a),e.href||a()})]})})}function Pr(e){return ye(e.substring(7).trim().replace(/;$/,""))}function Mr(e){return n(this,void 0,void 0,function(){return r(this,function(t){switch(t.label){case 0:return e.startsWith("data:")?[4,fetch(e)]:[3,3];case 1:return[4,t.sent().text()];case 2:return[2,t.sent()];case 3:return[4,It({url:e,responseType:"text",mimeType:"text/css",origin:window.location.origin})];case 4:return[2,t.sent()]}})})}function Rr(e,t,o){return void 0===o&&(o=new Map),n(this,void 0,void 0,function(){var n,a,s,l,c,u,h,f,d,p,m;return r(this,function(r){switch(r.label){case 0:e=_e(e),e=Se(e),e=we(e,t),n=Ze(ve,e),r.label=1;case 1:r.trys.push([1,10,11,12]),a=i(n),s=a.next(),r.label=2;case 2:return s.done?[3,9]:(l=s.value,c=Pr(l),u=he(t,c),h=void 0,o.has(u)?(h=o.get(u),[3,7]):[3,3]);case 3:return r.trys.push([3,6,,7]),[4,Mr(u)];case 4:return h=r.sent(),o.set(u,h),[4,Rr(h,be(u),o)];case 5:return h=r.sent(),[3,7];case 6:return f=r.sent(),F(f),h="",[3,7];case 7:e=e.split(l).join(h),r.label=8;case 8:return s=a.next(),[3,2];case 9:return[3,12];case 10:return d=r.sent(),p={error:d},[3,12];case 11:try{s&&!s.done&&(m=a.return)&&m.call(a)}finally{if(p)throw p.error}return[7];case 12:return e=e.trim(),[2,e]}})})}function jr(e,t){if(!t)return null;var n=document.createElement("style");return n.classList.add("darkreader"),n.classList.add("darkreader--cors"),n.media="screen",n.textContent=t,e.parentNode.insertBefore(n,e.nextSibling),n.sheet.disabled=!0,Er.add(n),n}var Lr,Dr,Nr=[],Ir=new Map;function $r(e){y&&D(e.querySelectorAll(":not(:defined)"),function(e){var t=e.tagName.toLowerCase();if(!t.includes("-")){var n=e.getAttribute("is");if(!n)return;t=n}Ir.has(t)||(Ir.set(t,new Set),Wr(t).then(function(){if(Dr){var e=Ir.get(t);Ir.delete(t),Dr(Array.from(e))}})),Ir.get(t).add(e)})}var Fr=!1;document.addEventListener("__darkreader__inlineScriptsAllowed",function(){Fr=!0});var Br=new Map;function Vr(e){if(Fr=!0,Br.has(e.detail.tag)){var t=Br.get(e.detail.tag);t()}}function Wr(e){return n(this,void 0,void 0,function(){return r(this,function(t){return[2,new Promise(function(t){if(window.customElements&&"function"===typeof customElements.whenDefined)customElements.whenDefined(e).then(t);else if(Fr)Br.set(e,t),document.dispatchEvent(new CustomEvent("__darkreader__addUndefinedResolver",{detail:{tag:e}}));else{var n=function(){var r=Ir.get(e);r&&r.size>0&&(r.values().next().value.matches(":defined")?t():requestAnimationFrame(n))};requestAnimationFrame(n)}})]})})}function Hr(e){Dr=e}function Ur(){Dr=null,Ir.clear(),document.removeEventListener("__darkreader__isDefined",Vr)}function zr(e,t,n){Kr();var r=new Set(e),i=new WeakMap,o=new WeakMap;function a(e){i.set(e,e.previousElementSibling),o.set(e,e.nextElementSibling)}function s(e){i.delete(e),o.delete(e)}function l(e){return e.previousElementSibling!==i.get(e)||e.nextElementSibling!==o.get(e)}function c(e){var n=e.createdStyles,i=e.removedStyles,o=e.movedStyles;n.forEach(function(e){return a(e)}),o.forEach(function(e){return a(e)}),i.forEach(function(e){return s(e)}),n.forEach(function(e){return r.add(e)}),i.forEach(function(e){return r.delete(e)}),n.size+i.size+o.size>0&&t({created:Array.from(n),removed:Array.from(i),moved:Array.from(o),updated:[]})}function u(e){var t=e.additions,n=e.moves,r=e.deletions,i=new Set,o=new Set,a=new Set;t.forEach(function(e){return xr(e).forEach(function(e){return i.add(e)})}),r.forEach(function(e){return xr(e).forEach(function(e){return o.add(e)})}),n.forEach(function(e){return xr(e).forEach(function(e){return a.add(e)})}),c({createdStyles:i,removedStyles:o,movedStyles:a}),t.forEach(function(e){z(e,p),$r(e)})}function h(e){var t=new Set(xr(e)),n=new Set,i=new Set,o=new Set;t.forEach(function(e){r.has(e)||n.add(e)}),r.forEach(function(e){t.has(e)||i.add(e)}),t.forEach(function(e){n.has(e)||i.has(e)||!l(e)||o.add(e)}),c({createdStyles:n,removedStyles:i,movedStyles:o}),z(e,p),$r(e)}function f(e){var n=new Set,r=new Set;e.forEach(function(e){var t=e.target;t.isConnected&&(wr(t)?n.add(t):t instanceof HTMLLinkElement&&t.disabled&&r.add(t))}),n.size+r.size>0&&t({updated:Array.from(n),created:[],removed:Array.from(r),moved:[]})}function d(e){var t=se(e,{onMinorMutations:u,onHugeMutations:h}),n=new MutationObserver(f);n.observe(e,{attributes:!0,attributeFilter:["rel","disabled","media"],subtree:!0}),Nr.push(t,n),Lr.add(e)}function p(e){var t=e.shadowRoot;null==t||Lr.has(t)||(d(t),n(t))}e.forEach(a),d(document),z(document.documentElement,p),Hr(function(e){var n=[];e.forEach(function(e){return N(n,xr(e.shadowRoot))}),t({created:n,updated:[],removed:[],moved:[]}),e.forEach(function(e){var t=e.shadowRoot;null!=t&&(p(e),z(t,p),$r(t))})}),document.addEventListener("__darkreader__isDefined",Vr),$r(document)}function qr(){Nr.forEach(function(e){return e.disconnect()}),Nr.splice(0,Nr.length),Lr=new WeakSet}function Kr(){qr(),Ur()}function Gr(e){return(e<16?"0":"")+e.toString(16)}function Yr(){if("randomUUID"in crypto){var e=crypto.randomUUID();return e.substring(0,8)+e.substring(9,13)+e.substring(14,18)+e.substring(19,23)+e.substring(24)}return Array.from(crypto.getRandomValues(new Uint8Array(16))).map(function(e){return Gr(e)}).join("")}var Xr=new WeakMap,Qr=new WeakSet;function Zr(e){var t=!1;function n(t,n){var r=a([],o(e.adoptedStyleSheets)),i=r.indexOf(t),s=r.indexOf(n);i!==s-1&&(s>=0&&r.splice(s,1),r.splice(i+1,0,n),e.adoptedStyleSheets=r)}function r(){t=!0;var n=a([],o(e.adoptedStyleSheets));e.adoptedStyleSheets.forEach(function(e){if(Qr.has(e)){var t=n.indexOf(e);t>=0&&n.splice(t,1),Xr.delete(e),Qr.delete(e)}}),e.adoptedStyleSheets=n}function i(r,i){e.adoptedStyleSheets.forEach(function(e){if(!Qr.has(e)){var o=e.rules,a=new CSSStyleSheet,s=yr();s.modifySheet({prepareSheet:l,sourceCSSRules:o,theme:r,ignoreImageAnalysis:i,force:!1,isAsyncCancelled:function(){return t}})}function l(){for(var t=a.cssRules.length-1;t>=0;t--)a.deleteRule(t);return n(e,a),Xr.set(e,a),Qr.add(a),a}})}return{render:i,destroy:r}}function Jr(){document.dispatchEvent(new CustomEvent("__darkreader__inlineScriptsAllowed"));var e=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"addRule"),t=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"insertRule"),n=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"deleteRule"),r=Object.getOwnPropertyDescriptor(CSSStyleSheet.prototype,"removeRule"),i=location.hostname.endsWith("pushbullet.com")||location.hostname.endsWith("ilsole24ore.com")||location.hostname.endsWith("allegro.pl"),s=i?Object.getOwnPropertyDescriptor(Document.prototype,"styleSheets"):null,l=location.hostname.endsWith("baidu.com"),c=l?Object.getOwnPropertyDescriptor(Element.prototype,"getElementsByTagName"):null,u=function(){Object.defineProperty(CSSStyleSheet.prototype,"addRule",e),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",t),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",n),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",r),document.removeEventListener("__darkreader__cleanUp",u),document.removeEventListener("__darkreader__addUndefinedResolver",h),i&&Object.defineProperty(Document.prototype,"styleSheets",s),l&&Object.defineProperty(Element.prototype,"getElementsByTagName",c)},h=function(e){customElements.whenDefined(e.detail.tag).then(function(){document.dispatchEvent(new CustomEvent("__darkreader__isDefined",{detail:{tag:e.detail.tag}}))})};document.addEventListener("__darkreader__cleanUp",u),document.addEventListener("__darkreader__addUndefinedResolver",h);var f=new Event("__darkreader__updateSheet");function d(t,n,r){return e.value.call(this,t,n,r),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f),-1}function p(e,n){var r=t.value.call(this,e,n);return this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f),r}function m(e){n.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f)}function g(e){r.value.call(this,e),this.ownerNode&&!this.ownerNode.classList.contains("darkreader")&&this.ownerNode.dispatchEvent(f)}function v(){var e=s.get.call(this),t=a([],o(e)).filter(function(e){return!e.ownerNode.classList.contains("darkreader")});return Object.setPrototypeOf(t,StyleSheetList.prototype)}function y(e){var t=this,n=function(){var n=c.value.call(t,e);return"style"===e&&(n=Object.setPrototypeOf(a([],o(n)).filter(function(e){return!e.classList.contains("darkreader")}),NodeList.prototype)),n},r=n(),i={get:function(e,t){return n()[t]}};return r=new Proxy(r,i),r}Object.defineProperty(CSSStyleSheet.prototype,"addRule",Object.assign({},e,{value:d})),Object.defineProperty(CSSStyleSheet.prototype,"insertRule",Object.assign({},t,{value:p})),Object.defineProperty(CSSStyleSheet.prototype,"deleteRule",Object.assign({},n,{value:m})),Object.defineProperty(CSSStyleSheet.prototype,"removeRule",Object.assign({},r,{value:g})),i&&Object.defineProperty(Document.prototype,"styleSheets",Object.assign({},s,{get:v})),l&&Object.defineProperty(Element.prototype,"getElementsByTagName",Object.assign({},c,{value:y}))}var ei=Yr(),ti=new Map,ni=[],ri=null,ii=null,oi=null,ai=null,si=null;function li(e,t){void 0===t&&(t=document.head||document);var n=t.querySelector("."+e);return n||(n=document.createElement("style"),n.classList.add("darkreader"),n.classList.add(e),n.media="screen",n.textContent=""),n}function ci(e,t){void 0===t&&(t=document.head||document);var n=t.querySelector("."+e);return n||(n=document.createElement("script"),n.classList.add("darkreader"),n.classList.add(e)),n}var ui=new Map;function hi(e,t){ui.has(t)&&ui.get(t).stop(),ui.set(t,U(e,"parent"))}function fi(){D(ui.values(),function(e){return e.stop()}),ui.clear()}function di(){var e=li("darkreader--fallback",document);e.textContent=on(ri,{strict:!0}),document.head.insertBefore(e,document.head.firstChild),hi(e,"fallback");var n=li("darkreader--user-agent");n.textContent=en(ri,oi,ri.styleSystemControls),document.head.insertBefore(n,e.nextSibling),hi(n,"user-agent");var r=li("darkreader--text");ri.useFont||ri.textStroke>0?r.textContent=Pt(ri):r.textContent="",document.head.insertBefore(r,e.nextSibling),hi(r,"text");var i=li("darkreader--invert");ii&&Array.isArray(ii.invert)&&ii.invert.length>0?i.textContent=[ii.invert.join(", ")+" {"," filter: "+Mt(t(t({},ri),{contrast:0===ri.mode?ri.contrast:Xe(ri.contrast-10,0,100)}))+" !important;","}"].join("\n"):i.textContent="",document.head.insertBefore(i,r.nextSibling),hi(i,"invert");var o=li("darkreader--inline");o.textContent=Xn(),document.head.insertBefore(o,i.nextSibling),hi(o,"inline");var a=li("darkreader--override");a.textContent=ii&&ii.css?gi(ii.css):"",document.head.appendChild(a),hi(a,"override");var s=li("darkreader--variables"),l=tn(ri),c=ri.darkSchemeBackgroundColor,u=ri.darkSchemeTextColor,h=ri.lightSchemeBackgroundColor,f=ri.lightSchemeTextColor,d=ri.mode,p=0===d?h:c,m=0===d?f:u;p=wt(Le(p),ri),m=Ct(Le(m),ri),s.textContent=[":root {"," --darkreader-neutral-background: "+p+";"," --darkreader-neutral-text: "+m+";"," --darkreader-selection-background: "+l.backgroundColorSelection+";"," --darkreader-selection-text: "+l.foregroundColorSelection+";","}"].join("\n"),document.head.insertBefore(s,o.nextSibling),hi(s,"variables");var g=li("darkreader--root-vars");document.head.insertBefore(g,s.nextSibling);var v=ci("darkreader--proxy"),y=new Blob(["("+Jr+")()"],{type:"text/javascript"}),b=URL.createObjectURL(y);v.src=b,v.textContent="",document.head.insertBefore(v,g.nextSibling),URL.revokeObjectURL(b),v.remove()}var pi=new Set;function mi(e){var n=li("darkreader--inline",e);n.textContent=Xn(),e.insertBefore(n,e.firstChild);var r=li("darkreader--override",e);r.textContent=ii&&ii.css?gi(ii.css):"",e.insertBefore(r,n.nextSibling);var i=li("darkreader--invert",e);ii&&Array.isArray(ii.invert)&&ii.invert.length>0?i.textContent=[ii.invert.join(", ")+" {"," filter: "+Mt(t(t({},ri),{contrast:0===ri.mode?ri.contrast:Xe(ri.contrast-10,0,100)}))+" !important;","}"].join("\n"):i.textContent="",e.insertBefore(i,r.nextSibling),pi.add(e)}function gi(e){return e.replace(/\${(.+?)}/g,function(e,t){try{var n=ln(t);return mt(n,ri)}catch(e){return F(e),t}})}function vi(){var e=document.querySelector(".darkreader--fallback");e&&(e.textContent="")}function yi(){Si();var e=xr(document),t=e.filter(function(e){return!ti.has(e)}).map(function(e){return xi(e)});t.map(function(e){return e.details()}).filter(function(e){return e&&e.rules.length>0}).forEach(function(e){Cn.addRulesForMatching(e.rules)}),Cn.matchVariablesAndDependants(),Cn.setOnRootVariableChange(function(){Cn.putRootVars(document.head.querySelector(".darkreader--root-vars"),ri)}),Cn.putRootVars(document.head.querySelector(".darkreader--root-vars"),ri),ti.forEach(function(e){return e.render(ri,ai)}),0===wi.size&&vi(),t.forEach(function(e){return e.watch()});var n=I(document.querySelectorAll(Yn));z(document.documentElement,function(e){mi(e.shadowRoot);var t=e.shadowRoot.querySelectorAll(Yn);t.length>0&&N(n,t)}),n.forEach(function(e){return sr(e,ri,si,ai)}),Mi(document)}var bi=0,wi=new Set;function xi(e){var t=++bi;function n(){if(!q()||!Oi){wi.add(t),$("Current amount of styles loading: "+wi.size);var e=document.querySelector(".darkreader--fallback");e.textContent||(e.textContent=on(ri,{strict:!1}))}}function r(){wi.delete(t),$("Removed loadingStyle "+t+", now awaiting: "+wi.size),$("To-do to be loaded",wi),0===wi.size&&q()&&vi()}function i(){var e=o.details();e&&(Cn.addRulesForMatching(e.rules),Cn.matchVariablesAndDependants(),o.render(ri,ai))}$("New manager for element, with loadingStyleID "+t,e);var o=Tr(e,{update:i,loadingStart:n,loadingEnd:r});return ti.set(e,o),o}function _i(e){var t=ti.get(e);t&&(t.destroy(),ti.delete(e))}var Ei=B(function(e){ti.forEach(function(e){return e.render(ri,ai)}),ni.forEach(function(e){return e.render(ri,ai)}),e&&e()}),Si=function(){Ei.cancel()};function Ci(){0!==wi.size?F("DOM is ready, but still have styles being loaded.",wi):vi()}var ki=null,Oi=!document.hidden;function Ti(e){var t=Boolean(ki);ki=function(){document.hidden||(Ai(),e(),Oi=!0)},t||document.addEventListener("visibilitychange",ki)}function Ai(){document.removeEventListener("visibilitychange",ki),ki=null}function Pi(){function e(){yi(),Ri()}di(),document.hidden?Ti(e):e(),dr(ri)}function Mi(e){if(Array.isArray(e.adoptedStyleSheets)&&e.adoptedStyleSheets.length>0){var t=Zr(e);ni.push(t),t.render(ri,ai)}}function Ri(){var e=Array.from(ti.keys());zr(e,function(e){var t=e.created,n=e.updated,r=e.removed,i=e.moved,o=r,a=t.concat(n).concat(i).filter(function(e){return!ti.has(e)}),s=i.filter(function(e){return ti.has(e)});$("Styles to be removed:",o),o.forEach(function(e){return _i(e)});var l=a.map(function(e){return xi(e)});l.map(function(e){return e.details()}).filter(function(e){return e&&e.rules.length>0}).forEach(function(e){Cn.addRulesForMatching(e.rules)}),Cn.matchVariablesAndDependants(),l.forEach(function(e){return e.render(ri,ai)}),l.forEach(function(e){return e.watch()}),s.forEach(function(e){return ti.get(e).restore()})},function(e){mi(e),Mi(e)}),er(function(e){if(sr(e,ri,si,ai),e===document.documentElement){var t=e.getAttribute("style");t.includes("--")&&(Cn.matchVariablesAndDependants(),Cn.putRootVars(document.head.querySelector(".darkreader--root-vars"),ri))}},function(e){mi(e);var t=e.querySelectorAll(Yn);t.length>0&&D(t,function(e){return sr(e,ri,si,ai)})}),G(Ci)}function ji(){ti.forEach(function(e){return e.pause()}),fi(),Kr(),nr(),Y(Ci),J()}function Li(){var e=document.createElement("meta");e.name="darkreader",e.content=ei,document.head.appendChild(e)}function Di(){var e=document.querySelector('meta[name="darkreader"]');return e?e.content!==ei:(Li(),!1)}function Ni(e,t,n){if(ri=e,ii=t,ii?(ai=Array.isArray(ii.ignoreImageAnalysis)?ii.ignoreImageAnalysis:[],si=Array.isArray(ii.ignoreInlineStyle)?ii.ignoreInlineStyle:[]):(ai=[],si=[]),oi=n,document.head){if(Di())return;document.documentElement.setAttribute("data-darkreader-mode","dynamic"),document.documentElement.setAttribute("data-darkreader-scheme",ri.mode?"dark":"dimmed"),Pi()}else{if(!f){var r=li("darkreader--fallback");document.documentElement.appendChild(r),r.textContent=on(ri,{strict:!0})}var i=new MutationObserver(function(){if(document.head){if(i.disconnect(),Di())return void $i();Pi()}});i.observe(document,{childList:!0,subtree:!0})}}function Ii(){document.dispatchEvent(new CustomEvent("__darkreader__cleanUp")),H(document.head.querySelector(".darkreader--proxy"))}function $i(){document.documentElement.removeAttribute("data-darkreader-mode"),document.documentElement.removeAttribute("data-darkreader-scheme"),Fi(),H(document.querySelector(".darkreader--fallback")),document.head&&(pr(),H(document.head.querySelector(".darkreader--user-agent")),H(document.head.querySelector(".darkreader--text")),H(document.head.querySelector(".darkreader--invert")),H(document.head.querySelector(".darkreader--inline")),H(document.head.querySelector(".darkreader--override")),H(document.head.querySelector(".darkreader--variables")),H(document.head.querySelector(".darkreader--root-vars")),H(document.head.querySelector('meta[name="darkreader"]')),Ii()),pi.forEach(function(e){H(e.querySelector(".darkreader--inline")),H(e.querySelector(".darkreader--override"))}),pi.clear(),D(ti.keys(),function(e){return _i(e)}),wi.clear(),Or(),D(document.querySelectorAll(".darkreader"),H),ni.forEach(function(e){e.destroy()}),ni.splice(0)}function Fi(){Cn.clear(),le.clear(),Ai(),Si(),ji(),bn()}var Bi=/url\(\"(blob\:.*?)\"\)/g;function Vi(e){return n(this,void 0,void 0,function(){var t,n;return r(this,function(r){switch(r.label){case 0:return t=[],Ze(Bi,e,1).forEach(function(e){var n=w(e);t.push(n)}),[4,Promise.all(t)];case 1:return n=r.sent(),[2,e.replace(Bi,function(){return'url("'+n.shift()+'")'})]}})})}var Wi='/*\n _______\n / \\\n .==. .==.\n (( ))==(( ))\n / "==" "=="\\\n /____|| || ||___\\\n ________ ____ ________ ___ ___\n | ___ \\ / \\ | ___ \\ | | / /\n | | \\ \\ / /\\ \\ | | \\ \\| |_/ /\n | | ) / /__\\ \\ | |__/ /| ___ \\\n | |__/ / ______ \\| ____ \\| | \\ \\\n_______|_______/__/ ____ \\__\\__|___\\__\\__|___\\__\\____\n| ___ \\ | ____/ / \\ | ___ \\ | ____| ___ \\\n| | \\ \\| |___ / /\\ \\ | | \\ \\| |___| | \\ \\\n| |__/ /| ____/ /__\\ \\ | | ) | ____| |__/ /\n| ____ \\| |__/ ______ \\| |__/ /| |___| ____ \\\n|__| \\__\\____/__/ \\__\\_______/ |______|__| \\__\\\n https://darkreader.org\n*/\n\n/*! Dark reader generated CSS | Licensed under MIT https://github.com/darkreader/darkreader/blob/master/LICENSE */\n';function Hi(){return n(this,void 0,void 0,function(){function e(e,n){var r=document.querySelector(e);r&&r.textContent&&(t.push("/* "+n+" */"),t.push(r.textContent),t.push(""))}var t,n,i,o,a;return r(this,function(r){switch(r.label){case 0:return t=[Wi],e(".darkreader--fallback","Fallback Style"),e(".darkreader--user-agent","User-Agent Style"),e(".darkreader--text","Text Style"),e(".darkreader--invert","Invert Style"),e(".darkreader--variables","Variables Style"),n=[],document.querySelectorAll(".darkreader--sync").forEach(function(e){D(e.sheet.cssRules,function(e){e&&e.cssText&&n.push(e.cssText)})}),n.length?(i=Je(n.join("\n")),t.push("/* Modified CSS */"),a=(o=t).push,[4,Vi(i)]):[3,2];case 1:a.apply(o,[r.sent()]),t.push(""),r.label=2;case 2:return e(".darkreader--override","Override Style"),[2,t.join("\n")]}})})}var Ui=!1,zi=function(){try{return window.self!==window.top}catch(e){return console.warn(e),!0}}();function qi(e,n){void 0===e&&(e={}),void 0===n&&(n=null);var r=t(t({},j),e);if(r.engine!==M.dynamicTheme)throw new Error("Theme engine is not supported.");Ni(r,n,zi),Ui=!0}function Ki(){return Ui}function Gi(){$i(),Ui=!1}var Yi=matchMedia("(prefers-color-scheme: dark)"),Xi={themeOptions:null,fixes:null};function Qi(){Yi.matches?qi(Xi.themeOptions,Xi.fixes):Gi()}function Zi(e,t){void 0===e&&(e={}),void 0===t&&(t=null),e?(Xi={themeOptions:e,fixes:t},Qi(),v?Yi.addEventListener("change",Qi):Yi.addListener(Qi)):(v?Yi.removeEventListener("change",Qi):Yi.removeListener(Qi),Gi())}function Ji(){return n(this,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return[4,Hi()];case 1:return[2,e.sent()]}})})}var eo=S;e.auto=Zi,e.disable=Gi,e.enable=qi,e.exportGeneratedCSS=Ji,e.isEnabled=Ki,e.setFetchMethod=eo,Object.defineProperty(e,"__esModule",{value:!0})})},nPnh:function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return a});var r=Math.round;function i(e,t,n){if(t){var i=t.x1,o=t.x2,s=t.y1,l=t.y2;e.x1=i,e.x2=o,e.y1=s,e.y2=l;var c=n&&n.lineWidth;return c?(r(2*i)===r(2*o)&&(e.x1=e.x2=a(i,c,!0)),r(2*s)===r(2*l)&&(e.y1=e.y2=a(s,c,!0)),e):e}}function o(e,t,n){if(t){var r=t.x,i=t.y,o=t.width,s=t.height;e.x=r,e.y=i,e.width=o,e.height=s;var l=n&&n.lineWidth;return l?(e.x=a(r,l,!0),e.y=a(i,l,!0),e.width=Math.max(a(r+o,l,!1)-e.x,0===o?0:1),e.height=Math.max(a(i+s,l,!1)-e.y,0===s?0:1),e):e}}function a(e,t,n){if(!t)return e;var i=r(2*e);return(i+r(t))%2===0?i/2:(i+(n?1:-1))/2}},nWMQ:function(e,t,n){"use strict";var r=n("c0Oy"),i=n("WGNW"),o=n("rKIl"),a=n("zNw+"),s=n("+y51"),l=n("4o36"),c=n("YEVI"),u=n("u8+u"),h=n("wUWy"),f=n("cQyX"),d=n("lvAo"),p=n("QSs8");e.exports=function(e,t,n,m,g,v){var y=r[e],b=y,w=g?"set":"add",x=b&&b.prototype,_={},E=function(e){var t=x[e];o(x,e,"delete"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(v&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return v&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof b&&(v||x.forEach&&!h(function(){(new b).entries().next()}))){var S=new b,C=S[w](v?{}:-0,1)!=S,k=h(function(){S.has(1)}),O=f(function(e){new b(e)}),T=!v&&h(function(){var e=new b,t=5;while(t--)e[w](t,t);return!e.has(-0)});O||(b=t(function(t,n){c(t,b,e);var r=p(new y,t,b);return void 0!=n&&l(n,g,r[w],r),r}),b.prototype=x,x.constructor=b),(k||T)&&(E("delete"),E("has"),g&&E("get")),(T||C)&&E(w),v&&x.clear&&delete x.clear}else b=m.getConstructor(t,e,g,w),a(b.prototype,n),s.NEED=!0;return d(b,e),_[e]=b,i(i.G+i.W+i.F*(b!=y),_),v||m.setStrong(b,e,g),b}},nYLq:function(e,t,n){var r=n("AUWw"),i=n("OsVd");e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=i(t);if(t!==n)throw RangeError("Wrong length!");return n}},"nwK/":function(e,t,n){var r=n("V5/1").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("8Z/V")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},o0o1:function(e,t,n){e.exports=n("wOl0")},o175:function(e,t,n){n("Jaki")("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},o8NH:function(e,t,n){var r=n("Y7ZC");r(r.S+r.F,"Object",{assign:n("kwZ1")})},oF12:function(e,t,n){var r=n("u8+u"),i=n("2we2"),o=n("gL7N")("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},oOsv:function(e,t,n){"use strict";t["default"]=function(){function e(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}function t(e,n,r,i){this.message=e,this.expected=n,this.found=r,this.location=i,this.name="SyntaxError","function"===typeof Error.captureStackTrace&&Error.captureStackTrace(this,t)}function n(e){var n,r=arguments.length>1?arguments[1]:{},i={},o={start:Pe},a=Pe,s=function(e){return{type:"messageFormatPattern",elements:e,location:Ce()}},l=function(e){var t,n,r,i,o,a="";for(t=0,r=e.length;t_e&&(_e=be,Ee=[]),Ee.push(e))}function Ae(e,n,r,i){function o(e){var t=1;e.sort(function(e,t){return e.descriptiont.description?1:0});while(t1?a.slice(0,-1).join(", ")+" or "+a[e.length-1]:a[0],i=t?'"'+n(t)+'"':"end of input","Expected "+r+" but "+i+" found."}return null!==n&&o(n),new t(null!==e?e:a(n,r),n,r,i)}function Pe(){var e;return e=Me(),e}function Me(){var e,t,n;e=be,t=[],n=Re();while(n!==i)t.push(n),n=Re();return t!==i&&(we=e,t=s(t)),e=t,e}function Re(){var e;return e=Le(),e===i&&(e=Ne()),e}function je(){var t,n,r,o,a,s;if(t=be,n=[],r=be,o=Ke(),o!==i?(a=Ze(),a!==i?(s=Ke(),s!==i?(o=[o,a,s],r=o):(be=r,r=i)):(be=r,r=i)):(be=r,r=i),r!==i)while(r!==i)n.push(r),r=be,o=Ke(),o!==i?(a=Ze(),a!==i?(s=Ke(),s!==i?(o=[o,a,s],r=o):(be=r,r=i)):(be=r,r=i)):(be=r,r=i);else n=i;return n!==i&&(we=t,n=l(n)),t=n,t===i&&(t=be,n=qe(),t=n!==i?e.substring(t,be):n),t}function Le(){var e,t;return e=be,t=je(),t!==i&&(we=e,t=c(t)),e=t,e}function De(){var t,n,r;if(t=Xe(),t===i){if(t=be,n=[],u.test(e.charAt(be))?(r=e.charAt(be),be++):(r=i,0===Se&&Te(h)),r!==i)while(r!==i)n.push(r),u.test(e.charAt(be))?(r=e.charAt(be),be++):(r=i,0===Se&&Te(h));else n=i;t=n!==i?e.substring(t,be):n}return t}function Ne(){var t,n,r,o,a,s,l,c,u;return t=be,123===e.charCodeAt(be)?(n=f,be++):(n=i,0===Se&&Te(d)),n!==i?(r=Ke(),r!==i?(o=De(),o!==i?(a=Ke(),a!==i?(s=be,44===e.charCodeAt(be)?(l=p,be++):(l=i,0===Se&&Te(m)),l!==i?(c=Ke(),c!==i?(u=Ie(),u!==i?(l=[l,c,u],s=l):(be=s,s=i)):(be=s,s=i)):(be=s,s=i),s===i&&(s=null),s!==i?(l=Ke(),l!==i?(125===e.charCodeAt(be)?(c=g,be++):(c=i,0===Se&&Te(v)),c!==i?(we=t,n=y(o,s),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Ie(){var e;return e=$e(),e===i&&(e=Fe(),e===i&&(e=Be(),e===i&&(e=Ve()))),e}function $e(){var t,n,r,o,a,s,l;return t=be,e.substr(be,6)===b?(n=b,be+=6):(n=i,0===Se&&Te(w)),n===i&&(e.substr(be,4)===x?(n=x,be+=4):(n=i,0===Se&&Te(_)),n===i&&(e.substr(be,4)===E?(n=E,be+=4):(n=i,0===Se&&Te(S)))),n!==i?(r=Ke(),r!==i?(o=be,44===e.charCodeAt(be)?(a=p,be++):(a=i,0===Se&&Te(m)),a!==i?(s=Ke(),s!==i?(l=Ze(),l!==i?(a=[a,s,l],o=a):(be=o,o=i)):(be=o,o=i)):(be=o,o=i),o===i&&(o=null),o!==i?(we=t,n=C(n,o),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Fe(){var t,n,r,o,a,s;return t=be,e.substr(be,6)===k?(n=k,be+=6):(n=i,0===Se&&Te(O)),n!==i?(r=Ke(),r!==i?(44===e.charCodeAt(be)?(o=p,be++):(o=i,0===Se&&Te(m)),o!==i?(a=Ke(),a!==i?(s=ze(),s!==i?(we=t,n=T(s),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Be(){var t,n,r,o,a,s;return t=be,e.substr(be,13)===A?(n=A,be+=13):(n=i,0===Se&&Te(P)),n!==i?(r=Ke(),r!==i?(44===e.charCodeAt(be)?(o=p,be++):(o=i,0===Se&&Te(m)),o!==i?(a=Ke(),a!==i?(s=ze(),s!==i?(we=t,n=M(s),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Ve(){var t,n,r,o,a,s,l;if(t=be,e.substr(be,6)===R?(n=R,be+=6):(n=i,0===Se&&Te(j)),n!==i)if(r=Ke(),r!==i)if(44===e.charCodeAt(be)?(o=p,be++):(o=i,0===Se&&Te(m)),o!==i)if(a=Ke(),a!==i){if(s=[],l=He(),l!==i)while(l!==i)s.push(l),l=He();else s=i;s!==i?(we=t,n=L(s),t=n):(be=t,t=i)}else be=t,t=i;else be=t,t=i;else be=t,t=i;else be=t,t=i;return t}function We(){var t,n,r,o;return t=be,n=be,61===e.charCodeAt(be)?(r=D,be++):(r=i,0===Se&&Te(N)),r!==i?(o=Xe(),o!==i?(r=[r,o],n=r):(be=n,n=i)):(be=n,n=i),t=n!==i?e.substring(t,be):n,t===i&&(t=Ze()),t}function He(){var t,n,r,o,a,s,l,c,u;return t=be,n=Ke(),n!==i?(r=We(),r!==i?(o=Ke(),o!==i?(123===e.charCodeAt(be)?(a=f,be++):(a=i,0===Se&&Te(d)),a!==i?(s=Ke(),s!==i?(l=Me(),l!==i?(c=Ke(),c!==i?(125===e.charCodeAt(be)?(u=g,be++):(u=i,0===Se&&Te(v)),u!==i?(we=t,n=I(r,l),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function Ue(){var t,n,r,o;return t=be,e.substr(be,7)===$?(n=$,be+=7):(n=i,0===Se&&Te(F)),n!==i?(r=Ke(),r!==i?(o=Xe(),o!==i?(we=t,n=B(o),t=n):(be=t,t=i)):(be=t,t=i)):(be=t,t=i),t}function ze(){var e,t,n,r,o;if(e=be,t=Ue(),t===i&&(t=null),t!==i)if(n=Ke(),n!==i){if(r=[],o=He(),o!==i)while(o!==i)r.push(o),o=He();else r=i;r!==i?(we=e,t=V(t,r),e=t):(be=e,e=i)}else be=e,e=i;else be=e,e=i;return e}function qe(){var t,n;if(Se++,t=[],H.test(e.charAt(be))?(n=e.charAt(be),be++):(n=i,0===Se&&Te(U)),n!==i)while(n!==i)t.push(n),H.test(e.charAt(be))?(n=e.charAt(be),be++):(n=i,0===Se&&Te(U));else t=i;return Se--,t===i&&(n=i,0===Se&&Te(W)),t}function Ke(){var t,n,r;Se++,t=be,n=[],r=qe();while(r!==i)n.push(r),r=qe();return t=n!==i?e.substring(t,be):n,Se--,t===i&&(n=i,0===Se&&Te(z)),t}function Ge(){var t;return q.test(e.charAt(be))?(t=e.charAt(be),be++):(t=i,0===Se&&Te(K)),t}function Ye(){var t;return G.test(e.charAt(be))?(t=e.charAt(be),be++):(t=i,0===Se&&Te(Y)),t}function Xe(){var t,n,r,o,a,s;if(t=be,48===e.charCodeAt(be)?(n=X,be++):(n=i,0===Se&&Te(Q)),n===i){if(n=be,r=be,Z.test(e.charAt(be))?(o=e.charAt(be),be++):(o=i,0===Se&&Te(J)),o!==i){a=[],s=Ge();while(s!==i)a.push(s),s=Ge();a!==i?(o=[o,a],r=o):(be=r,r=i)}else be=r,r=i;n=r!==i?e.substring(n,be):r}return n!==i&&(we=t,n=ee(n)),t=n,t}function Qe(){var t,n,r,o,a,s,l,c;return te.test(e.charAt(be))?(t=e.charAt(be),be++):(t=i,0===Se&&Te(ne)),t===i&&(t=be,e.substr(be,2)===re?(n=re,be+=2):(n=i,0===Se&&Te(ie)),n!==i&&(we=t,n=oe()),t=n,t===i&&(t=be,e.substr(be,2)===ae?(n=ae,be+=2):(n=i,0===Se&&Te(se)),n!==i&&(we=t,n=le()),t=n,t===i&&(t=be,e.substr(be,2)===ce?(n=ce,be+=2):(n=i,0===Se&&Te(ue)),n!==i&&(we=t,n=he()),t=n,t===i&&(t=be,e.substr(be,2)===fe?(n=fe,be+=2):(n=i,0===Se&&Te(de)),n!==i&&(we=t,n=pe()),t=n,t===i&&(t=be,e.substr(be,2)===me?(n=me,be+=2):(n=i,0===Se&&Te(ge)),n!==i?(r=be,o=be,a=Ye(),a!==i?(s=Ye(),s!==i?(l=Ye(),l!==i?(c=Ye(),c!==i?(a=[a,s,l,c],o=a):(be=o,o=i)):(be=o,o=i)):(be=o,o=i)):(be=o,o=i),r=o!==i?e.substring(r,be):o,r!==i?(we=t,n=ve(r),t=n):(be=t,t=i)):(be=t,t=i)))))),t}function Ze(){var e,t,n;if(e=be,t=[],n=Qe(),n!==i)while(n!==i)t.push(n),n=Qe();else t=i;return t!==i&&(we=e,t=ye(t)),e=t,e}if(n=a(),n!==i&&be===e.length)return n;throw n!==i&&be";t.style.display="none",n("MvwC").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),c=e.F;while(r--)delete c[l][o[r]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[l]=r(e),n=new s,s[l]=null,n[a]=e):n=c(),void 0===t?n:i(n,t)}},obDU:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.prototype.hasOwnProperty,i=Object.prototype.toString,o=function(){try{return!!Object.defineProperty({},"a",{})}catch(e){return!1}}(),a=(!o&&Object.prototype.__defineGetter__,o?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!r.call(e,t)||"value"in n)&&(e[t]=n.value)});t.defineProperty=a;var s=Object.create||function(e,t){var n,i;function o(){}for(i in o.prototype=e,n=new o,t)r.call(t,i)&&a(n,i,t[i]);return n};t.objCreate=s;var l=Array.prototype.indexOf||function(e,t){var n=this;if(!n.length)return-1;for(var r=t||0,i=n.length;r=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function l(e,t,n,r,i,o,a){try{var s=e[o](a),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function c(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e){l(o,r,i,a,s,"next",e)}function s(e){l(o,r,i,a,s,"throw",e)}a(void 0)})}}function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:{};b=[],w=e.validKeys||[]}function _(e){Object.keys(e).forEach(function(e){(0,r.default)(w.concat("default").indexOf(e)>-1,"Invalid key ".concat(e," from plugin"))}),b.push(e)}function E(e){return(0,r.default)(w.indexOf(e)>-1,"Invalid key ".concat(e)),b.filter(function(t){return e in t}).map(function(t){return t[e]})}function S(){for(var e=arguments.length,t=new Array(e),n=0;nthis.getOrderInfo()},this.props.children),g.a.createElement(x["a"],{visible:this.state.visible,title:"\u8ba2\u5355\u4fe1\u606f",onCancel:()=>this.onShow(),footer:!1},this.state.user.email?g.a.createElement("div",null,g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u90ae\u7bb1"),g.a.createElement(S["a"],{span:18},g.a.createElement("a",{onClick:()=>this.jumpUserFilter("email","\u6a21\u7cca",this.state.user.email),href:"javascript:void(0);"},this.state.user.email))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u5355\u53f7"),g.a.createElement(S["a"],{span:18},this.state.order.trade_no)),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u5355\u5468\u671f"),g.a.createElement(S["a"],{span:18},y["a"].periodText[this.state.order.period])),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u5355\u72b6\u6001"),g.a.createElement(S["a"],{span:18},y["a"].orderStatusText[this.state.order.status])),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u8ba2\u9605\u8ba1\u5212"),g.a.createElement(S["a"],{span:18},null===(e=t.find(e=>e.id===this.state.order.plan_id))||void 0===e?void 0:e.name)),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u56de\u8c03\u5355\u53f7"),g.a.createElement(S["a"],{span:18},this.state.order.callback_no?this.state.order.callback_no:"-")),g.a.createElement(_["a"],null),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u652f\u4ed8\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.total_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f59\u989d\u652f\u4ed8"),g.a.createElement(S["a"],{span:18},(this.state.order.balance_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f18\u60e0\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.discount_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u9000\u56de\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.refund_amount/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u6298\u62b5\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.surplus_amount/100).toFixed(2))),g.a.createElement(_["a"],null),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u521b\u5efa\u65f6\u95f4"),g.a.createElement(S["a"],{span:18},w()(1e3*this.state.order.created_at).format("YYYY-MM-DD HH:mm:ss"))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u66f4\u65b0\u65f6\u95f4"),g.a.createElement(S["a"],{span:18},w()(1e3*this.state.order.updated_at).format("YYYY-MM-DD HH:mm:ss"))),this.state.order.invite_user_id&&3===this.state.order.status?g.a.createElement("div",null,g.a.createElement(_["a"],null),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u9080\u8bf7\u4eba"),g.a.createElement(S["a"],{span:18},g.a.createElement(f["a"],{title:"\u67e5\u770bTA\u9080\u8bf7\u7684\u4eba"},g.a.createElement("a",{onClick:()=>this.jumpUserFilter("invite_by_email","\u6a21\u7cca",this.state.invite_user.email),href:"javascript:void(0);"},this.state.invite_user.email)))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f63\u91d1\u91d1\u989d"),g.a.createElement(S["a"],{span:18},(this.state.order.commission_balance/100).toFixed(2))),this.state.order.actual_commission_balance&&g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u5b9e\u9645\u53d1\u653e"),g.a.createElement(S["a"],{span:18},(this.state.order.actual_commission_balance/100).toFixed(2))),g.a.createElement(E["a"],{gutter:[16,16],style:n},g.a.createElement(S["a"],{span:6},"\u4f63\u91d1\u72b6\u6001"),g.a.createElement(S["a"],{span:18},y["a"].commissionStatusText[this.state.order.commission_status]))):""):g.a.createElement(d["a"],{type:"loading",style:{fontSize:24,color:"#415A94"}})))}}var L=Object(R["c"])(e=>{var t=e.plan;return{plan:t}})(j),D=n("mCd/"),N=n("yiO6"),I=n("hVla"),$=n("v32e");class F extends g.a.Component{constructor(e){super(e),this.state={}}componentWillUnmount(){this.props.dispatch({type:"order/empty"}),this.props.dispatch({type:"order/setState",payload:{filter:[]}})}componentDidMount(){this.props.dispatch({type:"order/fetch"}),this.props.dispatch({type:"plan/fetch"})}update(e,t,n){this.props.dispatch({type:"order/update",tradeNo:e,key:t,value:n})}tableOnChange(e){this.props.dispatch({type:"order/changeTable",pagination:e})}render(){var e=this.props.order,t=e.orders,n=e.fetchLoading,r=e.pagination,a=e.filter,m=[{title:"# \u8ba2\u5355\u53f7",dataIndex:"trade_no",key:"trade_no",render:(e,t)=>{return g.a.createElement(L,{orderId:t.id},g.a.createElement("a",{href:"javascript:void(0);"},e.substr(0,3),"...",e.substr(-3)))}},{title:"\u7c7b\u578b",dataIndex:"type",key:"type",render:e=>{var t={1:"\u65b0\u8d2d",2:"\u7eed\u8d39",3:"\u53d8\u66f4",4:"\u6d41\u91cf\u5305"};return t[e]}},{title:"\u8ba2\u9605\u8ba1\u5212",dataIndex:"plan_name",key:"plan_name"},{title:"\u5468\u671f",dataIndex:"period",key:"period",align:"center",render:(e,t)=>{return g.a.createElement(p["a"],null,y["a"].periodText[t.period])}},{title:"\u652f\u4ed8\u91d1\u989d",dataIndex:"total_amount",key:"total_amount",align:"right",render:e=>{return(e/100).toFixed(2)}},{title:g.a.createElement("span",null,g.a.createElement(f["a"],{placement:"top",title:"\u6807\u8bb0\u4e3a[\u5df2\u652f\u4ed8]\u540e\u5c06\u4f1a\u7531\u7cfb\u7edf\u8fdb\u884c\u5f00\u901a\u540e\u5e76\u5b8c\u6210"},"\u8ba2\u5355\u72b6\u6001 ",g.a.createElement(d["a"],{type:"question-circle"}))),dataIndex:"status",key:"status",render:(e,t)=>{var n=["error","processing","default","success","default"];return g.a.createElement("div",null,g.a.createElement(c["a"],{disabled:0!==e,trigger:["click"],overlay:g.a.createElement(h["a"],null,g.a.createElement(h["a"].Item,{key:"1",onClick:e=>{this.props.dispatch({type:"order/paid",tradeNo:t.trade_no})}},"\u5df2\u652f\u4ed8"),g.a.createElement(h["a"].Item,{key:"2",onClick:e=>{this.props.dispatch({type:"order/cancel",tradeNo:t.trade_no})}},"\u53d6\u6d88"))},g.a.createElement("div",null,g.a.createElement(u["a"],{status:n[e]}),g.a.createElement("span",null,y["a"].orderStatusText[e]," "),0===e&&g.a.createElement("a",{href:"javascript:void(0);"},"\u6807\u8bb0\u4e3a ",g.a.createElement(d["a"],{type:"caret-down"})))))}},{title:"\u4f63\u91d1\u91d1\u989d",dataIndex:"commission_balance",key:"commission_balance",align:"right",render:(e,t)=>{return 0===t.status||2===t.status?"-":e?(e/100).toFixed(2):"-"}},{title:g.a.createElement("span",null,"\u4f63\u91d1\u72b6\u6001 ",g.a.createElement(f["a"],{placement:"top",title:"\u6807\u8bb0\u4e3a[\u6709\u6548]\u540e\u5c06\u4f1a\u7531\u7cfb\u7edf\u5904\u7406\u540e\u53d1\u653e\u5230\u7528\u6237\u5e76\u5b8c\u6210"},g.a.createElement(d["a"],{type:"question-circle"}))),dataIndex:"commission_status",key:"commission_status",render:(e,t)=>{if(0===t.status||2===t.status)return"-";if(!t.commission_balance)return"-";var n=["default","processing","success","error"];return 2===t.commission_status?g.a.createElement("div",null,g.a.createElement(u["a"],{status:n[e]}),g.a.createElement("span",null,y["a"].commissionStatusText[e]," ")):g.a.createElement("div",null,g.a.createElement(c["a"],{trigger:["click"],overlay:g.a.createElement(h["a"],null,g.a.createElement(h["a"].Item,{key:"0",disabled:0===e,onClick:e=>{this.update(t.trade_no,"commission_status",e.key)}},"\u5f85\u786e\u8ba4"),g.a.createElement(h["a"].Item,{key:"1",disabled:1===e,onClick:e=>{this.update(t.trade_no,"commission_status",e.key)}},"\u6709\u6548"),g.a.createElement(h["a"].Item,{key:"3",disabled:3===e,onClick:e=>{this.update(t.trade_no,"commission_status",e.key)}},"\u65e0\u6548"))},g.a.createElement("div",null,g.a.createElement(u["a"],{status:n[e]}),g.a.createElement("span",null,y["a"].commissionStatusText[e]," "),g.a.createElement("a",{href:"javascript:void(0);"},"\u6807\u8bb0\u4e3a ",g.a.createElement(d["a"],{type:"caret-down"})))))}},{title:"\u521b\u5efa\u65f6\u95f4",dataIndex:"created_at",key:"created_at",align:"right",render:e=>{return w()(1e3*e).format("YYYY/MM/DD HH:mm")}}];return g.a.createElement(v["a"],i()({},this.props,{title:"\u8ba2\u5355\u7ba1\u7406"}),g.a.createElement("div",{className:"d-flex justify-content-between align-items-center"}),g.a.createElement($["a"],{loading:n},g.a.createElement("div",{className:"block block-rounded"},g.a.createElement("div",{className:"bg-white"},g.a.createElement("div",{style:{padding:15}},g.a.createElement(N["a"],null,g.a.createElement(I["a"],{value:a,onOk:e=>this.props.dispatch({type:"order/filter",filter:e}),keys:[{key:"trade_no",title:"\u8ba2\u5355\u53f7",condition:["\u6a21\u7cca","="]},{key:"status",title:"\u8ba2\u5355\u72b6\u6001",type:"select",condition:["="],options:[{key:"\u672a\u652f\u4ed8",value:0},{key:"\u5df2\u652f\u4ed8",value:1},{key:"\u5df2\u53d6\u6d88",value:2},{key:"\u5df2\u5b8c\u6210",value:3}]},{key:"commission_status",title:"\u4f63\u91d1\u72b6\u6001",type:"select",condition:["="],options:[{key:"\u5f85\u786e\u8ba4",value:0},{key:"\u53d1\u653e\u4e2d",value:1},{key:"\u5df2\u53d1\u653e",value:2},{key:"\u65e0\u6548",value:3}]},{key:"user_id",title:"\u7528\u6237ID",condition:["="]},{key:"invite_user_id",title:"\u9080\u8bf7\u4ebaID",condition:["=","!="]},{key:"callback_no",title:"\u56de\u8c03\u5355\u53f7",condition:["\u6a21\u7cca"]}]},g.a.createElement(l["a"],{type:a.length>0?"primary":""},g.a.createElement(d["a"],{type:"filter"})," \u8fc7\u6ee4\u5668"))),g.a.createElement(D["a"],null,g.a.createElement(l["a"],{style:{marginLeft:10}},g.a.createElement(d["a"],{type:"plus"})," \u6dfb\u52a0\u8ba2\u5355"))),g.a.createElement(o["a"],{tableLayout:"auto",dataSource:t,pagination:s()({},r,{size:"small"}),columns:m,scroll:{x:1050},onChange:e=>this.tableOnChange(e)})))))}}t["default"]=Object(R["c"])(e=>{var t=e.order;return{order:t}})(F)},q97H:function(e,t,n){"use strict";var r=n("330p");n("WGNW")({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},qDJ8:function(e,t,n){"use strict";e.exports=function(e){return null!=e&&"object"===typeof e&&!1===Array.isArray(e)}},qIgq:function(e,t,n){var r=n("Wz2H"),i=n("IuST"),o=n("198K");function a(e,t){return r(e)||i(e,t)||o()}e.exports=a},qT12:function(e,t,n){"use strict";var r="function"===typeof Symbol&&Symbol.for,i=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,a=r?Symbol.for("react.fragment"):60107,s=r?Symbol.for("react.strict_mode"):60108,l=r?Symbol.for("react.profiler"):60114,c=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,h=r?Symbol.for("react.async_mode"):60111,f=r?Symbol.for("react.concurrent_mode"):60111,d=r?Symbol.for("react.forward_ref"):60112,p=r?Symbol.for("react.suspense"):60113,m=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,v=r?Symbol.for("react.lazy"):60116,y=r?Symbol.for("react.block"):60121,b=r?Symbol.for("react.fundamental"):60117,w=r?Symbol.for("react.responder"):60118,x=r?Symbol.for("react.scope"):60119;function _(e){if("object"===typeof e&&null!==e){var t=e.$$typeof;switch(t){case i:switch(e=e.type,e){case h:case f:case a:case l:case s:case p:return e;default:switch(e=e&&e.$$typeof,e){case u:case d:case v:case g:case c:return e;default:return t}}case o:return t}}}function E(e){return _(e)===f}t.AsyncMode=h,t.ConcurrentMode=f,t.ContextConsumer=u,t.ContextProvider=c,t.Element=i,t.ForwardRef=d,t.Fragment=a,t.Lazy=v,t.Memo=g,t.Portal=o,t.Profiler=l,t.StrictMode=s,t.Suspense=p,t.isAsyncMode=function(e){return E(e)||_(e)===h},t.isConcurrentMode=E,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===c},t.isElement=function(e){return"object"===typeof e&&null!==e&&e.$$typeof===i},t.isForwardRef=function(e){return _(e)===d},t.isFragment=function(e){return _(e)===a},t.isLazy=function(e){return _(e)===v},t.isMemo=function(e){return _(e)===g},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===l},t.isStrictMode=function(e){return _(e)===s},t.isSuspense=function(e){return _(e)===p},t.isValidElementType=function(e){return"string"===typeof e||"function"===typeof e||e===a||e===f||e===l||e===s||e===p||e===m||"object"===typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===g||e.$$typeof===c||e.$$typeof===u||e.$$typeof===d||e.$$typeof===b||e.$$typeof===w||e.$$typeof===x||e.$$typeof===y)},t.typeOf=_},qfHW:function(e,t,n){(function(e){t.fetch=s(e.fetch)&&s(e.ReadableStream),t.writableStream=s(e.WritableStream),t.abortController=s(e.AbortController),t.blobConstructor=!1;try{new Blob([new ArrayBuffer(1)]),t.blobConstructor=!0}catch(e){}var n;function r(){if(void 0!==n)return n;if(e.XMLHttpRequest){n=new e.XMLHttpRequest;try{n.open("GET",e.XDomainRequest?"/":"https://example.com")}catch(e){n=null}}else n=null;return n}function i(e){var t=r();if(!t)return!1;try{return t.responseType=e,t.responseType===e}catch(e){}return!1}var o="undefined"!==typeof e.ArrayBuffer,a=o&&s(e.ArrayBuffer.prototype.slice);function s(e){return"function"===typeof e}t.arraybuffer=t.fetch||o&&i("arraybuffer"),t.msstream=!t.fetch&&a&&i("ms-stream"),t.mozchunkedarraybuffer=!t.fetch&&o&&i("moz-chunked-arraybuffer"),t.overrideMimeType=t.fetch||!!r()&&s(r().overrideMimeType),t.vbArray=s(e.VBArray),n=null}).call(this,n("yLpj"))},qqou:function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r);if("undefined"!==typeof Element&&!Element.prototype.matches){var o=Element.prototype;o.matches=o.matchesSelector||o.mozMatchesSelector||o.msMatchesSelector||o.oMatchesSelector||o.webkitMatchesSelector}var a=function(e,t,n){var r=e;while(r){var i=r===n||r===document.body;if(i||1===r.nodeType&&r.matches(t)){i&&(r=null);break}r=r.parentNode}return r},s=function(e){var t=e;do{var n=window.getComputedStyle(t),r=n.overflow;if(("auto"===r||"scroll"===r)&&t&&t.nodeType&&(t.offsetWidth""===t||!e.matches(t)).indexOf(e)},c="tr",u={TOP:1,BOTTOM:3},h="px",f="position:fixed;z-index:9999;height:0;margin-top:-1px;border-bottom:dashed 2px rgba(0,0,0,.3);display:none;";class d extends r["Component"]{constructor(e){super(e),this.onMouseDown=this.onMouseDown.bind(this),this.onDragStart=this.onDragStart.bind(this),this.onDragEnter=this.onDragEnter.bind(this),this.onDragEnd=this.onDragEnd.bind(this),this.autoScroll=this.autoScroll.bind(this),this.state={fromIndex:-1,toIndex:-1},this.scrollElement=null,this.scrollTimerId=-1,this.direction=u.BOTTOM}componentWillUnmount(){this.dragLine&&this.dragLine.parentNode&&(this.dragLine.parentNode.removeChild(this.dragLine),this.dragLine=null,this.cacheDragTarget=null)}onMouseDown(e){var t=this.getHandleNode(e.target);if(t){var n=this.props.handleSelector&&this.props.handleSelector!==this.props.nodeSelector?this.getDragNode(t):t;n&&(t.setAttribute("draggable",!1),n.setAttribute("draggable",!0),n.ondragstart=this.onDragStart,n.ondragend=this.onDragEnd)}}onDragStart(e){var t=this.getDragNode(e.target),n=e;if(t){var r=t.parentNode;n.dataTransfer.setData("Text",""),n.dataTransfer.effectAllowed="move",r.ondragenter=this.onDragEnter,r.ondragover=function(e){return e.preventDefault(),!0};var i=l(t,this.props.ignoreSelector);this.setState({fromIndex:i,toIndex:i}),this.scrollElement=s(r)}}onDragEnter(e){var t,n=this.getDragNode(e.target),r=e;n?(t=l(n,this.props.ignoreSelector),this.props.enableScroll&&this.resolveAutoScroll(r,n)):(t=-1,this.stopAutoScroll()),this.cacheDragTarget=n,this.setState({toIndex:t}),this.fixDragLine(n)}onDragEnd(e){var t=this.getDragNode(e.target);this.stopAutoScroll(),t&&(t.removeAttribute("draggable"),t.ondragstart=null,t.ondragend=null,t.parentNode.ondragenter=null,t.parentNode.ondragover=null,this.state.fromIndex>=0&&this.state.fromIndex!==this.state.toIndex&&this.props.onDragEnd(this.state.fromIndex,this.state.toIndex)),this.hideDragLine(),this.setState({fromIndex:-1,toIndex:-1})}getDragNode(e){return a(e,this.props.nodeSelector,this.dragList)}getHandleNode(e){return a(e,this.props.handleSelector||this.props.nodeSelector,this.dragList)}getDragLine(){return this.dragLine||(this.dragLine=window.document.createElement("div"),this.dragLine.setAttribute("style",f),window.document.body.appendChild(this.dragLine)),this.dragLine.className=this.props.lineClassName||"",this.dragLine}resolveAutoScroll(e,t){if(this.scrollElement){var n=this.scrollElement.getBoundingClientRect(),r=n.top,i=n.height,o=t.offsetHeight,a=e.pageY,s=o*(2/3);this.direction=0,a>r+i-s?this.direction=u.BOTTOM:au+c+2)return void this.hideDragLine()}t.style.left=r+h,t.style.width=o+h,t.style.top=s+h,t.style.display="block"}}render(){return i.a.createElement("div",{role:"presentation",onMouseDown:this.onMouseDown,ref:e=>{this.dragList=e}},this.props.children)}}d.defaultProps={nodeSelector:c,ignoreSelector:"",enableScroll:!0,scrollSpeed:10,handleSelector:"",lineClassName:"",children:null};var p=d,m="px",g="width:0;margin-left:-1px;margin-top:0;border-bottom:0 none;border-left:dashed 2px rgba(0,0,0,.3);",v={RIGHT:2,LEFT:4};class y extends p{getDragLine(){return this.dragLine||(super.getDragLine(),this.dragLine.setAttribute("style",this.dragLine.getAttribute("style")+g)),this.dragLine}resolveAutoScroll(e,t){if(this.scrollElement){var n=this.scrollElement.getBoundingClientRect(),r=n.left,i=n.width,o=t.offsetWidth,a=e.pageX,s=2*o/3;this.direction=0,a>r+i-s?this.direction=v.RIGHT:au+c+2)return void this.hideDragLine()}t.style.top=i+m,t.style.height=a+m,t.style.left=s+m,t.style.display="block"}}}var b=y;p.DragColumn=b;t["a"]=p},qx4F:function(e,t,n){"use strict";var r;function i(e){if("undefined"===typeof document)return 0;if(e||void 0===r){var t=document.createElement("div");t.style.width="100%",t.style.height="200px";var n=document.createElement("div"),i=n.style;i.position="absolute",i.top=0,i.left=0,i.pointerEvents="none",i.visibility="hidden",i.width="200px",i.height="150px",i.overflow="hidden",n.appendChild(t),document.body.appendChild(n);var o=t.offsetWidth;n.style.overflow="scroll";var a=t.offsetWidth;o===a&&(a=n.clientWidth),document.body.removeChild(n),r=o-a}return r}n.d(t,"a",function(){return i})},r6D9:function(e,t,n){"use strict";var r=n("IlS8");function i(){}e.exports=function(){function e(e,t,n,i,o,a){if(a!==r){var s=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var n={array:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t};return n.checkPropTypes=i,n.PropTypes=n,n}},rA99:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt"),o=n("QBsz"),a=n("Sj9i"),s=[],l=function(){function e(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.cpx1=0,this.cpy1=0,this.percent=1}return e}();function c(e,t,n){var r=e.cpx2,i=e.cpy2;return null!=r||null!=i?[(n?a["b"]:a["a"])(e.x1,e.cpx1,e.cpx2,e.x2,t),(n?a["b"]:a["a"])(e.y1,e.cpy1,e.cpy2,e.y2,t)]:[(n?a["i"]:a["h"])(e.x1,e.cpx1,e.x2,t),(n?a["i"]:a["h"])(e.y1,e.cpy1,e.y2,t)]}var u=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new l},t.prototype.buildPath=function(e,t){var n=t.x1,r=t.y1,i=t.x2,o=t.y2,l=t.cpx1,c=t.cpy1,u=t.cpx2,h=t.cpy2,f=t.percent;0!==f&&(e.moveTo(n,r),null==u||null==h?(f<1&&(Object(a["n"])(n,l,i,f,s),l=s[1],i=s[2],Object(a["n"])(r,c,o,f,s),c=s[1],o=s[2]),e.quadraticCurveTo(l,c,i,o)):(f<1&&(Object(a["g"])(n,l,u,i,f,s),l=s[1],u=s[2],i=s[3],Object(a["g"])(r,c,h,o,f,s),c=s[1],h=s[2],o=s[3]),e.bezierCurveTo(l,c,u,h,i,o)))},t.prototype.pointAt=function(e){return c(this.shape,e,!1)},t.prototype.tangentAt=function(e){var t=c(this.shape,e,!0);return o["k"](t,t)},t}(i["b"]);u.prototype.type="bezier-curve",t["a"]=u},rB1S:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l={switchLoading:{},saveLoading:!1};t["default"]={name:"serverV2ray",state:a()({},l),reducers:{setState(e,t){var n=t.payload;return a()({},e,n)}},effects:{update(e,t){return i.a.mark(function n(){var r,o,a,l,c;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=e.key,a=e.value,l=t.put,n.next=4,Object(s["b"])("/admin/server/v2ray/update",{id:r,[o]:a});case 4:if(c=n.sent,200===c.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,l({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},drop(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/v2ray/drop",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},copy(e,t){return i.a.mark(function n(){var r,o,a;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.id,o=t.put,n.next=4,Object(s["b"])("/admin/server/v2ray/copy",{id:r});case 4:if(a=n.sent,200===a.code){n.next=7;break}return n.abrupt("return");case 7:return n.next=9,o({type:"serverManage/getNodes"});case 9:case"end":return n.stop()}},n)})()},save(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.params,o=e.callback,a=t.put,n.next=4,a({type:"setState",payload:{saveLoading:!0}});case 4:return n.next=6,Object(s["b"])("/admin/server/v2ray/save",r);case 6:return l=n.sent,n.next=9,a({type:"setState",payload:{saveLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:return n.next=13,a({type:"serverManage/getNodes"});case 13:"function"===typeof o&&o();case 14:case"end":return n.stop()}},n)})()}}}},rKIl:function(e,t,n){var r=n("c0Oy"),i=n("VPOE"),o=n("oxo0"),a=n("kCK5")("src"),s=n("b5re"),l="toString",c=(""+s).split(l);n("bV5f").inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(l&&(o(n,a)||i(n,a,e[t]?""+e[t]:c.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,l,function(){return"function"==typeof this&&this[a]||s.call(this)})},rTWY:function(e,t,n){var r=n("c0Oy"),i=n("vMx4").set,o=r.MutationObserver||r.WebKitMutationObserver,a=r.process,s=r.Promise,l="process"==n("2we2")(a);e.exports=function(){var e,t,n,c=function(){var r,i;l&&(r=a.domain)&&r.exit();while(e){i=e.fn,e=e.next;try{i()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(l)n=function(){a.nextTick(c)};else if(!o||r.navigator&&r.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(c)}}else n=function(){i.call(r,c)};else{var h=!0,f=document.createTextNode("");new o(c).observe(f,{characterData:!0}),n=function(){f.data=h=!h}}return function(r){var i={fn:r,next:void 0};t&&(t.next=i),e||(e=i,n()),t=i}}},rUcv:function(e,t,n){"use strict";var r=n("c0Oy"),i=n("oxo0"),o=n("8Z/V"),a=n("WGNW"),s=n("rKIl"),l=n("+y51").KEY,c=n("wUWy"),u=n("VyuQ"),h=n("lvAo"),f=n("kCK5"),d=n("gL7N"),p=n("zKnh"),m=n("/sWw"),g=n("T1nr"),v=n("EpXD"),y=n("7vYJ"),b=n("u8+u"),w=n("il4q"),x=n("OeOC"),_=n("8BMt"),E=n("pQGJ"),S=n("/Mfd"),C=n("CTsd"),k=n("15BC"),O=n("e6w7"),T=n("V5/1"),A=n("Igga"),P=k.f,M=T.f,R=C.f,j=r.Symbol,L=r.JSON,D=L&&L.stringify,N="prototype",I=d("_hidden"),$=d("toPrimitive"),F={}.propertyIsEnumerable,B=u("symbol-registry"),V=u("symbols"),W=u("op-symbols"),H=Object[N],U="function"==typeof j&&!!O.f,z=r.QObject,q=!z||!z[N]||!z[N].findChild,K=o&&c(function(){return 7!=S(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=P(H,t);r&&delete H[t],M(e,t,n),r&&e!==H&&M(H,t,r)}:M,G=function(e){var t=V[e]=S(j[N]);return t._k=e,t},Y=U&&"symbol"==typeof j.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof j},X=function(e,t,n){return e===H&&X(W,t,n),y(e),t=_(t,!0),y(n),i(V,t)?(n.enumerable?(i(e,I)&&e[I][t]&&(e[I][t]=!1),n=S(n,{enumerable:E(0,!1)})):(i(e,I)||M(e,I,E(1,{})),e[I][t]=!0),K(e,t,n)):M(e,t,n)},Q=function(e,t){y(e);var n,r=g(t=x(t)),i=0,o=r.length;while(o>i)X(e,n=r[i++],t[n]);return e},Z=function(e,t){return void 0===t?S(e):Q(S(e),t)},J=function(e){var t=F.call(this,e=_(e,!0));return!(this===H&&i(V,e)&&!i(W,e))&&(!(t||!i(this,e)||!i(V,e)||i(this,I)&&this[I][e])||t)},ee=function(e,t){if(e=x(e),t=_(t,!0),e!==H||!i(V,t)||i(W,t)){var n=P(e,t);return!n||!i(V,t)||i(e,I)&&e[I][t]||(n.enumerable=!0),n}},te=function(e){var t,n=R(x(e)),r=[],o=0;while(n.length>o)i(V,t=n[o++])||t==I||t==l||r.push(t);return r},ne=function(e){var t,n=e===H,r=R(n?W:x(e)),o=[],a=0;while(r.length>a)!i(V,t=r[a++])||n&&!i(H,t)||o.push(V[t]);return o};U||(j=function(){if(this instanceof j)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===H&&t.call(W,n),i(this,I)&&i(this[I],e)&&(this[I][e]=!1),K(this,e,E(1,n))};return o&&q&&K(H,e,{configurable:!0,set:t}),G(e)},s(j[N],"toString",function(){return this._k}),k.f=ee,T.f=X,n("9HFh").f=C.f=te,n("LsAW").f=J,O.f=ne,o&&!n("FqPH")&&s(H,"propertyIsEnumerable",J,!0),p.f=function(e){return G(d(e))}),a(a.G+a.W+a.F*!U,{Symbol:j});for(var re="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ie=0;re.length>ie;)d(re[ie++]);for(var oe=A(d.store),ae=0;oe.length>ae;)m(oe[ae++]);a(a.S+a.F*!U,"Symbol",{for:function(e){return i(B,e+="")?B[e]:B[e]=j(e)},keyFor:function(e){if(!Y(e))throw TypeError(e+" is not a symbol!");for(var t in B)if(B[t]===e)return t},useSetter:function(){q=!0},useSimple:function(){q=!1}}),a(a.S+a.F*!U,"Object",{create:Z,defineProperty:X,defineProperties:Q,getOwnPropertyDescriptor:ee,getOwnPropertyNames:te,getOwnPropertySymbols:ne});var se=c(function(){O.f(1)});a(a.S+a.F*se,"Object",{getOwnPropertySymbols:function(e){return O.f(w(e))}}),L&&a(a.S+a.F*(!U||c(function(){var e=j();return"[null]"!=D([e])||"{}"!=D({a:e})||"{}"!=D(Object(e))})),"JSON",{stringify:function(e){var t,n,r=[e],i=1;while(arguments.length>i)r.push(arguments[i++]);if(n=t=r[1],(b(t)||void 0!==e)&&!Y(e))return v(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!Y(t))return t}),r[1]=t,D.apply(L,r)}}),j[N][$]||n("VPOE")(j[N],$,j[N].valueOf),h(j,"Symbol"),h(Math,"Math",!0),h(r.JSON,"JSON",!0)},rXFu:function(e,t,n){"use strict";(function(t,r){var i=n("lm0R");e.exports=_;var o,a=n("2Nt0");_.ReadableState=x;n("+qE3").EventEmitter;var s=function(e,t){return e.listeners(t).length},l=n("QpuX"),c=n("hwdV").Buffer,u=t.Uint8Array||function(){};function h(e){return c.from(e)}function f(e){return c.isBuffer(e)||e instanceof u}var d=Object.create(n("Onz0"));d.inherits=n("P7XM");var p=n(3),m=void 0;m=p&&p.debuglog?p.debuglog("stream"):function(){};var g,v=n("Xhqo"),y=n("RoFp");d.inherits(_,l);var b=["error","close","destroy","pause","resume"];function w(e,t,n){if("function"===typeof e.prependListener)return e.prependListener(t,n);e._events&&e._events[t]?a(e._events[t])?e._events[t].unshift(n):e._events[t]=[n,e._events[t]]:e.on(t,n)}function x(e,t){o=o||n("sZro"),e=e||{};var r=t instanceof o;this.objectMode=!!e.objectMode,r&&(this.objectMode=this.objectMode||!!e.readableObjectMode);var i=e.highWaterMark,a=e.readableHighWaterMark,s=this.objectMode?16:16384;this.highWaterMark=i||0===i?i:r&&(a||0===a)?a:s,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new v,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=e.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,e.encoding&&(g||(g=n("fXKp").StringDecoder),this.decoder=new g(e.encoding),this.encoding=e.encoding)}function _(e){if(o=o||n("sZro"),!(this instanceof _))return new _(e);this._readableState=new x(e,this),this.readable=!0,e&&("function"===typeof e.read&&(this._read=e.read),"function"===typeof e.destroy&&(this._destroy=e.destroy)),l.call(this)}function E(e,t,n,r,i){var o,a=e._readableState;null===t?(a.reading=!1,P(e,a)):(i||(o=C(a,t)),o?e.emit("error",o):a.objectMode||t&&t.length>0?("string"===typeof t||a.objectMode||Object.getPrototypeOf(t)===c.prototype||(t=h(t)),r?a.endEmitted?e.emit("error",new Error("stream.unshift() after end event")):S(e,a,t,!0):a.ended?e.emit("error",new Error("stream.push() after EOF")):(a.reading=!1,a.decoder&&!n?(t=a.decoder.write(t),a.objectMode||0!==t.length?S(e,a,t,!1):j(e,a)):S(e,a,t,!1))):r||(a.reading=!1));return k(a)}function S(e,t,n,r){t.flowing&&0===t.length&&!t.sync?(e.emit("data",n),e.read(0)):(t.length+=t.objectMode?1:n.length,r?t.buffer.unshift(n):t.buffer.push(n),t.needReadable&&M(e)),j(e,t)}function C(e,t){var n;return f(t)||"string"===typeof t||void 0===t||e.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function k(e){return!e.ended&&(e.needReadable||e.length=O?e=O:(e--,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e++),e}function A(e,t){return e<=0||0===t.length&&t.ended?0:t.objectMode?1:e!==e?t.flowing&&t.length?t.buffer.head.data.length:t.length:(e>t.highWaterMark&&(t.highWaterMark=T(e)),e<=t.length?e:t.ended?t.length:(t.needReadable=!0,0))}function P(e,t){if(!t.ended){if(t.decoder){var n=t.decoder.end();n&&n.length&&(t.buffer.push(n),t.length+=t.objectMode?1:n.length)}t.ended=!0,M(e)}}function M(e){var t=e._readableState;t.needReadable=!1,t.emittedReadable||(m("emitReadable",t.flowing),t.emittedReadable=!0,t.sync?i.nextTick(R,e):R(e))}function R(e){m("emit readable"),e.emit("readable"),F(e)}function j(e,t){t.readingMore||(t.readingMore=!0,i.nextTick(L,e,t))}function L(e,t){var n=t.length;while(!t.reading&&!t.flowing&&!t.ended&&t.length=t.length?(n=t.decoder?t.buffer.join(""):1===t.buffer.length?t.buffer.head.data:t.buffer.concat(t.length),t.buffer.clear()):n=V(e,t.buffer,t.decoder),n);var n}function V(e,t,n){var r;return eo.length?o.length:e;if(a===o.length?i+=o:i+=o.slice(0,e),e-=a,0===e){a===o.length?(++r,n.next?t.head=n.next:t.head=t.tail=null):(t.head=n,n.data=o.slice(a));break}++r}return t.length-=r,i}function H(e,t){var n=c.allocUnsafe(e),r=t.head,i=1;r.data.copy(n),e-=r.data.length;while(r=r.next){var o=r.data,a=e>o.length?o.length:e;if(o.copy(n,n.length-e,0,a),e-=a,0===e){a===o.length?(++i,r.next?t.head=r.next:t.head=t.tail=null):(t.head=r,r.data=o.slice(a));break}++i}return t.length-=i,n}function U(e){var t=e._readableState;if(t.length>0)throw new Error('"endReadable()" called on non-empty stream');t.endEmitted||(t.ended=!0,i.nextTick(z,t,e))}function z(e,t){e.endEmitted||0!==e.length||(e.endEmitted=!0,t.readable=!1,t.emit("end"))}function q(e,t){for(var n=0,r=e.length;n=t.highWaterMark||t.ended))return m("read: emitReadable",t.length,t.ended),0===t.length&&t.ended?U(this):M(this),null;if(e=A(e,t),0===e&&t.ended)return 0===t.length&&U(this),null;var r,i=t.needReadable;return m("need readable",i),(0===t.length||t.length-e0?B(e,t):null,null===r?(t.needReadable=!0,e=0):t.length-=e,0===t.length&&(t.ended||(t.needReadable=!0),n!==e&&t.ended&&U(this)),null!==r&&this.emit("data",r),r},_.prototype._read=function(e){this.emit("error",new Error("_read() is not implemented"))},_.prototype.pipe=function(e,t){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=e;break;case 1:o.pipes=[o.pipes,e];break;default:o.pipes.push(e);break}o.pipesCount+=1,m("pipe count=%d opts=%j",o.pipesCount,t);var a=(!t||!1!==t.end)&&e!==r.stdout&&e!==r.stderr,l=a?u:x;function c(e,t){m("onunpipe"),e===n&&t&&!1===t.hasUnpiped&&(t.hasUnpiped=!0,d())}function u(){m("onend"),e.end()}o.endEmitted?i.nextTick(l):n.once("end",l),e.on("unpipe",c);var h=D(n);e.on("drain",h);var f=!1;function d(){m("cleanup"),e.removeListener("close",y),e.removeListener("finish",b),e.removeListener("drain",h),e.removeListener("error",v),e.removeListener("unpipe",c),n.removeListener("end",u),n.removeListener("end",x),n.removeListener("data",g),f=!0,!o.awaitDrain||e._writableState&&!e._writableState.needDrain||h()}var p=!1;function g(t){m("ondata"),p=!1;var r=e.write(t);!1!==r||p||((1===o.pipesCount&&o.pipes===e||o.pipesCount>1&&-1!==q(o.pipes,e))&&!f&&(m("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,p=!0),n.pause())}function v(t){m("onerror",t),x(),e.removeListener("error",v),0===s(e,"error")&&e.emit("error",t)}function y(){e.removeListener("finish",b),x()}function b(){m("onfinish"),e.removeListener("close",y),x()}function x(){m("unpipe"),n.unpipe(e)}return n.on("data",g),w(e,"error",v),e.once("close",y),e.once("finish",b),e.emit("pipe",n),o.flowing||(m("pipe resume"),n.resume()),e},_.prototype.unpipe=function(e){var t=this._readableState,n={hasUnpiped:!1};if(0===t.pipesCount)return this;if(1===t.pipesCount)return e&&e!==t.pipes?this:(e||(e=t.pipes),t.pipes=null,t.pipesCount=0,t.flowing=!1,e&&e.emit("unpipe",this,n),this);if(!e){var r=t.pipes,i=t.pipesCount;t.pipes=null,t.pipesCount=0,t.flowing=!1;for(var o=0;o=1?1:Object(r["f"])(0,a,l,1,e,u)&&Object(r["a"])(0,s,c,1,u[0])}}}},s3Ml:function(e,t,n){e.exports={default:n("JbBM"),__esModule:!0}},s4NR:function(e,t,n){"use strict";t.decode=t.parse=n("kd2E"),t.encode=t.stringify=n("4JlD")},sFYk:function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=n("d6i3"),a=n.n(o),s=n("1l/V"),l=n.n(s),c=n("q1tI"),u=n.n(c),h=n("Bl7J"),f=n("/MKj"),d=n("3a4m"),p=n.n(d),m=n("t3Un"),g=n("20nU"),v=n("IrRn"),y=n("G+eS"),b=n("k5Tp"),w=n("MJSk"),x=n("LadE"),_=n("Syqx"),E=n("/zI/"),S=n("NiBb"),C=n("TLXH"),k=n("xVpn"),O=n("l6yY");v["a"]([b["a"],w["a"],x["a"],_["a"],E["a"],S["a"],C["a"],O["a"],k["a"]]);class T extends u.a.Component{constructor(e){super(e),this.state={},this.orderChart=u.a.createRef(),this.orderChartObj=void 0,this.serverLastRankChart=u.a.createRef(),this.serverLastRankChartObj=void 0}orderChartRender(e){var t;this.orderChartObj=y["b"](null===(t=this.orderChart)||void 0===t?void 0:t.current,"vintage",{renderer:"svg"});var n={tooltip:{trigger:"axis"},legend:{data:[],left:"0",z:4},grid:{left:"1%",right:"1%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{type:"value"},series:[]};e.forEach(e=>{-1===n.legend.data.indexOf(e.type)&&n.legend.data.push(e.type),-1===n.xAxis.data.indexOf(e.date)&&n.xAxis.data.push(e.date);var t=n.series.find(t=>t.name===e.type);t?t.data.push(e.value):n.series.push({name:e.type,type:"line",smooth:!0,data:[e.value]})}),this.orderChartObj.setOption(n),window.addEventListener("resize",this.chartResize.bind(this))}serverLastRankChartRender(e){var t;this.serverLastRankChartObj=y["b"](null===(t=this.serverLastRankChart)||void 0===t?void 0:t.current);var n={tooltip:{trigger:"axis",formatter:e=>{return"".concat(e[0].value," GB")}},grid:{top:"1%",left:"1%",right:"1%",bottom:"3%",containLabel:!0},xAxis:{type:"value"},yAxis:{type:"category",data:[]},series:[{data:[],type:"bar"}]};e.reverse().forEach(e=>{n.yAxis.data.push(e.server_name),n.series[0].data.push(e.total)}),this.serverLastRankChartObj.setOption(n)}chartResize(){this.orderChartObj.resize(),this.serverLastRankChartObj.resize()}componentDidMount(){var e=this;l()(a.a.mark(function t(){return a.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,e.checkQueue();case 2:case"end":return t.stop()}},t)}))(),this.props.dispatch({type:"stat/getOverride"}),this.props.dispatch({type:"stat/getOrder",complete:e=>{this.orderChartRender(e)}}),this.props.dispatch({type:"stat/getServerLastRank",complete:e=>{this.serverLastRankChartRender(e)}}),this.props.dispatch({type:"config/fetch",key:"site"})}componentWillUnmount(){window.removeEventListener("resize",this.chartResize.bind(this))}orderFilter(){this.props.dispatch({type:"order/addFilter",key:"commission_status",condition:"=",value:0}),this.props.dispatch({type:"order/addFilter",key:"invite_user_id",condition:"!=",value:""}),p.a.push("/order")}checkQueue(){var e=this;return l()(a.a.mark(function t(){var n,r;return a.a.wrap(function(t){while(1)switch(t.prev=t.next){case 0:return n=new URL(g["a"].serviceHost),t.next=3,Object(m["a"])((null===n||void 0===n?void 0:n.origin)+"/monitor/api/stats");case 3:r=t.sent,e.setState({queueStatus:null===r||void 0===r?void 0:r.status});case 5:case"end":return t.stop()}},t)}))()}render(){var e=this.props,t=e.stat,n=e.config,r=[];return t.ticket_pending_total&&r.push(u.a.createElement("div",{className:"alert alert-danger",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u6709 ",t.ticket_pending_total," \u6761\u5de5\u5355\u7b49\u5f85\u5904\u7406 ",u.a.createElement("a",{className:"alert-link",href:"javascript:void(0)",onClick:()=>p.a.push("/ticket")},"\u7acb\u5373\u5904\u7406")))),t.commission_pending_total&&r.push(u.a.createElement("div",{className:"alert alert-danger",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u6709 ",t.commission_pending_total," \u7b14\u4f63\u91d1\u7b49\u5f85\u786e\u8ba4 ",u.a.createElement("a",{className:"alert-link",href:"javascript:void(0)",onClick:()=>p.a.push("/order")},"\u7acb\u5373\u5904\u7406")))),u.a.createElement(h["a"],i()({},this.props,{title:"\u4eea\u8868\u76d8"}),this.state.queueStatus&&"running"!==this.state.queueStatus&&u.a.createElement("div",{className:"row"},u.a.createElement("div",{className:"col-lg-12"},u.a.createElement("div",{className:"alert alert-danger",role:"alert"},u.a.createElement("p",{className:"mb-0"},"\u5f53\u524d\u961f\u5217\u670d\u52a1\u8fd0\u884c\u5f02\u5e38\uff0c\u53ef\u80fd\u4f1a\u5bfc\u81f4\u4e1a\u52a1\u65e0\u6cd5\u4f7f\u7528\u3002")))),r.map(e=>e),u.a.createElement("div",{className:"mb-0 block border-bottom js-classic-nav d-none d-sm-block"},u.a.createElement("div",{className:"block-content block-content-full"},u.a.createElement("div",{className:"row no-gutters border"},u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/config/system")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-equalizer text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u7cfb\u7edf\u8bbe\u7f6e")))),u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/order")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-list text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u8ba2\u5355\u7ba1\u7406")))),u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/plan")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-bag text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u8ba2\u9605\u7ba1\u7406")))),u.a.createElement("div",{className:"col-sm-6 col-xl-3 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("a",{className:"block block-bordered block-link-pop text-center mb-0",onClick:()=>p.a.push("/user")},u.a.createElement("div",{className:"block-content block-content-full text-center"},u.a.createElement("i",{className:"fa-2x si si-users text-primary d-none d-sm-inline-block mb-3"}),u.a.createElement("div",{className:"font-w600 text-uppercase"},"\u7528\u6237\u7ba1\u7406"))))))),u.a.createElement("div",{className:"row no-gutters"},u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0"},u.a.createElement("div",{className:"block-content"},u.a.createElement("div",{className:"px-sm-3 clearfix"},u.a.createElement("i",{className:"fa fa-chart-line fa-2x text-gray-light float-right"}),u.a.createElement("p",{className:"text-muted w-75 mb-1"},"\u4eca\u65e5\u6536\u5165"),u.a.createElement("p",{className:"display-4 text-black font-w300 mb-2"},t.day_income?(t.day_income/100).toFixed(2):"0.00",u.a.createElement("span",{className:"font-size-h5 font-w600 text-muted"},n.site.currency)))))),u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0 v2board-stats-bar",onScroll:e=>console.log(e.currentTarget.scrollLeft)},u.a.createElement("div",{className:"block-content block-content-full"},u.a.createElement("div",{class:"d-flex align-items-center"},u.a.createElement("div",{class:"pr-4 pr-sm-5 pl-0 pl-sm-3"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.month_income?(t.month_income/100).toFixed(2):"0.00"," ",n.site.currency),u.a.createElement("p",{class:"text-muted mb-0"},"\u672c\u6708\u6536\u5165")),u.a.createElement("div",{class:"px-4 px-sm-5 border-start"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.last_month_income?(t.last_month_income/100).toFixed(2):"0.00"," ",n.site.currency),u.a.createElement("p",{class:"text-muted mb-0"},"\u4e0a\u6708\u6536\u5165")),u.a.createElement("div",{class:"px-4 px-sm-5 border-start"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.commission_last_month_payout?(t.commission_last_month_payout/100).toFixed(2):"0.00"," ",n.site.currency),u.a.createElement("p",{class:"text-muted mb-0"},"\u4e0a\u6708\u4f63\u91d1\u652f\u51fa")),u.a.createElement("div",{class:"px-4 px-sm-5 border-start"},u.a.createElement("p",{class:"fs-3 text-dark mb-0"},t.month_register_total||"-"),u.a.createElement("p",{class:"text-muted mb-0"},"\u672c\u6708\u65b0\u589e\u7528\u6237")))))),u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0"},u.a.createElement("div",{className:"px-sm-3 pt-sm-3 py-3 clearfix",id:"orderChart",style:{height:400},ref:this.orderChart})))),u.a.createElement("div",{className:"row no-gutters mt-xl-3"},u.a.createElement("div",{className:"col-lg-12 js-appear-enabled animated","data-toggle":"appear"},u.a.createElement("div",{className:"block border-bottom mb-0"},u.a.createElement("div",{class:"block-header block-header-default"},u.a.createElement("h3",{class:"block-title"},"\u6628\u65e5\u8282\u70b9\u6d41\u91cf\u6392\u884c")),u.a.createElement("div",{className:"block-content"},u.a.createElement("div",{className:"px-sm-3 pt-sm-3 py-3 clearfix",id:"serverRankChart",style:{height:400},ref:this.serverLastRankChart}))))))}}t["default"]=Object(f["c"])(e=>{var t=e.stat,n=e.config;return{stat:t,config:n}})(T)},sRdV:function(e,t,n){"use strict";e.exports=function(e){var t={};t.src_Any=n("y8fO").source,t.src_Cc=n("p7ys").source,t.src_Z=n("T8I8").source,t.src_P=n("fKCf").source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");var r="[><\uff5c]";return t.src_pseudo_letter="(?:(?!"+r+"|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|"+r+"|"+t.src_ZPCc+")(?!-|_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+r+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-]).|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]).|"+(e&&e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+").|;(?!"+t.src_ZCc+").|\\!+(?!"+t.src_ZCc+"|[!]).|\\?(?!"+t.src_ZCc+"|[?]).)+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy="(^|"+r+'|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`|\uff5c]|"+t.src_ZPCc+"))((?![$+<=>^`|\uff5c])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}},sZro:function(e,t,n){"use strict";var r=n("lm0R"),i=Object.keys||function(e){var t=[];for(var n in e)t.push(n);return t};e.exports=h;var o=Object.create(n("Onz0"));o.inherits=n("P7XM");var a=n("rXFu"),s=n("3BRs");o.inherits(h,a);for(var l=i(s.prototype),c=0;c=e.length?{done:!0}:{done:!1,value:e[t++]}},e:function(e){throw e},f:n}}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 r,i,o=!0,a=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return o=e.done,e},e:function(e){a=!0,i=e},f:function(){try{o||null==r.return||r.return()}finally{if(a)throw i}}}}function f(e,t){if(e){if("string"===typeof e)return d(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(n):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1){var t=e.slice(1).split("&");if(Array.isArray(t)&&t.length>0)return t.reduce(function(e,t){var n=t.split("="),r=i(n,2),o=r[0],a=r[1];return c({},e,u({},o,a))},{})}return{}};t.getUrlQuery=m},"saJ+":function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){"function"===typeof e?e(t):"object"===r(e)&&e&&"current"in e&&(e.current=t)}function o(){for(var e=arguments.length,t=new Array(e),n=0;n0&&(i[1-o]=this.state.showTimePicker?i[o]:void 0),this.props.onInputSelect(i),this.fireSelectValueChange(i,null,n||{source:"dateInput"})}}var F=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));B.call(r);var i=n.selectedValue||n.defaultSelectedValue,o=N(n,1);return r.state={selectedValue:i,prevSelectedValue:i,firstSelectedValue:null,hoverValue:n.hoverValue||[],value:o,showTimePicker:!1,mode:n.mode||["date","date"],panelTriggerSource:""},r}return u()(t,e),t.getDerivedStateFromProps=function(e,t){var n={};return"value"in e&&(n.value=N(e,0)),"hoverValue"in e&&!L(t.hoverValue,e.hoverValue)&&(n.hoverValue=e.hoverValue),"selectedValue"in e&&(n.selectedValue=e.selectedValue,n.prevSelectedValue=e.selectedValue),"mode"in e&&!L(t.mode,e.mode)&&(n.mode=e.mode),n},t.prototype.render=function(){var e,t,n=this.props,r=this.state,o=n.prefixCls,a=n.dateInputPlaceholder,s=n.seperator,l=n.timePicker,c=n.showOk,u=n.locale,h=n.showClear,d=n.showToday,p=n.type,m=n.clearIcon,g=r.hoverValue,v=r.selectedValue,b=r.mode,w=r.showTimePicker,x=(e={},e[n.className]=!!n.className,e[o]=1,e[o+"-hidden"]=!n.visible,e[o+"-range"]=1,e[o+"-show-time-picker"]=w,e[o+"-week-number"]=n.showWeekNumber,e),_=y()(x),E={selectedValue:r.selectedValue,onSelect:this.onSelect,onDayHover:"start"===p&&v[1]||"end"===p&&v[0]||g.length?this.onDayHover:void 0},C=void 0,P=void 0;a&&(Array.isArray(a)?(C=a[0],P=a[1]):C=P=a);var M=!0===c||!1!==c&&!!l,R=y()((t={},t[o+"-footer"]=!0,t[o+"-range-bottom"]=!0,t[o+"-footer-show-ok"]=M,t)),j=this.getStartValue(),L=this.getEndValue(),D=Object(S["e"])(j),N=D.month(),I=D.year(),$=j.year()===I&&j.month()===N||L.year()===I&&L.month()===N,F=j.clone().add(1,"months"),B=F.year()===L.year()&&F.month()===L.month(),V=n.renderFooter();return f.a.createElement("div",{ref:this.saveRoot,className:_,style:n.style,tabIndex:"0",onKeyDown:this.onKeyDown},n.renderSidebar(),f.a.createElement("div",{className:o+"-panel"},h&&v[0]&&v[1]?f.a.createElement("a",{role:"button",title:u.clear,onClick:this.clear},m||f.a.createElement("span",{className:o+"-clear-btn"})):null,f.a.createElement("div",{className:o+"-date-panel",onMouseLeave:"both"!==p?this.onDatePanelLeave:void 0,onMouseEnter:"both"!==p?this.onDatePanelEnter:void 0},f.a.createElement(k,i()({},n,E,{hoverValue:g,direction:"left",disabledTime:this.disabledStartTime,disabledMonth:this.disabledStartMonth,format:this.getFormat(),value:j,mode:b[0],placeholder:C,onInputChange:this.onStartInputChange,onInputSelect:this.onStartInputSelect,onValueChange:this.onStartValueChange,onPanelChange:this.onStartPanelChange,showDateInput:this.props.showDateInput,timePicker:l,showTimePicker:w||"time"===b[0],enablePrev:!0,enableNext:!B||this.isMonthYearPanelShow(b[1]),clearIcon:m})),f.a.createElement("span",{className:o+"-range-middle"},s),f.a.createElement(k,i()({},n,E,{hoverValue:g,direction:"right",format:this.getFormat(),timePickerDisabledTime:this.getEndDisableTime(),placeholder:P,value:L,mode:b[1],onInputChange:this.onEndInputChange,onInputSelect:this.onEndInputSelect,onValueChange:this.onEndValueChange,onPanelChange:this.onEndPanelChange,showDateInput:this.props.showDateInput,timePicker:l,showTimePicker:w||"time"===b[1],disabledTime:this.disabledEndTime,disabledMonth:this.disabledEndMonth,enablePrev:!B||this.isMonthYearPanelShow(b[0]),enableNext:!0,clearIcon:m}))),f.a.createElement("div",{className:R},d||n.timePicker||M||V?f.a.createElement("div",{className:o+"-footer-btn"},V,d?f.a.createElement(O["a"],i()({},n,{disabled:$,value:r.value[0],onToday:this.onToday,text:u.backToToday})):null,n.timePicker?f.a.createElement(A["a"],i()({},n,{showTimePicker:w||"time"===b[0]&&"time"===b[1],onOpenTimePicker:this.onOpenTimePicker,onCloseTimePicker:this.onCloseTimePicker,timePickerDisabled:!this.hasSelectedValue()||g.length})):null,M?f.a.createElement(T["a"],i()({},n,{onOk:this.onOk,okDisabled:!this.isAllowedDateAndTime(v)||!this.hasSelectedValue()||g.length})):null):null)))},t}(f.a.Component);F.propTypes=i()({},P["c"],{prefixCls:p.a.string,dateInputPlaceholder:p.a.any,seperator:p.a.string,defaultValue:p.a.any,value:p.a.any,hoverValue:p.a.any,mode:p.a.arrayOf(p.a.oneOf(["time","date","month","year","decade"])),showDateInput:p.a.bool,timePicker:p.a.any,showOk:p.a.bool,showToday:p.a.bool,defaultSelectedValue:p.a.array,selectedValue:p.a.array,onOk:p.a.func,showClear:p.a.bool,locale:p.a.object,onChange:p.a.func,onSelect:p.a.func,onValueChange:p.a.func,onHoverChange:p.a.func,onPanelChange:p.a.func,format:p.a.oneOfType([p.a.string,p.a.arrayOf(p.a.string)]),onClear:p.a.func,type:p.a.any,disabledDate:p.a.func,disabledTime:p.a.func,clearIcon:p.a.node,onKeyDown:p.a.func}),F.defaultProps=i()({},P["b"],{type:"both",seperator:"~",defaultSelectedValue:[],onValueChange:R,onHoverChange:R,onPanelChange:R,disabledTime:R,onInputSelect:R,showToday:!0,showDateInput:!0});var B=function(){var e=this;this.onDatePanelEnter=function(){e.hasSelectedValue()&&e.fireHoverValueChange(e.state.selectedValue.concat())},this.onDatePanelLeave=function(){e.hasSelectedValue()&&e.fireHoverValueChange([])},this.onSelect=function(t){var n=e.props.type,r=e.state,i=r.selectedValue,o=r.prevSelectedValue,a=r.firstSelectedValue,s=void 0;if("both"===n)a?e.compare(a,t)<0?(Object(S["h"])(o[1],t),s=[a,t]):(Object(S["h"])(o[0],t),Object(S["h"])(o[1],a),s=[t,a]):(Object(S["h"])(o[0],t),s=[t]);else if("start"===n){Object(S["h"])(o[0],t);var l=i[1];s=l&&e.compare(l,t)>0?[t,l]:[t]}else{var c=i[0];c&&e.compare(c,t)<=0?(Object(S["h"])(o[1],t),s=[c,t]):(Object(S["h"])(o[0],t),s=[t])}e.fireSelectValueChange(s)},this.onKeyDown=function(t){if("input"!==t.target.nodeName.toLowerCase()){var n=t.keyCode,r=t.ctrlKey||t.metaKey,i=e.state,o=i.selectedValue,a=i.hoverValue,s=i.firstSelectedValue,l=i.value,c=e.props,u=c.onKeyDown,h=c.disabledDate,f=function(n){var r=void 0,i=void 0,c=void 0;if(s?1===a.length?(r=a[0].clone(),i=n(r),c=e.onDayHover(i)):(r=a[0].isSame(s,"day")?a[1]:a[0],i=n(r),c=e.onDayHover(i)):(r=a[0]||o[0]||l[0]||g()(),i=n(r),c=[i],e.fireHoverValueChange(c)),c.length>=2){var u=c.some(function(e){return!Object(M["d"])(l,e,"month")});if(u){var h=c.slice().sort(function(e,t){return e.valueOf()-t.valueOf()});h[0].isSame(h[1],"month")&&(h[1]=h[0].clone().add(1,"month")),e.fireValueChange(h)}}else if(1===c.length){var f=l.findIndex(function(e){return e.isSame(r,"month")});if(-1===f&&(f=0),l.every(function(e){return!e.isSame(i,"month")})){var d=l.slice();d[f]=i.clone(),e.fireValueChange(d)}}return t.preventDefault(),i};switch(n){case w["a"].DOWN:return void f(function(e){return Object(M["c"])(e,1,"weeks")});case w["a"].UP:return void f(function(e){return Object(M["c"])(e,-1,"weeks")});case w["a"].LEFT:return void f(r?function(e){return Object(M["c"])(e,-1,"years")}:function(e){return Object(M["c"])(e,-1,"days")});case w["a"].RIGHT:return void f(r?function(e){return Object(M["c"])(e,1,"years")}:function(e){return Object(M["c"])(e,1,"days")});case w["a"].HOME:return void f(function(e){return Object(M["b"])(e)});case w["a"].END:return void f(function(e){return Object(M["a"])(e)});case w["a"].PAGE_DOWN:return void f(function(e){return Object(M["c"])(e,1,"month")});case w["a"].PAGE_UP:return void f(function(e){return Object(M["c"])(e,-1,"month")});case w["a"].ENTER:var d=void 0;return d=0===a.length?f(function(e){return e}):1===a.length?a[0]:a[0].isSame(s,"day")?a[1]:a[0],!d||h&&h(d)||e.onSelect(d),void t.preventDefault();default:u&&u(t)}}},this.onDayHover=function(t){var n=[],r=e.state,i=r.selectedValue,o=r.firstSelectedValue,a=e.props.type;if("start"===a&&i[1])n=e.compare(t,i[1])<0?[t,i[1]]:[t];else if("end"===a&&i[0])n=e.compare(t,i[0])>0?[i[0],t]:[];else{if(!o)return e.state.hoverValue.length&&e.setState({hoverValue:[]}),n;n=e.compare(t,o)<0?[t,o]:[o,t]}return e.fireHoverValueChange(n),n},this.onToday=function(){var t=Object(S["e"])(e.state.value[0]),n=t.clone().add(1,"months");e.setState({value:[t,n]})},this.onOpenTimePicker=function(){e.setState({showTimePicker:!0})},this.onCloseTimePicker=function(){e.setState({showTimePicker:!1})},this.onOk=function(){var t=e.state.selectedValue;e.isAllowedDateAndTime(t)&&e.props.onOk(e.state.selectedValue)},this.onStartInputChange=function(){for(var t=arguments.length,n=Array(t),r=0;r-1},this.hasSelectedValue=function(){var t=e.state.selectedValue;return!!t[1]&&!!t[0]},this.compare=function(t,n){return e.props.timePicker?t.diff(n):t.diff(n,"days")},this.fireSelectValueChange=function(t,n,r){var i=e.props.timePicker,o=e.state.prevSelectedValue;if(i&&i.props.defaultValue){var a=i.props.defaultValue;!o[0]&&t[0]&&Object(S["h"])(a[0],t[0]),!o[1]&&t[1]&&Object(S["h"])(a[1],t[1])}if("selectedValue"in e.props||e.setState({selectedValue:t}),!e.state.selectedValue[0]||!e.state.selectedValue[1]){var s=t[0]||g()(),l=t[1]||s.clone().add(1,"months");e.setState({selectedValue:t,value:D([s,l])})}t[0]&&!t[1]&&(e.setState({firstSelectedValue:t[0]}),e.fireHoverValueChange(t.concat())),e.props.onChange(t),(n||t[0]&&t[1])&&(e.setState({prevSelectedValue:t,firstSelectedValue:null}),e.fireHoverValueChange([]),e.props.onSelect(t,r))},this.fireValueChange=function(t){var n=e.props;"value"in n||e.setState({value:t}),n.onValueChange(t)},this.fireHoverValueChange=function(t){var n=e.props;"hoverValue"in n||e.setState({hoverValue:t}),n.onHoverChange(t)},this.clear=function(){e.fireSelectValueChange([],!0),e.props.onClear()},this.disabledStartTime=function(t){return e.props.disabledTime(t,"start")},this.disabledEndTime=function(t){return e.props.disabledTime(t,"end")},this.disabledStartMonth=function(t){var n=e.state.value;return t.isAfter(n[1],"month")},this.disabledEndMonth=function(t){var n=e.state.value;return t.isBefore(n[0],"month")}};Object(b["polyfill"])(F);t["a"]=Object(P["a"])(F)},t23M:function(e,t,n){"use strict";function r(e){return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n1)v.default(!1,"Find more than one child node with `children` in ResizeObserver. Will only observe first one.");else if(0===t.length)return v.default(!1,"`children` of ResizeObserver is empty. Nothing is in observe."),null;var n=t[0];if(p.isValidElement(n)&&w.supportRef(n)){var r=n.ref;t[0]=p.cloneElement(n,{ref:y.composeRef(r,this.setChildNode)})}return 1===t.length?t[0]:t.map(function(e,t){return!p.isValidElement(e)||"key"in e&&null!==e.key?e:p.cloneElement(e,{key:"".concat(x,"-").concat(t)})})}}]),t}(p.Component);_.displayName="ResizeObserver",t.default=_},t3Un:function(e,t,n){"use strict";n.d(t,"b",function(){return y}),n.d(t,"a",function(){return b});var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=(n("/xke"),n("TeRw")),l=n("1l/V"),c=n.n(l),u=n("Hg0r"),h=n("20nU"),f=n("yWgo"),d=h["a"].serviceHost;function p(e,t){return m.apply(this,arguments)}function m(){return m=c()(i.a.mark(function e(t,n){var r,o,l;return i.a.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return r=Object(f["c"])(),n=n||{},n.headers=n.headers||{},n.credentials="include",r&&(n.headers.authorization=r),-1!==t.indexOf("http")?t+=t.indexOf("?")>0?"&":"?":t=d+t,e.next=8,Object(u["b"])(t,n);case 8:if(o=e.sent,l={},"application/json"!==o.headers.get("content-type")){e.next=16;break}return e.next=13,o.json();case 13:l=e.sent,e.next=20;break;case 16:return e.next=18,o.arrayBuffer();case 18:e.t0=e.sent,l={buffer:e.t0};case 20:if(403!==o.status){e.next=24;break}return Object(f["g"])(),window.location.href=window.location.origin+window.location.pathname,e.abrupt("return",{code:o.status,msg:l.message});case 24:if(200===o.status){e.next=30;break}if(!l.errors){e.next=28;break}return s["a"].error({message:"\u8bf7\u6c42\u5931\u8d25",description:Object.values(l.errors)[0][0],duration:1.5}),e.abrupt("return",{code:o.status,msg:Object.values(l.errors)[0][0]});case 28:return s["a"].error({message:"\u8bf7\u6c42\u5931\u8d25",description:l.message,duration:1.5}),e.abrupt("return",{code:o.status,msg:l.message});case 30:return e.abrupt("return",a()({code:o.status},l));case 31:case"end":return e.stop()}},e)})),m.apply(this,arguments)}var g=(e,t,n)=>{if(null!==t){if("undefined"!==typeof t)if("object"===typeof t)for(var r in t)g(e+"["+r+"]",t[r],n);else n.push("".concat(e,"=").concat(encodeURIComponent(t)))}else n.push("".concat(e,"="))};function v(e){if(!e)return"";if("object"===typeof e&&!(e instanceof Array)){var t=[];for(var n in e)g(n,e[n],t);return t.join("&")}return""}function y(e,t){return p(e,{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:v(t)})}function b(e,t){var n=v(t);return p(n?e+(e.indexOf("?")>0?"&":"?")+n:e,null)}},t9FE:function(e,t,n){(function(t){function n(e,t){if(r("noDeprecation"))return e;var n=!1;function i(){if(!n){if(r("throwDeprecation"))throw new Error(t);r("traceDeprecation")?console.trace(t):console.warn(t),n=!0}return e.apply(this,arguments)}return i}function r(e){try{if(!t.localStorage)return!1}catch(e){return!1}var n=t.localStorage[e];return null!=n&&"true"===String(n).toLowerCase()}e.exports=n}).call(this,n("yLpj"))},tEej:function(e,t,n){var r=n("Ojgd"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},tGd3:function(e,t,n){var r=n("7vYJ"),i=n("u8+u"),o=n("+mmm");e.exports=function(e,t){if(r(e),i(t)&&t.constructor===e)return t;var n=o.f(e),a=n.resolve;return a(t),n.promise}},tI4l:function(e,t,n){"use strict";t["a"]={i18nText:{"zh-CN":"\u7b80\u4f53\u4e2d\u6587","zh-TW":"\u7e41\u9ad4\u4e2d\u6587","en-US":"English","ja-JP":"\u65e5\u672c\u8a9e","vi-VN":"Ti\u1ebfng Vi\u1ec7t","ko-KR":"\ud55c\uad6d\uc5b4"},periodText:{month_price:"\u6708\u4ed8",quarter_price:"\u5b63\u4ed8",half_year_price:"\u534a\u5e74\u4ed8",year_price:"\u5e74\u4ed8",two_year_price:"\u4e24\u5e74\u4ed8",three_year_price:"\u4e09\u5e74\u4ed8",onetime_price:"\u4e00\u6b21\u6027",reset_price:"\u6d41\u91cf\u91cd\u7f6e\u5305"},tutorialCategoryText:{1:"Windows",2:"macOS",3:"iOS",4:"Android",5:"Linux",6:"\u8def\u7531\u5668"},tutorialCategoryIcon:{1:"fab fa-2x fa-windows",2:"fab fa-2x fa-apple",3:"fab fa-2x fa-apple",4:"fab fa-2x fa-android",5:"fab fa-2x fa-linux",6:"fa fa-2x fa-wifi"},orderStatusText:{0:"\u5f85\u652f\u4ed8",1:"\u5f00\u901a\u4e2d",2:"\u5df2\u53d6\u6d88",3:"\u5df2\u5b8c\u6210",4:"\u5df2\u6298\u62b5"},commissionStatusText:{0:"\u5f85\u786e\u8ba4",1:"\u53d1\u653e\u4e2d",2:"\u5df2\u53d1\u653e",3:"\u5df2\u9a73\u56de"},ticketStatusText:{0:"\u5f00\u542f",1:"\u5f85\u56de\u590d",2:"\u5f85\u7b54\u590d",3:"\u5173\u95ed"}}},tRgb:function(e,t,n){"use strict";var r=n("AU/w");function i(e){return s(e)||a(e)||o()}function o(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function a(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function s(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function b(e){return+e!=e&&(e=0),c.alloc(+e)}function w(e,t){if(c.isBuffer(e))return e.length;if("undefined"!==typeof ArrayBuffer&&"function"===typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!==typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var r=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return X(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return J(e).length;default:if(r)return X(e).length;t=(""+t).toLowerCase(),r=!0}}function x(e,t,n){var r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,t>>>=0,n<=t)return"";e||(e="utf8");while(1)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return R(this,t,n);case"ascii":return D(this,t,n);case"latin1":case"binary":return N(this,t,n);case"base64":return M(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return $(this,t,n);default:if(r)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),r=!0}}function _(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function E(e,t,n,r,i){if(0===e.length)return-1;if("string"===typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(i)return-1;n=e.length-1}else if(n<0){if(!i)return-1;n=0}if("string"===typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:S(e,t,n,r,i);if("number"===typeof t)return t&=255,c.TYPED_ARRAY_SUPPORT&&"function"===typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):S(e,[t],n,r,i);throw new TypeError("val must be string, number or Buffer")}function S(e,t,n,r,i){var o,a=1,s=e.length,l=t.length;if(void 0!==r&&(r=String(r).toLowerCase(),"ucs2"===r||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(e.length<2||t.length<2)return-1;a=2,s/=2,l/=2,n/=2}function c(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(i){var u=-1;for(o=n;os&&(n=s-l),o=n;o>=0;o--){for(var h=!0,f=0;fi&&(r=i)):r=i;var o=t.length;if(o%2!==0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a239?4:c>223?3:c>191?2:1;if(i+h<=n)switch(h){case 1:c<128&&(u=c);break;case 2:o=e[i+1],128===(192&o)&&(l=(31&c)<<6|63&o,l>127&&(u=l));break;case 3:o=e[i+1],a=e[i+2],128===(192&o)&&128===(192&a)&&(l=(15&c)<<12|(63&o)<<6|63&a,l>2047&&(l<55296||l>57343)&&(u=l));break;case 4:o=e[i+1],a=e[i+2],s=e[i+3],128===(192&o)&&128===(192&a)&&128===(192&s)&&(l=(15&c)<<18|(63&o)<<12|(63&a)<<6|63&s,l>65535&&l<1114112&&(u=l))}null===u?(u=65533,h=1):u>65535&&(u-=65536,r.push(u>>>10&1023|55296),u=56320|1023&u),r.push(u),i+=h}return L(r)}t.Buffer=c,t.SlowBuffer=b,t.INSPECT_MAX_BYTES=50,c.TYPED_ARRAY_SUPPORT=void 0!==e.TYPED_ARRAY_SUPPORT?e.TYPED_ARRAY_SUPPORT:a(),t.kMaxLength=s(),c.poolSize=8192,c._augment=function(e){return e.__proto__=c.prototype,e},c.from=function(e,t,n){return u(null,e,t,n)},c.TYPED_ARRAY_SUPPORT&&(c.prototype.__proto__=Uint8Array.prototype,c.__proto__=Uint8Array,"undefined"!==typeof Symbol&&Symbol.species&&c[Symbol.species]===c&&Object.defineProperty(c,Symbol.species,{value:null,configurable:!0})),c.alloc=function(e,t,n){return f(null,e,t,n)},c.allocUnsafe=function(e){return d(null,e)},c.allocUnsafeSlow=function(e){return d(null,e)},c.isBuffer=function(e){return!(null==e||!e._isBuffer)},c.compare=function(e,t){if(!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,r=t.length,i=0,o=Math.min(n,r);i0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),""},c.prototype.compare=function(e,t,n,r,i){if(!c.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),t<0||n>e.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&t>=n)return 0;if(r>=i)return-1;if(t>=n)return 1;if(t>>>=0,n>>>=0,r>>>=0,i>>>=0,this===e)return 0;for(var o=i-r,a=n-t,s=Math.min(o,a),l=this.slice(r,i),u=e.slice(t,n),h=0;hi)&&(n=i),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return C(this,e,t,n);case"utf8":case"utf-8":return k(this,e,t,n);case"ascii":return O(this,e,t,n);case"latin1":case"binary":return T(this,e,t,n);case"base64":return A(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,e,t,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var j=4096;function L(e){var t=e.length;if(t<=j)return String.fromCharCode.apply(String,e);var n="",r=0;while(rr)&&(n=r);for(var i="",o=t;on)throw new RangeError("Trying to access beyond buffer length")}function B(e,t,n,r,i,o){if(!c.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>i||te.length)throw new RangeError("Index out of range")}function V(e,t,n,r){t<0&&(t=65535+t+1);for(var i=0,o=Math.min(e.length-n,2);i>>8*(r?i:1-i)}function W(e,t,n,r){t<0&&(t=4294967295+t+1);for(var i=0,o=Math.min(e.length-n,4);i>>8*(r?i:3-i)&255}function H(e,t,n,r,i,o){if(n+r>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(e,t,n,r,o){return o||H(e,t,n,4,3.4028234663852886e38,-3.4028234663852886e38),i.write(e,t,n,r,23,4),n+4}function z(e,t,n,r,o){return o||H(e,t,n,8,1.7976931348623157e308,-1.7976931348623157e308),i.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){var n,r=this.length;if(e=~~e,t=void 0===t?r:~~t,e<0?(e+=r,e<0&&(e=0)):e>r&&(e=r),t<0?(t+=r,t<0&&(t=0)):t>r&&(t=r),t0&&(i*=256))r+=this[e+--t]*i;return r},c.prototype.readUInt8=function(e,t){return t||F(e,1,this.length),this[e]},c.prototype.readUInt16LE=function(e,t){return t||F(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUInt16BE=function(e,t){return t||F(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUInt32LE=function(e,t){return t||F(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUInt32BE=function(e,t){return t||F(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=this[e],i=1,o=0;while(++o=i&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||F(e,t,this.length);var r=t,i=1,o=this[e+--r];while(r>0&&(i*=256))o+=this[e+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*t)),o},c.prototype.readInt8=function(e,t){return t||F(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){t||F(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){t||F(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return t||F(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return t||F(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readFloatLE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return t||F(e,4,this.length),i.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return t||F(e,8,this.length),i.read(this,e,!1,52,8)},c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t|=0,n|=0,!r){var i=Math.pow(2,8*n)-1;B(this,e,t,n,i,0)}var o=1,a=0;this[t]=255&e;while(++a=0&&(a*=256))this[t+o]=e/a&255;return t+n},c.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,255,0),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):W(this,e,t,!0),t+4},c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=0,a=1,s=0;this[t]=255&e;while(++o>0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t|=0,!r){var i=Math.pow(2,8*n-1);B(this,e,t,n,i-1,-i)}var o=n-1,a=1,s=0;this[t+o]=255&e;while(--o>=0&&(a*=256))e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/a>>0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,1,127,-128),c.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):V(this,e,t,!0),t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):V(this,e,t,!1),t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):W(this,e,t,!0),t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||B(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),c.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):W(this,e,t,!1),t+4},c.prototype.writeFloatLE=function(e,t,n){return U(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return U(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),e.length-t=0;--i)e[i+t]=this[i+n];else if(o<1e3||!c.TYPED_ARRAY_SUPPORT)for(i=0;i>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"===typeof e)for(o=t;o55295&&n<57344){if(!i){if(n>56319){(t-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(t-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(t-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(t-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((t-=1)<0)break;o.push(n)}else if(n<2048){if((t-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function Q(e){for(var t=[],n=0;n>8,i=n%256,o.push(i),o.push(r)}return o}function J(e){return r.toByteArray(K(e))}function ee(e,t,n,r){for(var i=0;i=t.length||i>=e.length)break;t[i+n]=e[i]}return i}function te(e){return e!==e}}).call(this,n("yLpj"))},u2w5:function(e,t,n){"use strict";n("W3Xk")("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},u4tm:function(e,t,n){"use strict";n.r(t);var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("/MKj"),l=n("CxXe"),c=n("AU/w");function u(e){return u="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}var h=function(e){var t=e.getIn,n=e.toJS,r=function(e){return null!=e&&"object"===u(e)&&t(e,["location"])&&t(e,["action"])},i=function(e){var i=n(t(e,["router"]));if(!r(i))throw'Could not find router reducer in state tree, it must be mounted under "router"';return i},o=function(e){return n(t(i(e),["location"]))},a=function(e){return n(t(i(e),["action"]))},s=function(e){return n(t(i(e),["location","search"]))},c=function(e){return n(t(i(e),["location","hash"]))},h=function(e){var t=null,n=null;return function(r){var i=o(r)||{},a=i.pathname;if(a===t)return n;t=a;var s=Object(l["j"])(a,e);return s&&n&&s.url===n.url||(n=s),n}};return{getLocation:o,getAction:a,getRouter:i,getSearch:s,getHash:c,createMatchSelector:h}},f=h;function d(e){return d="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},d(e)}function p(){return p=Object.assign||function(e){for(var t=1;t2&&void 0!==arguments[2]&&arguments[2];r.inTimeTravelling?r.inTimeTravelling=!1:a(e,t,n)};return r.unlisten=o.listen(s),s(o.location,o.action,!0),r}return x(t,e),v(t,[{key:"componentWillUnmount",value:function(){this.unlisten(),this.unsubscribe()}},{key:"render",value:function(){var e=this.props,t=e.history,n=e.children;return i.a.createElement(l["e"],{history:t},n)}}]),t}(r["PureComponent"]);o.propTypes={store:a.a.shape({getState:a.a.func.isRequired,subscribe:a.a.func.isRequired}).isRequired,history:a.a.shape({action:a.a.string.isRequired,listen:a.a.func.isRequired,location:a.a.object.isRequired,push:a.a.func.isRequired}).isRequired,basename:a.a.string,children:a.a.oneOfType([a.a.func,a.a.node]),onLocationChanged:a.a.func.isRequired};var u=function(e){return{onLocationChanged:function(t,n,r){return e(Object(c["f"])(t,n,r))}}},h=function(e){var t=e.context||s["b"];if(null==t)throw"Please upgrade to react-redux v6";return i.a.createElement(t.Consumer,null,function(t){var n=t.store;return i.a.createElement(o,p({store:n},e))})};return h.propTypes={context:a.a.object},Object(s["c"])(null,u)(h)},S=E,C=function(e){var t=e.fromJS,n=e.merge,r=function(e){var r=t({location:e.location,action:e.action});return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=i.type,a=i.payload;if(o===c["b"]){var s=a.location,l=a.action,u=a.isFirstRendering;return u?e:n(e,{location:t(s),action:l})}return e}};return r},k=C,O=function(e,t){if(!e)return e;var n=t.length;if(n){for(var r=e,i=0;i=0&&n.left>=0&&n.bottom>n.top&&n.right>n.left?n:null}function Ne(e,t,n,r){var i=Pe.clone(e),o={width:t.width,height:t.height};return r.adjustX&&i.left=n.left&&i.left+o.width>n.right&&(o.width-=i.left+o.width-n.right),r.adjustX&&i.left+o.width>n.right&&(i.left=Math.max(n.right-o.width,n.left)),r.adjustY&&i.top=n.top&&i.top+o.height>n.bottom&&(o.height-=i.top+o.height-n.bottom),r.adjustY&&i.top+o.height>n.bottom&&(i.top=Math.max(n.bottom-o.height,n.top)),Pe.mix(i,o)}function Ie(e){var t,n,r;if(Pe.isWindow(e)||9===e.nodeType){var i=Pe.getWindow(e);t={left:Pe.getWindowScrollLeft(i),top:Pe.getWindowScrollTop(i)},n=Pe.viewportWidth(i),r=Pe.viewportHeight(i)}else t=Pe.offset(e),n=Pe.outerWidth(e),r=Pe.outerHeight(e);return t.width=n,t.height=r,t}function $e(e,t){var n=t.charAt(0),r=t.charAt(1),i=e.width,o=e.height,a=e.left,s=e.top;return"c"===n?s+=o/2:"b"===n&&(s+=o),"c"===r?a+=i/2:"r"===r&&(a+=i),{left:a,top:s}}function Fe(e,t,n,r,i){var o=$e(t,n[1]),a=$e(e,n[0]),s=[a.left-o.left,a.top-o.top];return{left:Math.round(e.left-s[0]+r[0]-i[0]),top:Math.round(e.top-s[1]+r[1]-i[1])}}function Be(e,t,n){return e.leftn.right}function Ve(e,t,n){return e.topn.bottom}function We(e,t,n){return e.left>n.right||e.left+t.widthn.bottom||e.top+t.height=n.right||r.top>=n.bottom}function Xe(e,t,n){var r=n.target||t,i=Ie(r),o=!Ye(r,n.overflow&&n.overflow.alwaysByViewport);return Ge(e,i,n,o)}function Qe(e,t,n){var r,i,o=Pe.getDocument(e),a=o.defaultView||o.parentWindow,s=Pe.getWindowScrollLeft(a),l=Pe.getWindowScrollTop(a),c=Pe.viewportWidth(a),u=Pe.viewportHeight(a);r="pageX"in t?t.pageX:s+t.clientX,i="pageY"in t?t.pageY:l+t.clientY;var h={left:r,top:i,width:0,height:0},f=r>=0&&r<=s+c&&i>=0&&i<=l+u,d=[n.points[0],"cc"];return Ge(e,h,R(R({},n),{},{points:d}),f)}Xe.__getOffsetParent=Re,Xe.__getVisibleRectForElement=De;function Ze(e,t){var n=void 0;function r(){n&&(clearTimeout(n),n=null)}function i(){r(),n=setTimeout(e,t)}return i.clear=r,i}function Je(e,t){return e===t||!(!e||!t)&&("pageX"in t&&"pageY"in t?e.pageX===t.pageX&&e.pageY===t.pageY:"clientX"in t&&"clientY"in t&&(e.clientX===t.clientX&&e.clientY===t.clientY))}function et(e){return e&&"object"===typeof e&&e.window===e}function tt(e,t){var n=Math.floor(e),r=Math.floor(t);return Math.abs(n-r)<=1}function nt(e,t){e!==document.activeElement&&Object(y["a"])(t,e)&&e.focus()}function rt(e){return"function"===typeof e&&e?e():null}function it(e){return"object"===typeof e&&e?e:null}var ot=function(e){function t(){var e,n,r,i;a()(this,t);for(var o=arguments.length,s=Array(o),c=0;c1?(!n&&t&&(r.className+=" "+t),f.a.createElement("div",r)):f.a.Children.only(r.children)},t}(h["Component"]);ht.propTypes={children:p.a.any,className:p.a.string,visible:p.a.bool,hiddenClassName:p.a.string};var ft=ht,dt=function(e){function t(){return a()(this,t),l()(this,e.apply(this,arguments))}return u()(t,e),t.prototype.render=function(){var e=this.props,t=e.className;return e.visible||(t+=" "+e.hiddenClassName),f.a.createElement("div",{className:t,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onMouseDown:e.onMouseDown,onTouchStart:e.onTouchStart,style:e.style},f.a.createElement(ft,{className:e.prefixCls+"-content",visible:e.visible},e.children))},t}(h["Component"]);dt.propTypes={hiddenClassName:p.a.string,className:p.a.string,prefixCls:p.a.string,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseDown:p.a.func,onTouchStart:p.a.func,children:p.a.any};var pt=dt,mt=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));return gt.call(r),r.state={stretchChecked:!1,targetWidth:void 0,targetHeight:void 0},r.savePopupRef=O.bind(r,"popupInstance"),r.saveAlignRef=O.bind(r,"alignInstance"),r}return u()(t,e),t.prototype.componentDidMount=function(){this.rootNode=this.getPopupDomNode(),this.setStretchSize()},t.prototype.componentDidUpdate=function(){this.setStretchSize()},t.prototype.getPopupDomNode=function(){return g.a.findDOMNode(this.popupInstance)},t.prototype.getMaskTransitionName=function(){var e=this.props,t=e.maskTransitionName,n=e.maskAnimation;return!t&&n&&(t=e.prefixCls+"-"+n),t},t.prototype.getTransitionName=function(){var e=this.props,t=e.transitionName;return!t&&e.animation&&(t=e.prefixCls+"-"+e.animation),t},t.prototype.getClassName=function(e){return this.props.prefixCls+" "+this.props.className+" "+e},t.prototype.getPopupElement=function(){var e=this,t=this.savePopupRef,n=this.state,r=n.stretchChecked,o=n.targetHeight,a=n.targetWidth,s=this.props,l=s.align,c=s.visible,u=s.prefixCls,h=s.style,d=s.getClassNameFromAlign,p=s.destroyPopupOnHide,m=s.stretch,g=s.children,v=s.onMouseEnter,y=s.onMouseLeave,b=s.onMouseDown,w=s.onTouchStart,x=this.getClassName(this.currentAlignClassName||d(l)),_=u+"-hidden";c||(this.currentAlignClassName=null);var E={};m&&(-1!==m.indexOf("height")?E.height=o:-1!==m.indexOf("minHeight")&&(E.minHeight=o),-1!==m.indexOf("width")?E.width=a:-1!==m.indexOf("minWidth")&&(E.minWidth=a),r||(E.visibility="hidden",setTimeout(function(){e.alignInstance&&e.alignInstance.forceAlign()},0)));var S=i()({},E,h,this.getZIndexStyle()),C={className:x,prefixCls:u,ref:t,onMouseEnter:v,onMouseLeave:y,onMouseDown:b,onTouchStart:w,style:S};return p?f.a.createElement(lt["a"],{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName()},c?f.a.createElement(st,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,align:l,onAlign:this.onAlign},f.a.createElement(pt,i()({visible:!0},C),g)):null):f.a.createElement(lt["a"],{component:"",exclusive:!0,transitionAppear:!0,transitionName:this.getTransitionName(),showProp:"xVisible"},f.a.createElement(st,{target:this.getAlignTarget(),key:"popup",ref:this.saveAlignRef,monitorWindowResize:!0,xVisible:c,childrenProps:{visible:"xVisible"},disabled:!c,align:l,onAlign:this.onAlign},f.a.createElement(pt,i()({hiddenClassName:_},C),g)))},t.prototype.getZIndexStyle=function(){var e={},t=this.props;return void 0!==t.zIndex&&(e.zIndex=t.zIndex),e},t.prototype.getMaskElement=function(){var e=this.props,t=void 0;if(e.mask){var n=this.getMaskTransitionName();t=f.a.createElement(ft,{style:this.getZIndexStyle(),key:"mask",className:e.prefixCls+"-mask",hiddenClassName:e.prefixCls+"-mask-hidden",visible:e.visible}),n&&(t=f.a.createElement(lt["a"],{key:"mask",showProp:"visible",transitionAppear:!0,component:"",transitionName:n},t))}return t},t.prototype.render=function(){return f.a.createElement("div",null,this.getMaskElement(),this.getPopupElement())},t}(h["Component"]);mt.propTypes={visible:p.a.bool,style:p.a.object,getClassNameFromAlign:p.a.func,onAlign:p.a.func,getRootDomNode:p.a.func,align:p.a.any,destroyPopupOnHide:p.a.bool,className:p.a.string,prefixCls:p.a.string,onMouseEnter:p.a.func,onMouseLeave:p.a.func,onMouseDown:p.a.func,onTouchStart:p.a.func,stretch:p.a.string,children:p.a.node,point:p.a.shape({pageX:p.a.number,pageY:p.a.number})};var gt=function(){var e=this;this.onAlign=function(t,n){var r=e.props,i=r.getClassNameFromAlign(n);e.currentAlignClassName!==i&&(e.currentAlignClassName=i,t.className=e.getClassName(i)),r.onAlign(t,n)},this.setStretchSize=function(){var t=e.props,n=t.stretch,r=t.getRootDomNode,i=t.visible,o=e.state,a=o.stretchChecked,s=o.targetHeight,l=o.targetWidth;if(n&&i){var c=r();if(c){var u=c.offsetHeight,h=c.offsetWidth;s===u&&l===h&&a||e.setState({stretchChecked:!0,targetHeight:u,targetWidth:h})}}else a&&e.setState({stretchChecked:!1})},this.getTargetElement=function(){return e.props.getRootDomNode()},this.getAlignTarget=function(){var t=e.props.point;return t||e.getTargetElement}},vt=mt;function yt(){}function bt(){return""}function wt(){return window.document}var xt=["onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur","onContextMenu"],_t=!!m["createPortal"],Et={rcTrigger:p.a.shape({onPopupMouseDown:p.a.func})},St=function(e){function t(n){a()(this,t);var r=l()(this,e.call(this,n));Ct.call(r);var i=void 0;return i="popupVisible"in n?!!n.popupVisible:!!n.defaultPopupVisible,r.state={prevPopupVisible:i,popupVisible:i},xt.forEach(function(e){r["fire"+e]=function(t){r.fireEvents(e,t)}}),r}return u()(t,e),t.prototype.getChildContext=function(){return{rcTrigger:{onPopupMouseDown:this.onPopupMouseDown}}},t.prototype.componentDidMount=function(){this.componentDidUpdate({},{popupVisible:this.state.popupVisible})},t.prototype.componentDidUpdate=function(e,t){var n=this.props,r=this.state,i=function(){t.popupVisible!==r.popupVisible&&n.afterPopupVisibleChange(r.popupVisible)};if(_t||this.renderComponent(null,i),r.popupVisible){var o=void 0;return this.clickOutsideHandler||!this.isClickToHide()&&!this.isContextMenuToShow()||(o=n.getDocument(),this.clickOutsideHandler=Object(b["a"])(o,"mousedown",this.onDocumentClick)),this.touchOutsideHandler||(o=o||n.getDocument(),this.touchOutsideHandler=Object(b["a"])(o,"touchstart",this.onDocumentClick)),!this.contextMenuOutsideHandler1&&this.isContextMenuToShow()&&(o=o||n.getDocument(),this.contextMenuOutsideHandler1=Object(b["a"])(o,"scroll",this.onContextMenuClose)),void(!this.contextMenuOutsideHandler2&&this.isContextMenuToShow()&&(this.contextMenuOutsideHandler2=Object(b["a"])(window,"blur",this.onContextMenuClose)))}this.clearOutsideHandler()},t.prototype.componentWillUnmount=function(){this.clearDelayTimer(),this.clearOutsideHandler(),clearTimeout(this.mouseDownTimeout)},t.getDerivedStateFromProps=function(e,t){var n=e.popupVisible,r={};return void 0!==n&&t.popupVisible!==n&&(r.popupVisible=n,r.prevPopupVisible=t.popupVisible),r},t.prototype.getPopupDomNode=function(){return this._component&&this._component.getPopupDomNode?this._component.getPopupDomNode():null},t.prototype.getPopupAlign=function(){var e=this.props,t=e.popupPlacement,n=e.popupAlign,r=e.builtinPlacements;return t&&r?C(r,t,n):n},t.prototype.setPopupVisible=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&&this.setPoint(t)},t.prototype.delaySetPopupVisible=function(e,t,n){var r=this,i=1e3*t;if(this.clearDelayTimer(),i){var o=n?{pageX:n.pageX,pageY:n.pageY}:null;this.delayTimer=setTimeout(function(){r.setPopupVisible(e,o),r.clearDelayTimer()},i)}else this.setPopupVisible(e,n)},t.prototype.clearDelayTimer=function(){this.delayTimer&&(clearTimeout(this.delayTimer),this.delayTimer=null)},t.prototype.clearOutsideHandler=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)},t.prototype.createTwoChains=function(e){var t=this.props.children.props,n=this.props;return t[e]&&n[e]?this["fire"+e]:t[e]||n[e]},t.prototype.isClickToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isContextMenuToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("contextMenu")||-1!==n.indexOf("contextMenu")},t.prototype.isClickToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("click")||-1!==n.indexOf("click")},t.prototype.isMouseEnterToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseEnter")},t.prototype.isMouseLeaveToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("hover")||-1!==n.indexOf("mouseLeave")},t.prototype.isFocusToShow=function(){var e=this.props,t=e.action,n=e.showAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("focus")},t.prototype.isBlurToHide=function(){var e=this.props,t=e.action,n=e.hideAction;return-1!==t.indexOf("focus")||-1!==n.indexOf("blur")},t.prototype.forcePopupAlign=function(){this.state.popupVisible&&this._component&&this._component.alignInstance&&this._component.alignInstance.forceAlign()},t.prototype.fireEvents=function(e,t){var n=this.props.children.props[e];n&&n(t);var r=this.props[e];r&&r(t)},t.prototype.close=function(){this.setPopupVisible(!1)},t.prototype.render=function(){var e=this,t=this.state.popupVisible,n=this.props,r=n.children,i=n.forceRender,o=n.alignPoint,a=n.className,s=f.a.Children.only(r),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,o&&(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 c=E()(s&&s.props&&s.props.className,a);c&&(l.className=c);var u=f.a.cloneElement(s,l);if(!_t)return f.a.createElement(w["a"],{parent:this,visible:t,autoMount:!1,forceRender:i,getComponent:this.getComponent,getContainer:this.getContainer},function(t){var n=t.renderComponent;return e.renderComponent=n,u});var h=void 0;return(t||this._component||i)&&(h=f.a.createElement(x["a"],{key:"portal",getContainer:this.getContainer,didUpdate:this.handlePortalUpdate},this.getComponent())),[u,h]},t}(f.a.Component);St.propTypes={children:p.a.any,action:p.a.oneOfType([p.a.string,p.a.arrayOf(p.a.string)]),showAction:p.a.any,hideAction:p.a.any,getPopupClassNameFromAlign:p.a.any,onPopupVisibleChange:p.a.func,afterPopupVisibleChange:p.a.func,popup:p.a.oneOfType([p.a.node,p.a.func]).isRequired,popupStyle:p.a.object,prefixCls:p.a.string,popupClassName:p.a.string,className:p.a.string,popupPlacement:p.a.string,builtinPlacements:p.a.object,popupTransitionName:p.a.oneOfType([p.a.string,p.a.object]),popupAnimation:p.a.any,mouseEnterDelay:p.a.number,mouseLeaveDelay:p.a.number,zIndex:p.a.number,focusDelay:p.a.number,blurDelay:p.a.number,getPopupContainer:p.a.func,getDocument:p.a.func,forceRender:p.a.bool,destroyPopupOnHide:p.a.bool,mask:p.a.bool,maskClosable:p.a.bool,onPopupAlign:p.a.func,popupAlign:p.a.object,popupVisible:p.a.bool,defaultPopupVisible:p.a.bool,maskTransitionName:p.a.oneOfType([p.a.string,p.a.object]),maskAnimation:p.a.string,stretch:p.a.string,alignPoint:p.a.bool},St.contextTypes=Et,St.childContextTypes=Et,St.defaultProps={prefixCls:"rc-trigger-popup",getPopupClassNameFromAlign:bt,getDocument:wt,onPopupVisibleChange:yt,afterPopupVisibleChange:yt,onPopupAlign:yt,popupClassName:"",mouseEnterDelay:0,mouseLeaveDelay:.1,focusDelay:0,blurDelay:.15,popupStyle:{},destroyPopupOnHide:!1,popupAlign:{},defaultPopupVisible:!1,mask:!1,maskClosable:!0,action:[],showAction:[],hideAction:[]};var Ct=function(){var e=this;this.onMouseEnter=function(t){var n=e.props.mouseEnterDelay;e.fireEvents("onMouseEnter",t),e.delaySetPopupVisible(!0,n,n?null:t)},this.onMouseMove=function(t){e.fireEvents("onMouseMove",t),e.setPoint(t)},this.onMouseLeave=function(t){e.fireEvents("onMouseLeave",t),e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onPopupMouseEnter=function(){e.clearDelayTimer()},this.onPopupMouseLeave=function(t){t.relatedTarget&&!t.relatedTarget.setTimeout&&e._component&&e._component.getPopupDomNode&&Object(y["a"])(e._component.getPopupDomNode(),t.relatedTarget)||e.delaySetPopupVisible(!1,e.props.mouseLeaveDelay)},this.onFocus=function(t){e.fireEvents("onFocus",t),e.clearDelayTimer(),e.isFocusToShow()&&(e.focusTime=Date.now(),e.delaySetPopupVisible(!0,e.props.focusDelay))},this.onMouseDown=function(t){e.fireEvents("onMouseDown",t),e.preClickTime=Date.now()},this.onTouchStart=function(t){e.fireEvents("onTouchStart",t),e.preTouchTime=Date.now()},this.onBlur=function(t){e.fireEvents("onBlur",t),e.clearDelayTimer(),e.isBlurToHide()&&e.delaySetPopupVisible(!1,e.props.blurDelay)},this.onContextMenu=function(t){t.preventDefault(),e.fireEvents("onContextMenu",t),e.setPopupVisible(!0,t)},this.onContextMenuClose=function(){e.isContextMenuToShow()&&e.close()},this.onClick=function(t){if(e.fireEvents("onClick",t),e.focusTime){var n=void 0;if(e.preClickTime&&e.preTouchTime?n=Math.min(e.preClickTime,e.preTouchTime):e.preClickTime?n=e.preClickTime:e.preTouchTime&&(n=e.preTouchTime),Math.abs(n-e.focusTime)<20)return;e.focusTime=0}e.preClickTime=0,e.preTouchTime=0,e.isClickToShow()&&(e.isClickToHide()||e.isBlurToHide())&&t&&t.preventDefault&&t.preventDefault();var r=!e.state.popupVisible;(e.isClickToHide()&&!r||r&&e.isClickToShow())&&e.setPopupVisible(!e.state.popupVisible,t)},this.onPopupMouseDown=function(){var t=e.context.rcTrigger,n=void 0===t?{}:t;e.hasPopupMouseDown=!0,clearTimeout(e.mouseDownTimeout),e.mouseDownTimeout=setTimeout(function(){e.hasPopupMouseDown=!1},0),n.onPopupMouseDown&&n.onPopupMouseDown.apply(n,arguments)},this.onDocumentClick=function(t){if(!e.props.mask||e.props.maskClosable){var n=t.target,r=Object(m["findDOMNode"])(e);Object(y["a"])(r,n)||e.hasPopupMouseDown||e.close()}},this.getRootDomNode=function(){return Object(m["findDOMNode"])(e)},this.getPopupClassNameFromAlign=function(t){var n=[],r=e.props,i=r.popupPlacement,o=r.builtinPlacements,a=r.prefixCls,s=r.alignPoint,l=r.getPopupClassNameFromAlign;return i&&o&&n.push(k(o,a,t,s)),l&&n.push(l(t)),n.join(" ")},this.getComponent=function(){var t=e.props,n=t.prefixCls,r=t.destroyPopupOnHide,o=t.popupClassName,a=t.action,s=t.onPopupAlign,l=t.popupAnimation,c=t.popupTransitionName,u=t.popupStyle,h=t.mask,d=t.maskAnimation,p=t.maskTransitionName,m=t.zIndex,g=t.popup,v=t.stretch,y=t.alignPoint,b=e.state,w=b.popupVisible,x=b.point,_=e.getPopupAlign(),E={};return e.isMouseEnterToShow()&&(E.onMouseEnter=e.onPopupMouseEnter),e.isMouseLeaveToHide()&&(E.onMouseLeave=e.onPopupMouseLeave),E.onMouseDown=e.onPopupMouseDown,E.onTouchStart=e.onPopupMouseDown,f.a.createElement(vt,i()({prefixCls:n,destroyPopupOnHide:r,visible:w,point:y&&x,className:o,action:a,align:_,onAlign:s,animation:l,getClassNameFromAlign:e.getPopupClassNameFromAlign},E,{stretch:v,getRootDomNode:e.getRootDomNode,style:u,mask:h,zIndex:m,transitionName:c,maskAnimation:d,maskTransitionName:p,ref:e.savePopup}),"function"===typeof g?g():g)},this.getContainer=function(){var t=e.props,n=document.createElement("div");n.style.position="absolute",n.style.top="0",n.style.left="0",n.style.width="100%";var r=t.getPopupContainer?t.getPopupContainer(Object(m["findDOMNode"])(e)):t.getDocument().body;return r.appendChild(n),n},this.setPoint=function(t){var n=e.props.alignPoint;n&&t&&e.setState({point:{pageX:t.pageX,pageY:t.pageY}})},this.handlePortalUpdate=function(){e.state.prevPopupVisible!==e.state.popupVisible&&e.props.afterPopupVisibleChange(e.state.popupVisible)},this.savePopup=function(t){e._component=t}};Object(v["polyfill"])(St);t["a"]=St},uhBA:function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,i="~";function o(){}function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function s(e,t,n,r,o){if("function"!==typeof n)throw new TypeError("The listener must be a function");var s=new a(n,r||e,o),l=i?i+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function l(e,t){0===--e._eventsCount?e._events=new o:delete e._events[t]}function c(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(i=!1)),c.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(i?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},c.prototype.listeners=function(e){var t=i?i+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,a=new Array(o);r span {font-weight: normal !important;}.ace-github .ace_marker-layer .ace_step {background: rgb(252, 255, 0);}.ace-github .ace_marker-layer .ace_stack {background: rgb(164, 229, 101);}.ace-github .ace_marker-layer .ace_bracket {margin: -1px 0 0 -1px;border: 1px solid rgb(192, 192, 192);}.ace-github .ace_gutter-active-line {background-color : rgba(0, 0, 0, 0.07);}.ace-github .ace_marker-layer .ace_selected-word {background: rgb(250, 250, 255);border: 1px solid rgb(200, 200, 250);}.ace-github .ace_invisible {color: #BFBFBF}.ace-github .ace_print-margin {width: 1px;background: #e8e8e8;}.ace-github .ace_indent-guide {background: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAE0lEQVQImWP4////f4bLly//BwAmVgd1/w11/gAAAABJRU5ErkJggg==") right repeat-y;}';var r=e("../lib/dom");r.importCssString(t.cssText,t.cssClass,!1)}),function(){ace.require(["ace/theme/github"],function(t){e&&(e.exports=t)})}()}).call(this,n("YuTi")(e))},usdK:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.push=o,t.replace=a,t.go=s,t.goBack=l,t.goForward=c,t.default=void 0;var r=i(n("RFCh"));function i(e){return e&&e.__esModule?e:{default:e}}function o(){r.default.push.apply(r.default,arguments)}function a(){r.default.replace.apply(r.default,arguments)}function s(){r.default.go.apply(r.default,arguments)}function l(){r.default.goBack.apply(r.default,arguments)}function c(){r.default.goForward.apply(r.default,arguments)}var u={push:o,replace:a,go:s,goBack:l,goForward:c};t.default=u},uzXD:function(e,t,n){"use strict";n.r(t);var r=n("jehZ"),i=n.n(r),o=(n("Mwp2"),n("VXEj")),a=(n("/zsF"),n("PArb")),s=(n("5NDa"),n("5rEg")),l=(n("+L6B"),n("2/Rp")),c=(n("miYZ"),n("tsqr")),u=(n("5Dmo"),n("3S7+")),h=(n("Awhp"),n("KrTs")),f=(n("BoS7"),n("Sdc0")),d=(n("qVdP"),n("jsC+")),p=(n("lUTK"),n("BvKs")),m=(n("Pwec"),n("CtXQ")),g=(n("+BJd"),n("mr32")),v=n("q1tI"),y=n.n(v),b=n("Bl7J"),w=n("H9LU"),x=n("qqou"),_=n("/MKj"),E=n("+QRC"),S=n.n(E),C=n("I1u9"),k=n("ykC2"),O=n("B6Jk"),T=n.n(O),A=n("yWgo"),P=n("AMgb"),M=n.n(P),R=n("Oa6W"),j=n("v32e");class L extends y.a.Component{constructor(e){super(e),this.state={searchKey:void 0,sortMode:!0,pageSize:Object(A["e"])("server_manage_page_size")||10}}componentDidMount(){this.props.dispatch({type:"serverManage/getNodes"}),this.props.dispatch({type:"serverGroup/fetch"})}getTypeTag(e,t){switch(e){case"shadowsocks":return y.a.createElement(g["a"],{color:"#489851"},t);case"v2ray":return y.a.createElement(g["a"],{color:"#CB3180"},t);case"trojan":return y.a.createElement(g["a"],{color:"#EAB854"},t)}}getDispatchTypeByType(e,t){switch(e){case"shadowsocks":return"serverShadowsocks/".concat(t);case"v2ray":return"serverV2ray/".concat(t);case"trojan":return"serverTrojan/".concat(t)}}copy(e){this.props.dispatch({type:this.getDispatchTypeByType(e.type,"copy"),id:e.id})}update(e,t,n){this.props.dispatch({type:this.getDispatchTypeByType(e.type,"update"),id:e.id,key:t,value:n})}drop(e){this.props.dispatch({type:this.getDispatchTypeByType(e.type,"drop"),id:e.id})}render(){var e,t,n,r=this.props.serverManage,v=r.servers,_=r.fetchLoading,E=r.sortMode,O=this.props.serverGroup.groups,P=this.state.searchKey,L={0:"error",1:"warning",2:"processing"},D=(e,t)=>y.a.createElement(d["a"],{trigger:"click",overlay:y.a.createElement(p["a"],null,y.a.createElement(p["a"].Item,{onContextMenu:e=>{e.stopPropagation()}},"shadowsocks"===e.type&&y.a.createElement(w["a"],{key:e.id,record:e},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"edit"})," \u7f16\u8f91")),"v2ray"===e.type&&y.a.createElement(C["a"],{key:e.id,record:e},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"edit"})," \u7f16\u8f91")),"trojan"===e.type&&y.a.createElement(k["a"],{key:e.id,record:e},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"edit"})," \u7f16\u8f91"))),y.a.createElement(p["a"].Item,{onClick:()=>this.copy(e)},y.a.createElement(m["a"],{type:"copy"})," \u590d\u5236"),y.a.createElement(p["a"].Item,{style:{color:"#ff4d4f"},onClick:()=>this.drop(e)},y.a.createElement(m["a"],{type:"delete"})," \u5220\u9664"))},t||y.a.createElement("a",{href:"javascript:void(0);"},"\u64cd\u4f5c ",y.a.createElement(m["a"],{type:"caret-down"}))),N=[{title:"\u8282\u70b9ID",dataIndex:"id",key:"id",width:150,filters:["Shadowsocks","V2ray","Trojan"].map(e=>({text:e,value:e})),onFilter:(e,t)=>t.type===e.toLowerCase(),render:(e,t)=>{return y.a.createElement("span",null,this.getTypeTag(t.type,t.parent_id?e+" => "+t.parent_id:e))}},{title:"\u663e\u9690",dataIndex:"show",key:"show",render:(e,t)=>{return y.a.createElement(f["a"],{size:"small",checked:parseInt(e),onClick:()=>this.update(t,"show",parseInt(e)?0:1)})}},{title:y.a.createElement("span",null,y.a.createElement(u["a"],{placement:"top",title:y.a.createElement("div",null,y.a.createElement(h["a"],{status:"error"})," \u672a\u8fd0\u884c",y.a.createElement("br",null),y.a.createElement(h["a"],{status:"warning"})," \u65e0\u4eba\u4f7f\u7528\u6216\u670d\u52a1\u7aef\u4e0a\u62a5\u5f02\u5e38",y.a.createElement("br",null),y.a.createElement(h["a"],{status:"processing"})," \u8fd0\u884c\u6b63\u5e38",y.a.createElement("br",null))},"\u8282\u70b9 ",y.a.createElement(m["a"],{type:"question-circle"}))),dataIndex:"name",key:"name",render:(e,t)=>{return y.a.createElement(y.a.Fragment,null,y.a.createElement(h["a"],{status:L[t.available_status]}),y.a.createElement("span",null,e))}},{title:"\u5730\u5740",dataIndex:"host",key:"host",render:(e,t)=>{return y.a.createElement("span",{style:{cursor:"pointer"},onClick:()=>{S()(t.host),c["a"].success("\u590d\u5236\u6210\u529f")}},t.host+":"+t.port)}},{title:y.a.createElement("span",null,y.a.createElement(u["a"],{placement:"top",title:"\u6839\u636e\u670d\u52a1\u7aef\u4e0a\u62a5\u9891\u7387\u800c\u5b9a"},"\u4eba\u6570 ",y.a.createElement(m["a"],{type:"question-circle"}))),dataIndex:"online",key:"online",align:"left",width:130,sorter:(e,t)=>e.online-t.online,render:e=>{return y.a.createElement(y.a.Fragment,null,y.a.createElement(m["a"],{type:"user"})," ",e||0)}},{title:y.a.createElement(u["a"],{placement:"top",title:"\u4f7f\u7528\u7684\u6d41\u91cf\u5c06\u4e58\u4ee5\u500d\u7387\u8fdb\u884c\u6263\u9664"},"\u500d\u7387 ",y.a.createElement(m["a"],{type:"question-circle"})),dataIndex:"rate",key:"rate",align:"center",render:e=>{return y.a.createElement(g["a"],{style:{minWidth:60}},e+" x")}},{title:"\u6743\u9650\u7ec4",dataIndex:"group_id",key:"group_id",filters:O.map(e=>({text:e.name,value:e.id})),onFilter:(e,t)=>-1!==t.group_id.indexOf("".concat(e)),render:(e,t)=>{var n=[];return t.group_id.map(e=>{var t=O.find(t=>t.id===parseInt(e));t&&n.push(y.a.createElement(g["a"],null,t.name))}),y.a.createElement(y.a.Fragment,null,n)}},{title:"\u64cd\u4f5c",dataIndex:"action",key:"action",align:"right",fixed:"right",width:100,render:(e,t,n)=>{return y.a.createElement("div",null,D(t))}}],I=this;return y.a.createElement(b["a"],i()({},this.props,{title:"\u8282\u70b9\u7ba1\u7406"}),y.a.createElement(M.a,{when:E,message:e=>{return window.confirm("\u8282\u70b9\u6392\u5e8f\u8fd8\u6ca1\u6709\u4fdd\u5b58\uff0c\u662f\u5426\u79bb\u5f00")}}),y.a.createElement(j["a"],{loading:_},y.a.createElement("div",{className:"block block-bottom ".concat(T.a.manage)},y.a.createElement("div",{className:"bg-white"},y.a.createElement("div",{className:"v2board-table-action",style:{padding:15}},y.a.createElement(d["a"],{overlay:y.a.createElement(p["a"],null,y.a.createElement(p["a"].Item,null,y.a.createElement(w["a"],{key:Math.random()},y.a.createElement("a",null,this.getTypeTag("shadowsocks","Shadowsocks")))),y.a.createElement(p["a"].Item,null,y.a.createElement(C["a"],{key:Math.random()},y.a.createElement("a",null,this.getTypeTag("v2ray","V2ray")))),y.a.createElement(p["a"].Item,null,y.a.createElement(k["a"],{key:Math.random()},y.a.createElement("a",null,this.getTypeTag("trojan","Trojan")))))},y.a.createElement(l["a"],null,y.a.createElement(m["a"],{type:"plus"}))),y.a.createElement(s["a"],{placeholder:"\u8f93\u5165\u4efb\u610f\u5173\u952e\u5b57\u641c\u7d22",style:{width:200},className:"ml-2",onChange:e=>this.setState({searchKey:e.target.value})}),!Object(A["f"])()&&y.a.createElement(l["a"],{style:{float:"right"},type:"primary",onClick:()=>{E?this.props.dispatch({type:"serverManage/saveSort"}):this.props.dispatch({type:"serverManage/setState",payload:{sortMode:!0}})}},E?"\u4fdd\u5b58\u6392\u5e8f":"\u7f16\u8f91\u6392\u5e8f")),Object(A["f"])()?y.a.createElement(o["a"],{className:"v2board-table",itemLayout:"vertical",dataSource:P?v.filter(e=>-1!==JSON.stringify(e).indexOf(P)):v,renderItem:e=>y.a.createElement(o["a"].Item,{className:"v2board_node_mobile ".concat(e.parent_id?"child_node":""),actions:[y.a.createElement(y.a.Fragment,null,this.getTypeTag(e.type,e.parent_id?e.id+" => "+e.parent_id:e.id),y.a.createElement(g["a"],null,y.a.createElement(m["a"],{type:"user"})," ",e.online||0),y.a.createElement(g["a"],null,e.rate," x"))],extra:y.a.createElement(y.a.Fragment,null,y.a.createElement(f["a"],{size:"small",checked:parseInt(e.show),onClick:()=>this.update(e,"show",parseInt(e.show)?0:1)}),y.a.createElement(a["a"],{type:"vertical"}),y.a.createElement("span",null,D(e)))},y.a.createElement(o["a"].Item.Meta,{title:y.a.createElement(y.a.Fragment,null,y.a.createElement(h["a"],{status:L[e.available_status]}),e.name),description:"".concat(e.host,":").concat(e.port)}))}):y.a.createElement(x["a"],{onDragEnd:(e,t)=>{I.props.dispatch({type:"serverManage/sort",fromIndex:e,toIndex:t})},nodeSelector:"tr",handleSelector:"i"},y.a.createElement(R["a"],{onContextMenu:e=>{this.record=e,this.forceUpdate()},disableRightClick:E,tableLayout:"auto",dataSource:P?v.filter(e=>-1!==JSON.stringify(e).indexOf(P)):v,columns:E?[{title:"\u6392\u5e8f",dataIndex:"sort",key:"sort",align:"left",width:100,render:(e,t,n)=>{return y.a.createElement("div",null,y.a.createElement(m["a"],{type:"menu",style:{cursor:"move"},title:"\u62d6\u52a8\u6392\u5e8f"}))}},{title:"\u8282\u70b9ID",dataIndex:"id",key:"id",width:150,render:(e,t)=>{return y.a.createElement("span",null,this.getTypeTag(t.type,t.parent_id?e+" => "+t.parent_id:e))}},{title:"\u8282\u70b9",dataIndex:"name",key:"name"}]:N,pagination:!E&&{pageSize:this.state.pageSize,pageSizeOptions:["10","50","100","500"],showSizeChanger:!0,onShowSizeChange:(e,t)=>{this.setState({pageSize:t},()=>{Object(A["j"])("server_manage_page_size",t)})}},scroll:{x:1300},rowClassName:e=>e.parent_id?"child_node":""},y.a.createElement("ul",{className:"ant-dropdown-menu ant-dropdown-menu-light ant-dropdown-menu-root ant-dropdown-menu-vertical"},y.a.createElement("li",{className:"ant-dropdown-menu-item"},"shadowsocks"===(null===(e=this.record)||void 0===e?void 0:e.type)&&y.a.createElement(w["a"],{key:Math.random(),record:this.record},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"form"})," \u7f16\u8f91")),"v2ray"===(null===(t=this.record)||void 0===t?void 0:t.type)&&y.a.createElement(C["a"],{key:Math.random(),record:this.record},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"form"})," \u7f16\u8f91")),"trojan"===(null===(n=this.record)||void 0===n?void 0:n.type)&&y.a.createElement(k["a"],{key:Math.random(),record:this.record},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"form"})," \u7f16\u8f91"))),y.a.createElement("li",{onClick:()=>this.copy(this.record),className:"ant-dropdown-menu-item"},y.a.createElement("a",null,y.a.createElement(m["a"],{type:"copy"})," \u590d\u5236")),y.a.createElement("li",{onClick:()=>this.drop(this.record),className:"ant-dropdown-menu-item"},y.a.createElement("a",{style:{color:"#ff4d4f"}},y.a.createElement(m["a"],{type:"delete"})," \u5220\u9664")))))))))}}t["default"]=Object(_["c"])(e=>{var t=e.serverManage,n=e.serverGroup;return{serverManage:t,serverGroup:n}})(L)},v32e:function(e,t,n){"use strict";n.d(t,"a",function(){return a});n("T2oS");var r=n("W9HT"),i=n("q1tI"),o=n.n(i);class a extends o.a.Component{render(){return o.a.createElement(r["a"],{spinning:this.props.loading,indicator:o.a.createElement("div",{className:"spinner-grow text-primary"})},this.props.children)}}},vA3T:function(e,t,n){"use strict";var r=n("QbLZ"),i=n.n(r),o=n("jo6Y"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("V7oC"),u=n.n(c),h=n("FYw3"),f=n.n(h),d=n("mRg0"),p=n.n(d),m=n("q1tI"),g=n.n(m),v=n("17x9"),y=n.n(v),b=n("YEIV"),w=n.n(b),x=n("TSYQ"),_=n.n(x),E=n("hsuR");function S(e,t){var n=e.props,r=n.styles,i=n.panels,o=n.activeKey,a=n.direction,s=e.props.getRef("root"),l=e.props.getRef("nav")||s,c=e.props.getRef("inkBar"),u=e.props.getRef("activeTab"),h=c.style,f=e.props.tabBarPosition,d=Object(E["a"])(i,o);if(t&&(h.display="none"),u){var p=u,m=Object(E["i"])(h);if(Object(E["k"])(h,""),h.width="",h.height="",h.left="",h.top="",h.bottom="",h.right="","top"===f||"bottom"===f){var g=Object(E["c"])(p,l),v=p.offsetWidth;v===s.offsetWidth?v=0:r.inkBar&&void 0!==r.inkBar.width&&(v=parseFloat(r.inkBar.width,10),v&&(g+=(p.offsetWidth-v)/2)),"rtl"===a&&(g=Object(E["e"])(p,"margin-left")-g),m?Object(E["k"])(h,"translate3d("+g+"px,0,0)"):h.left=g+"px",h.width=v+"px"}else{var y=Object(E["f"])(p,l,!0),b=p.offsetHeight;r.inkBar&&void 0!==r.inkBar.height&&(b=parseFloat(r.inkBar.height,10),b&&(y+=(p.offsetHeight-b)/2)),m?(Object(E["k"])(h,"translate3d(0,"+y+"px,0)"),h.top="0"):h.top=y+"px",h.height=b+"px"}}h.display=-1!==d?"block":"none"}var C=function(e){function t(){return l()(this,t),f()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"componentDidMount",value:function(){var e=this;this.timeout=setTimeout(function(){S(e,!0)},0)}},{key:"componentDidUpdate",value:function(){S(this)}},{key:"componentWillUnmount",value:function(){clearTimeout(this.timeout)}},{key:"render",value:function(){var e,t=this.props,n=t.prefixCls,r=t.styles,i=t.inkBarAnimated,o=n+"-ink-bar",a=_()((e={},w()(e,o,!0),w()(e,i?o+"-animated":o+"-no-animated",!0),e));return g.a.createElement("div",{style:r.inkBar,className:a,key:"inkBar",ref:this.props.saveRef("inkBar")})}}]),t}(g.a.Component),k=C;C.propTypes={prefixCls:y.a.string,styles:y.a.object,inkBarAnimated:y.a.bool,saveRef:y.a.func,direction:y.a.string},C.defaultProps={prefixCls:"",inkBarAnimated:!0,styles:{},saveRef:function(){}};var O=n("2W6z"),T=n.n(O),A=function(e){function t(){return l()(this,t),f()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"render",value:function(){var e=this,t=this.props,n=t.panels,r=t.activeKey,o=t.prefixCls,a=t.tabBarGutter,s=t.saveRef,l=t.tabBarPosition,c=t.renderTabBarNode,u=t.direction,h=[];return g.a.Children.forEach(n,function(t,f){if(t){var d=t.key,p=r===d?o+"-tab-active":"";p+=" "+o+"-tab";var m={};t.props.disabled?p+=" "+o+"-tab-disabled":m={onClick:e.props.onTabClick.bind(e,d)};var v={};r===d&&(v.ref=s("activeTab"));var y=a&&f===n.length-1?0:a,b="rtl"===u?"marginLeft":"marginRight",x=w()({},Object(E["j"])(l)?"marginBottom":b,y);T()("tab"in t.props,"There must be `tab` property on children of Tabs.");var _=g.a.createElement("div",i()({role:"tab","aria-disabled":t.props.disabled?"true":"false","aria-selected":r===d?"true":"false"},m,{className:p,key:d,style:x},v),t.props.tab);c&&(_=c(_)),h.push(_)}}),g.a.createElement("div",{ref:s("navTabsContainer")},h)}}]),t}(g.a.Component),P=A;A.propTypes={activeKey:y.a.string,panels:y.a.node,prefixCls:y.a.string,tabBarGutter:y.a.number,onTabClick:y.a.func,saveRef:y.a.func,renderTabBarNode:y.a.func,tabBarPosition:y.a.string,direction:y.a.string},A.defaultProps={panels:[],prefixCls:[],tabBarGutter:null,onTabClick:function(){},saveRef:function(){}};var M=function(e){function t(){return l()(this,t),f()(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p()(t,e),u()(t,[{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.onKeyDown,r=e.className,o=e.extraContent,s=e.style,l=e.tabBarPosition,c=e.children,u=a()(e,["prefixCls","onKeyDown","className","extraContent","style","tabBarPosition","children"]),h=_()(t+"-bar",w()({},r,!!r)),f="top"===l||"bottom"===l,d=f?{float:"right"}:{},p=o&&o.props?o.props.style:{},v=c;return o&&(v=[Object(m["cloneElement"])(o,{key:"extra",style:i()({},d,p)}),Object(m["cloneElement"])(c,{key:"content"})],v=f?v:v.reverse()),g.a.createElement("div",i()({role:"tablist",className:h,tabIndex:"0",ref:this.props.saveRef("root"),onKeyDown:n,style:s},Object(E["b"])(u)),v)}}]),t}(g.a.Component),R=M;M.propTypes={prefixCls:y.a.string,className:y.a.string,style:y.a.object,tabBarPosition:y.a.oneOf(["left","right","top","bottom"]),children:y.a.node,extraContent:y.a.node,onKeyDown:y.a.func,saveRef:y.a.func},M.defaultProps={prefixCls:"",className:"",style:{},tabBarPosition:"top",extraContent:null,children:null,onKeyDown:function(){},saveRef:function(){}};var j=n("sEfC"),L=n.n(j),D=n("bdgK"),N=function(e){function t(e){l()(this,t);var n=f()(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.prevTransitionEnd=function(e){if("opacity"===e.propertyName){var t=n.props.getRef("container");n.scrollToActiveTab({target:t,currentTarget:t})}},n.scrollToActiveTab=function(e){var t=n.props.getRef("activeTab"),r=n.props.getRef("navWrap");if((!e||e.target===e.currentTarget)&&t){var i=n.isNextPrevShown()&&n.lastNextPrevShown;if(n.lastNextPrevShown=n.isNextPrevShown(),i){var o=n.getScrollWH(t),a=n.getOffsetWH(r),s=n.offset,l=n.getOffsetLT(r),c=n.getOffsetLT(t);l>c?(s+=l-c,n.setOffset(s)):l+a=0)l=!1,this.setOffset(0,!1),o=0;else if(a1&&void 0!==arguments[1])||arguments[1],n=Math.min(0,e);if(this.offset!==n){this.offset=n;var r={},i=this.props.tabBarPosition,o=this.props.getRef("nav").style,a=Object(E["i"])(o);"left"===i||"right"===i?r=a?{value:"translate3d(0,"+n+"px,0)"}:{name:"top",value:n+"px"}:a?("rtl"===this.props.direction&&(n=-n),r={value:"translate3d("+n+"px,0,0)"}):r={name:"left",value:n+"px"},a?Object(E["k"])(o,r.value):o[r.name]=r.value,t&&this.setNextPrev()}}},{key:"setPrev",value:function(e){this.state.prev!==e&&this.setState({prev:e})}},{key:"setNext",value:function(e){this.state.next!==e&&this.setState({next:e})}},{key:"isNextPrevShown",value:function(e){return e?e.next||e.prev:this.state.next||this.state.prev}},{key:"render",value:function(){var e,t,n,r,i=this.state,o=i.next,a=i.prev,s=this.props,l=s.prefixCls,c=s.scrollAnimated,u=s.navWrapper,h=s.prevIcon,f=s.nextIcon,d=a||o,p=g.a.createElement("span",{onClick:a?this.prev:null,unselectable:"unselectable",className:_()((e={},w()(e,l+"-tab-prev",1),w()(e,l+"-tab-btn-disabled",!a),w()(e,l+"-tab-arrow-show",d),e)),onTransitionEnd:this.prevTransitionEnd},h||g.a.createElement("span",{className:l+"-tab-prev-icon"})),m=g.a.createElement("span",{onClick:o?this.next:null,unselectable:"unselectable",className:_()((t={},w()(t,l+"-tab-next",1),w()(t,l+"-tab-btn-disabled",!o),w()(t,l+"-tab-arrow-show",d),t))},f||g.a.createElement("span",{className:l+"-tab-next-icon"})),v=l+"-nav",y=_()((n={},w()(n,v,!0),w()(n,c?v+"-animated":v+"-no-animated",!0),n));return g.a.createElement("div",{className:_()((r={},w()(r,l+"-nav-container",1),w()(r,l+"-nav-container-scrolling",d),r)),key:"container",ref:this.props.saveRef("container")},p,m,g.a.createElement("div",{className:l+"-nav-wrap",ref:this.props.saveRef("navWrap")},g.a.createElement("div",{className:l+"-nav-scroll"},g.a.createElement("div",{className:y,ref:this.props.saveRef("nav")},u(this.props.children)))))}}]),t}(g.a.Component),I=N;N.propTypes={activeKey:y.a.string,getRef:y.a.func.isRequired,saveRef:y.a.func.isRequired,tabBarPosition:y.a.oneOf(["left","right","top","bottom"]),prefixCls:y.a.string,scrollAnimated:y.a.bool,onPrevClick:y.a.func,onNextClick:y.a.func,navWrapper:y.a.func,children:y.a.node,prevIcon:y.a.node,nextIcon:y.a.node,direction:y.a.node},N.defaultProps={tabBarPosition:"left",prefixCls:"",scrollAnimated:!0,onPrevClick:function(){},onNextClick:function(){},navWrapper:function(e){return e}};var $=function(e){function t(){var e,n,r,i;l()(this,t);for(var o=arguments.length,a=Array(o),s=0;sn)t.push(arguments[n++]);return v[++g]=function(){s("function"==typeof e?e:Function(e),t)},r(g),g},d=function(e){delete v[e]},"process"==n("2we2")(h)?r=function(e){h.nextTick(a(b,e,1))}:m&&m.now?r=function(e){m.now(a(b,e,1))}:p?(i=new p,o=i.port2,i.port1.onmessage=w,r=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(r=function(e){u.postMessage(e+"","*")},u.addEventListener("message",w,!1)):r=y in c("script")?function(e){l.appendChild(c("script"))[y]=function(){l.removeChild(this),b.call(e)}}:function(e){setTimeout(a(b,e,1),0)}),e.exports={set:f,clear:d}},"vPd/":function(e,t,n){var r=n("kCCV"),i=n("IX3V").each;function o(e,t){this.query=e,this.isUnconditional=t,this.handlers=[],this.mql=window.matchMedia(e);var n=this;this.listener=function(e){n.mql=e.currentTarget||e,n.assess()},this.mql.addListener(this.listener)}o.prototype={constuctor:o,addHandler:function(e){var t=new r(e);this.handlers.push(t),this.matches()&&t.on()},removeHandler:function(e){var t=this.handlers;i(t,function(n,r){if(n.equals(e))return n.destroy(),!t.splice(r,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){i(this.handlers,function(e){e.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var e=this.matches()?"on":"off";i(this.handlers,function(t){t[e]()})}},e.exports=o},vgmO:function(e,t,n){(function(t){var n;n="undefined"!==typeof window?window:"undefined"!==typeof t?t:"undefined"!==typeof self?self:{},e.exports=n}).call(this,n("yLpj"))},vpQ4:function(e,t,n){"use strict";n.d(t,"a",function(){return i});var r=n("rePB");function i(e){for(var t=1;t=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},w6GO:function(e,t,n){var r=n("5vMV"),i=n("FpHa");e.exports=Object.keys||function(e){return r(e,i)}},w8uh:function(e,t,n){n("Jaki")("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},wCXF:function(e,t,n){"use strict";function r(e){"@babel/helpers - typeof";return r="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(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,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){for(var n=0;n0&&0===this.props.data.length&&this.hasScrollX()&&this.resetScrollX()}},{key:"componentWillUnmount",value:function(){this.resizeEvent&&this.resizeEvent.remove(),this.debouncedWindowResize&&this.debouncedWindowResize.cancel()}},{key:"setScrollPosition",value:function(e){if(this.scrollPosition=e,this.tableNode){var t=this.props.prefixCls;"both"===e?S.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-left")).add("".concat(t,"-scroll-position-right")):S.default(this.tableNode).remove(new RegExp("^".concat(t,"-scroll-position-.+$"))).add("".concat(t,"-scroll-position-").concat(e))}}},{key:"setScrollPositionClassName",value:function(){var e=this.bodyTable,t=0===e.scrollLeft,n=e.scrollLeft+1>=e.children[0].getBoundingClientRect().width-e.getBoundingClientRect().width;t&&n?this.setScrollPosition("both"):t?this.setScrollPosition("left"):n?this.setScrollPosition("right"):"middle"!==this.scrollPosition&&this.setScrollPosition("middle")}},{key:"isTableLayoutFixed",value:function(){var e=this.props,t=e.tableLayout,n=e.columns,r=void 0===n?[]:n,i=e.useFixedHeader,o=e.scroll,a=void 0===o?{}:o;return"undefined"!==typeof t?"fixed"===t:!!r.some(function(e){var t=e.ellipsis;return!!t})||(!(!i&&!a.y)||!(!a.x||!0===a.x||"max-content"===a.x))}},{key:"resetScrollX",value:function(){this.headTable&&(this.headTable.scrollLeft=0),this.bodyTable&&(this.bodyTable.scrollLeft=0)}},{key:"hasScrollX",value:function(){var e=this.props.scroll,t=void 0===e?{}:e;return"x"in t}},{key:"renderMainTable",value:function(){var e=this.props,t=e.scroll,n=e.prefixCls,r=this.columnManager.isAnyColumnsFixed(),i=r||t.x||t.y,o=[this.renderTable({columns:this.columnManager.groupedColumns(),isAnyColumnsFixed:r}),this.renderEmptyText(),this.renderFooter()];return i?v.createElement("div",{className:"".concat(n,"-scroll")},o):o}},{key:"renderLeftFixedTable",value:function(){var e=this.props.prefixCls;return v.createElement("div",{className:"".concat(e,"-fixed-left")},this.renderTable({columns:this.columnManager.leftColumns(),fixed:"left"}))}},{key:"renderRightFixedTable",value:function(){var e=this.props.prefixCls;return v.createElement("div",{className:"".concat(e,"-fixed-right")},this.renderTable({columns:this.columnManager.rightColumns(),fixed:"right"}))}},{key:"renderTable",value:function(e){var t=e.columns,n=e.fixed,r=e.isAnyColumnsFixed,i=this.props,o=i.prefixCls,a=i.scroll,s=void 0===a?{}:a,l=s.x||n?"".concat(o,"-fixed"):"",c=v.createElement(A.default,{key:"head",columns:t,fixed:n,tableClassName:l,handleBodyScrollLeft:this.handleBodyScrollLeft,expander:this.expander}),u=v.createElement(P.default,{key:"body",columns:t,fixed:n,tableClassName:l,getRowKey:this.getRowKey,handleWheel:this.handleWheel,handleBodyScroll:this.handleBodyScroll,expander:this.expander,isAnyColumnsFixed:r});return[c,u]}},{key:"renderTitle",value:function(){var e=this.props,t=e.title,n=e.prefixCls;return t?v.createElement("div",{className:"".concat(n,"-title"),key:"title"},t(this.props.data)):null}},{key:"renderFooter",value:function(){var e=this.props,t=e.footer,n=e.prefixCls;return t?v.createElement("div",{className:"".concat(n,"-footer"),key:"footer"},t(this.props.data)):null}},{key:"renderEmptyText",value:function(){var e=this.props,t=e.emptyText,n=e.prefixCls,r=e.data;if(r.length)return null;var i="".concat(n,"-placeholder");return v.createElement("div",{className:i,key:"emptyText"},"function"===typeof t?t():t)}},{key:"render",value:function(){var e,t=this,n=this.props,r=n.prefixCls;this.state.columns?this.columnManager.reset(n.columns):this.state.children&&this.columnManager.reset(null,n.children);var o=C.default(n.prefixCls,n.className,(e={},i(e,"".concat(r,"-fixed-header"),n.useFixedHeader||n.scroll&&n.scroll.y),i(e,"".concat(r,"-scroll-position-left ").concat(r,"-scroll-position-right"),"both"===this.scrollPosition),i(e,"".concat(r,"-scroll-position-").concat(this.scrollPosition),"both"!==this.scrollPosition),i(e,"".concat(r,"-layout-fixed"),this.isTableLayoutFixed()),e)),a=this.columnManager.isAnyColumnsLeftFixed(),s=this.columnManager.isAnyColumnsRightFixed(),l=O.getDataAndAriaProps(n);return v.createElement(_.Provider,{store:this.store},v.createElement(j.default,Object.assign({},n,{columnManager:this.columnManager,getRowKey:this.getRowKey}),function(e){return t.expander=e,v.createElement("div",Object.assign({ref:t.saveTableNodeRef,className:o,style:n.style,id:n.id},l),t.renderTitle(),v.createElement("div",{className:"".concat(r,"-content")},t.renderMainTable(),a&&t.renderLeftFixedTable(),s&&t.renderRightFixedTable()))}))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return e.columns&&e.columns!==t.columns?{columns:e.columns,children:null}:e.children!==t.children?{columns:null,children:e.children}:null}}]),n}(v.Component);L.childContextTypes={table:y.any,components:y.any},L.Column=M.default,L.ColumnGroup=R.default,L.defaultProps={data:[],useFixedHeader:!1,rowKey:"key",rowClassName:function(){return""},onRow:function(){},onHeaderRow:function(){},prefixCls:"rc-table",bodyStyle:{},style:{},showHeader:!0,scroll:{},rowRef:function(){return null},emptyText:function(){return"No Data"}},k.polyfill(L),t.default=L},wD64:function(e,t,n){"use strict";n.r(t);var r=n("d6i3"),i=n.n(r),o=n("p0pE"),a=n.n(o),s=n("t3Un"),l=n("3a4m"),c=n.n(l),u=n("yWgo");t["default"]={name:"passport",state:{loginLoading:!1},reducers:{save(e,t){var n=t.payload;return a()({},e,n)}},effects:{login(e,t){return i.a.mark(function n(){var r,o,a,l;return i.a.wrap(function(n){while(1)switch(n.prev=n.next){case 0:return r=e.email,o=e.password,a=t.put,n.next=4,a({type:"save",payload:{loginLoading:!0}});case 4:return n.next=6,Object(s["b"])("/passport/auth/login",{email:r,password:o});case 6:return l=n.sent,n.next=9,a({type:"save",payload:{loginLoading:!1}});case 9:if(200===l.code){n.next=11;break}return n.abrupt("return");case 11:if(Object(u["h"])(l.data.auth_data),l.data.is_admin){n.next=14;break}return n.abrupt("return");case 14:return c.a.push("/dashboard"),n.next=17,a({type:"user/getUserInfo"});case 17:case"end":return n.stop()}},n)})()}}}},wHrr:function(e,t,n){var r=n("wYm8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},wMpi:function(e,t){function n(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}e.exports=n},wOl0:function(e,t,n){var r=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"===typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function l(e,t,n,r){var i=t&&t.prototype instanceof m?t:m,o=Object.create(i.prototype),a=new T(r||[]);return o._invoke=S(e,n,a),o}function c(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=l;var u="suspendedStart",h="suspendedYield",f="executing",d="completed",p={};function m(){}function g(){}function v(){}var y={};y[o]=function(){return this};var b=Object.getPrototypeOf,w=b&&b(b(A([])));w&&w!==n&&r.call(w,o)&&(y=w);var x=v.prototype=m.prototype=Object.create(y);function _(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function E(e){function t(n,i,o,a){var s=c(e[n],e,i);if("throw"!==s.type){var l=s.arg,u=l.value;return u&&"object"===typeof u&&r.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){l.value=e,o(l)},function(e){return t("throw",e,o,a)})}a(s.arg)}var n;function i(e,r){function i(){return new Promise(function(n,i){t(e,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=i}function S(e,t,n){var r=u;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===d){if("throw"===i)throw o;return P()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===p)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===u)throw r=d,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var l=c(e,t,n);if("normal"===l.type){if(r=n.done?d:h,l.arg===p)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r=d,n.method="throw",n.arg=l.arg)}}}function C(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator["return"]&&(n.method="return",n.arg=t,C(e,n),"throw"===n.method))return p;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return p}var i=c(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,p;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,p):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,p)}function k(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 O(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function T(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var n=e[o];if(n)return n.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){while(++i=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var l=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(l&&c){if(this.prev=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),O(n),p}},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 i=r.arg;O(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:A(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),p}},e}(e.exports);try{regeneratorRuntime=r}catch(e){Function("r","regeneratorRuntime = r")(r)}},wUWy:function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},wYm8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},wZXL:function(e,t,n){var r=n("vPd/"),i=n("IX3V"),o=i.each,a=i.isFunction,s=i.isArray;function l(){if(!window.matchMedia)throw new Error("matchMedia not present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}l.prototype={constructor:l,register:function(e,t,n){var i=this.queries,l=n&&this.browserIsIncapable;return i[e]||(i[e]=new r(e,l)),a(t)&&(t={match:t}),s(t)||(t=[t]),o(t,function(t){a(t)&&(t={match:t}),i[e].addHandler(t)}),this},unregister:function(e,t){var n=this.queries[e];return n&&(t?n.removeHandler(t):(n.clear(),delete this.queries[e])),this}},e.exports=l},wgeU:function(e,t){},"wgp+":function(e,t,n){"use strict";var r=n("q1tI"),i=n.n(r),o=n("17x9"),a=n.n(o),s=n("wd/R"),l=n.n(s),c=n("TSYQ"),u=n.n(c),h=n("VCL8");function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d(e,t){for(var n=0;n=0||v&&v.indexOf(p.minute())>=0||y&&y.indexOf(p.second())>=0)return void n.setState({invalid:!0});if(d){if(d.hour()!==p.hour()||d.minute()!==p.minute()||d.second()!==p.second()){var b=d.clone();b.hour(p.hour()),b.minute(p.minute()),b.second(p.second()),f(b)}}else d!==p&&f(p)}else f(null);n.setState({invalid:!1})}),w(v(n),"onKeyDown",function(e){var t=n.props,r=t.onEsc,i=t.onKeyDown;27===e.keyCode&&r(),i(e)});var r=e.value,i=e.format;return n.state={str:r&&r.format(i)||"",invalid:!1},n}return y(t,e),p(t,[{key:"componentDidMount",value:function(){var e=this,t=this.props.focusOnOpen;if(t){var n=window.requestAnimationFrame||window.setTimeout;n(function(){e.refInput.focus(),e.refInput.select()})}}},{key:"componentDidUpdate",value:function(e){var t=this.props,n=t.value,r=t.format;n!==e.value&&this.setState({str:n&&n.format(r)||"",invalid:!1})}},{key:"getProtoValue",value:function(){var e=this.props,t=e.value,n=e.defaultOpenValue;return t||n}},{key:"getInput",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.placeholder,o=t.inputReadOnly,a=this.state,s=a.invalid,l=a.str,c=s?"".concat(n,"-input-invalid"):"";return i.a.createElement("input",{className:u()("".concat(n,"-input"),c),ref:function(t){e.refInput=t},onKeyDown:this.onKeyDown,value:l,placeholder:r,onChange:this.onInputChange,readOnly:!!o})}},{key:"render",value:function(){var e=this.props.prefixCls;return i.a.createElement("div",{className:"".concat(e,"-input-wrap")},this.getInput())}}]),t}(r["Component"]);w(x,"propTypes",{format:a.a.string,prefixCls:a.a.string,disabledDate:a.a.func,placeholder:a.a.string,clearText:a.a.string,value:a.a.object,inputReadOnly:a.a.bool,hourOptions:a.a.array,minuteOptions:a.a.array,secondOptions:a.a.array,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,onChange:a.a.func,onEsc:a.a.func,defaultOpenValue:a.a.object,currentSelectPanel:a.a.string,focusOnOpen:a.a.bool,onKeyDown:a.a.func,clearIcon:a.a.node}),w(x,"defaultProps",{inputReadOnly:!1});var _=x,E=n("i8i4"),S=n.n(E),C=n("xEkU"),k=n.n(C);function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function T(e,t){for(var n=0;n=0&&(r=!0),{value:n,disabled:r}},Y=function(e){function t(){var e,n;F(this,t);for(var r=arguments.length,i=new Array(r),o=0;o=12&&u.hour(u.hour()-12)),c(h)}else u.second(+t);i(u)}),K(U(n),"onEnterSelectPanel",function(e){var t=n.props.onCurrentSelectPanelChange;t(e)}),n}return z(t,e),V(t,[{key:"getHourSelect",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.hourOptions,a=n.disabledHours,s=n.showHour,l=n.use12Hours,c=n.onEsc;if(!s)return null;var u,h,f=a();return l?(u=[12].concat(o.filter(function(e){return e<12&&e>0})),h=e%12||12):(u=o,h=e),i.a.createElement($,{prefixCls:r,options:u.map(function(e){return G(e,f)}),selectedIndex:u.indexOf(h),type:"hour",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("hour")},onEsc:c})}},{key:"getMinuteSelect",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.minuteOptions,a=n.disabledMinutes,s=n.defaultOpenValue,l=n.showMinute,c=n.value,u=n.onEsc;if(!l)return null;var h=c||s,f=a(h.hour());return i.a.createElement($,{prefixCls:r,options:o.map(function(e){return G(e,f)}),selectedIndex:o.indexOf(e),type:"minute",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("minute")},onEsc:u})}},{key:"getSecondSelect",value:function(e){var t=this,n=this.props,r=n.prefixCls,o=n.secondOptions,a=n.disabledSeconds,s=n.showSecond,l=n.defaultOpenValue,c=n.value,u=n.onEsc;if(!s)return null;var h=c||l,f=a(h.hour(),h.minute());return i.a.createElement($,{prefixCls:r,options:o.map(function(e){return G(e,f)}),selectedIndex:o.indexOf(e),type:"second",onSelect:this.onItemChange,onMouseEnter:function(){return t.onEnterSelectPanel("second")},onEsc:u})}},{key:"getAMPMSelect",value:function(){var e=this,t=this.props,n=t.prefixCls,r=t.use12Hours,o=t.format,a=t.isAM,s=t.onEsc;if(!r)return null;var l=["am","pm"].map(function(e){return o.match(/\sA/)?e.toUpperCase():e}).map(function(e){return{value:e}}),c=a?0:1;return i.a.createElement($,{prefixCls:n,options:l,selectedIndex:c,type:"ampm",onSelect:this.onItemChange,onMouseEnter:function(){return e.onEnterSelectPanel("ampm")},onEsc:s})}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.defaultOpenValue,r=e.value,o=r||n;return i.a.createElement("div",{className:"".concat(t,"-combobox")},this.getHourSelect(o.hour()),this.getMinuteSelect(o.minute()),this.getSecondSelect(o.second()),this.getAMPMSelect(o.hour()))}}]),t}(r["Component"]);K(Y,"propTypes",{format:a.a.string,defaultOpenValue:a.a.object,prefixCls:a.a.string,value:a.a.object,onChange:a.a.func,onAmPmChange:a.a.func,showHour:a.a.bool,showMinute:a.a.bool,showSecond:a.a.bool,hourOptions:a.a.array,minuteOptions:a.a.array,secondOptions:a.a.array,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,onCurrentSelectPanelChange:a.a.func,use12Hours:a.a.bool,onEsc:a.a.func,isAM:a.a.bool});var X=Y;function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t3&&void 0!==arguments[3]?arguments[3]:1,i=[],o=0;o=0&&n.hour()<12}},{key:"render",value:function(){var e=this.props,t=e.prefixCls,n=e.className,r=e.placeholder,o=e.disabledMinutes,a=e.disabledSeconds,s=e.hideDisabledOptions,l=e.showHour,c=e.showMinute,h=e.showSecond,f=e.format,d=e.defaultOpenValue,p=e.clearText,m=e.onEsc,g=e.addon,v=e.use12Hours,y=e.focusOnOpen,b=e.onKeyDown,w=e.hourStep,x=e.minuteStep,E=e.secondStep,S=e.inputReadOnly,C=e.clearIcon,k=this.state,O=k.value,T=k.currentSelectPanel,A=this.disabledHours(),P=o(O?O.hour():null),M=a(O?O.hour():null,O?O.minute():null),R=ce(24,A,s,w),j=ce(60,P,s,x),L=ce(60,M,s,E),D=ue(d,R,j,L);return i.a.createElement("div",{className:u()(n,"".concat(t,"-inner"))},i.a.createElement(_,{clearText:p,prefixCls:t,defaultOpenValue:D,value:O,currentSelectPanel:T,onEsc:m,format:f,placeholder:r,hourOptions:R,minuteOptions:j,secondOptions:L,disabledHours:this.disabledHours,disabledMinutes:o,disabledSeconds:a,onChange:this.onChange,focusOnOpen:y,onKeyDown:b,inputReadOnly:S,clearIcon:C}),i.a.createElement(X,{prefixCls:t,value:O,defaultOpenValue:D,format:f,onChange:this.onChange,onAmPmChange:this.onAmPmChange,showHour:l,showMinute:c,showSecond:h,hourOptions:R,minuteOptions:j,secondOptions:L,disabledHours:this.disabledHours,disabledMinutes:o,disabledSeconds:a,onCurrentSelectPanelChange:this.onCurrentSelectPanelChange,use12Hours:v,onEsc:m,isAM:this.isAM()}),g(this))}}],[{key:"getDerivedStateFromProps",value:function(e,t){return"value"in e?Z({},t,{value:e.value}):null}}]),t}(r["Component"]);se(he,"propTypes",{clearText:a.a.string,prefixCls:a.a.string,className:a.a.string,defaultOpenValue:a.a.object,value:a.a.object,placeholder:a.a.string,format:a.a.string,inputReadOnly:a.a.bool,disabledHours:a.a.func,disabledMinutes:a.a.func,disabledSeconds:a.a.func,hideDisabledOptions:a.a.bool,onChange:a.a.func,onAmPmChange:a.a.func,onEsc:a.a.func,showHour:a.a.bool,showMinute:a.a.bool,showSecond:a.a.bool,use12Hours:a.a.bool,hourStep:a.a.number,minuteStep:a.a.number,secondStep:a.a.number,addon:a.a.func,focusOnOpen:a.a.bool,onKeyDown:a.a.func,clearIcon:a.a.node}),se(he,"defaultProps",{prefixCls:"rc-time-picker-panel",onChange:le,disabledHours:le,disabledMinutes:le,disabledSeconds:le,defaultOpenValue:l()(),use12Hours:!1,addon:le,onKeyDown:le,onAmPmChange:le,inputReadOnly:!1}),Object(h["polyfill"])(he);t["a"]=he},wlPd:function(e,t,n){"use strict";var r=n("il4q"),i=n("Spc3"),o=n("OsVd");e.exports=[].copyWithin||function(e,t){var n=r(this),a=o(n.length),s=i(e,a),l=i(t,a),c=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===c?a:i(c,a))-l,a-s),h=1;l0)l in n?n[s]=n[l]:delete n[s],s+=h,l+=h;return n}},x1Ya:function(e,t,n){"use strict";var r=n("jo6Y"),i=n.n(r),o=n("QbLZ"),a=n.n(o),s=n("iCc5"),l=n.n(s),c=n("FYw3"),u=n.n(c),h=n("mRg0"),f=n.n(h),d=n("q1tI"),p=n.n(d),m=n("17x9"),g=n.n(m),v=n("TSYQ"),y=n.n(v),b=n("VCL8"),w=function(e){function t(n){l()(this,t);var r=u()(this,e.call(this,n));r.handleChange=function(e){var t=r.props,n=t.disabled,i=t.onChange;n||("checked"in r.props||r.setState({checked:e.target.checked}),i&&i({target:a()({},r.props,{checked:e.target.checked}),stopPropagation:function(){e.stopPropagation()},preventDefault:function(){e.preventDefault()},nativeEvent:e.nativeEvent}))},r.saveInput=function(e){r.input=e};var i="checked"in n?n.checked:n.defaultChecked;return r.state={checked:i},r}return f()(t,e),t.getDerivedStateFromProps=function(e,t){return"checked"in e?a()({},t,{checked:e.checked}):null},t.prototype.focus=function(){this.input.focus()},t.prototype.blur=function(){this.input.blur()},t.prototype.render=function(){var e,t=this.props,n=t.prefixCls,r=t.className,o=t.style,s=t.name,l=t.id,c=t.type,u=t.disabled,h=t.readOnly,f=t.tabIndex,d=t.onClick,m=t.onFocus,g=t.onBlur,v=t.autoFocus,b=t.value,w=i()(t,["prefixCls","className","style","name","id","type","disabled","readOnly","tabIndex","onClick","onFocus","onBlur","autoFocus","value"]),x=Object.keys(w).reduce(function(e,t){return"aria-"!==t.substr(0,5)&&"data-"!==t.substr(0,5)&&"role"!==t||(e[t]=w[t]),e},{}),_=this.state.checked,E=y()(n,r,(e={},e[n+"-checked"]=_,e[n+"-disabled"]=u,e));return p.a.createElement("span",{className:E,style:o},p.a.createElement("input",a()({name:s,id:l,type:c,readOnly:h,disabled:u,tabIndex:f,className:n+"-input",checked:!!_,onClick:d,onFocus:m,onBlur:g,onChange:this.handleChange,autoFocus:v,ref:this.saveInput,value:b},x)),p.a.createElement("span",{className:n+"-inner"}))},t}(d["Component"]);w.propTypes={prefixCls:g.a.string,className:g.a.string,style:g.a.object,name:g.a.string,id:g.a.string,type:g.a.string,defaultChecked:g.a.oneOfType([g.a.number,g.a.bool]),checked:g.a.oneOfType([g.a.number,g.a.bool]),disabled:g.a.bool,onFocus:g.a.func,onBlur:g.a.func,onChange:g.a.func,onClick:g.a.func,tabIndex:g.a.oneOfType([g.a.string,g.a.number]),readOnly:g.a.bool,autoFocus:g.a.bool,value:g.a.any},w.defaultProps={prefixCls:"rc-checkbox",className:"",style:{},type:"checkbox",defaultChecked:!1,onFocus:function(){},onBlur:function(){},onChange:function(){}},Object(b["polyfill"])(w);var x=w;t["a"]=x},x6Kt:function(e,t,n){"use strict";var r=n("mrSG"),i=n("y+Vt");function o(e,t){var n,r,i,o,a,s=t.x,l=t.y,c=t.width,u=t.height,h=t.r;c<0&&(s+=c,c=-c),u<0&&(l+=u,u=-u),"number"===typeof h?n=r=i=o=h:h instanceof Array?1===h.length?n=r=i=o=h[0]:2===h.length?(n=i=h[0],r=o=h[1]):3===h.length?(n=h[0],r=o=h[1],i=h[2]):(n=h[0],r=h[1],i=h[2],o=h[3]):n=r=i=o=0,n+r>c&&(a=n+r,n*=c/a,r*=c/a),i+o>c&&(a=i+o,i*=c/a,o*=c/a),r+i>u&&(a=r+i,r*=u/a,i*=u/a),n+o>u&&(a=n+o,n*=u/a,o*=u/a),e.moveTo(s+n,l),e.lineTo(s+c-r,l),0!==r&&e.arc(s+c-r,l+r,r,-Math.PI/2,0),e.lineTo(s+c,l+u-i),0!==i&&e.arc(s+c-i,l+u-i,i,0,Math.PI/2),e.lineTo(s+o,l+u),0!==o&&e.arc(s+o,l+u-o,o,Math.PI/2,Math.PI),e.lineTo(s,l+n),0!==n&&e.arc(s+n,l+n,n,Math.PI,1.5*Math.PI)}var a=n("nPnh"),s=function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e}(),l={},c=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.getDefaultShape=function(){return new s},t.prototype.buildPath=function(e,t){var n,r,i,s;if(this.subPixelOptimize){var c=Object(a["c"])(l,t,this.style);n=c.x,r=c.y,i=c.width,s=c.height,c.r=t.r,t=c}else n=t.x,r=t.y,i=t.width,s=t.height;t.r?o(e,t):e.rect(n,r,i,s)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t}(i["b"]);c.prototype.type="rect";t["a"]=c},xEkU:function(e,t,n){(function(t){for(var r=n("bQgK"),i="undefined"===typeof window?t:window,o=["moz","webkit"],a="AnimationFrame",s=i["request"+a],l=i["cancel"+a]||i["cancelRequest"+a],c=0;!s&&c=55296&&s<=57343){if(s>=55296&&s<=56319&&r+1=56320&&l<=57343)){u+=encodeURIComponent(e[r]+e[r+1]),r++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[r]);return u}o.defaultChars=";/?:@&=+$,-_.!~*'()#",o.componentChars="-_.!~*'()",e.exports=o},xI0J:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.create=t.connect=t.Provider=void 0;var r=n("Z4ex"),i=c(r),o=n("V/6I"),a=c(o),s=n("luuN"),l=c(s);function c(e){return e&&e.__esModule?e:{default:e}}t.Provider=i.default,t.connect=a.default,t.create=l.default},xJie:function(e,t,n){var r=n("oxo0"),i=n("OeOC"),o=n("Lnex")(!1),a=n("J57/")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),l=0,c=[];for(n in s)n!=a&&r(s,n)&&c.push(n);while(t.length>l)r(s,n=t[l++])&&(~o(c,n)||c.push(n));return c}},xKz9:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=u;var r=o(n("q1tI")),i=o(n("CnBM"));function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s(e){for(var t=1;t","GT":">","Gt":"\u226b","gtdot":"\u22d7","gtlPar":"\u2995","gtquest":"\u2a7c","gtrapprox":"\u2a86","gtrarr":"\u2978","gtrdot":"\u22d7","gtreqless":"\u22db","gtreqqless":"\u2a8c","gtrless":"\u2277","gtrsim":"\u2273","gvertneqq":"\u2269\ufe00","gvnE":"\u2269\ufe00","Hacek":"\u02c7","hairsp":"\u200a","half":"\xbd","hamilt":"\u210b","HARDcy":"\u042a","hardcy":"\u044a","harrcir":"\u2948","harr":"\u2194","hArr":"\u21d4","harrw":"\u21ad","Hat":"^","hbar":"\u210f","Hcirc":"\u0124","hcirc":"\u0125","hearts":"\u2665","heartsuit":"\u2665","hellip":"\u2026","hercon":"\u22b9","hfr":"\ud835\udd25","Hfr":"\u210c","HilbertSpace":"\u210b","hksearow":"\u2925","hkswarow":"\u2926","hoarr":"\u21ff","homtht":"\u223b","hookleftarrow":"\u21a9","hookrightarrow":"\u21aa","hopf":"\ud835\udd59","Hopf":"\u210d","horbar":"\u2015","HorizontalLine":"\u2500","hscr":"\ud835\udcbd","Hscr":"\u210b","hslash":"\u210f","Hstrok":"\u0126","hstrok":"\u0127","HumpDownHump":"\u224e","HumpEqual":"\u224f","hybull":"\u2043","hyphen":"\u2010","Iacute":"\xcd","iacute":"\xed","ic":"\u2063","Icirc":"\xce","icirc":"\xee","Icy":"\u0418","icy":"\u0438","Idot":"\u0130","IEcy":"\u0415","iecy":"\u0435","iexcl":"\xa1","iff":"\u21d4","ifr":"\ud835\udd26","Ifr":"\u2111","Igrave":"\xcc","igrave":"\xec","ii":"\u2148","iiiint":"\u2a0c","iiint":"\u222d","iinfin":"\u29dc","iiota":"\u2129","IJlig":"\u0132","ijlig":"\u0133","Imacr":"\u012a","imacr":"\u012b","image":"\u2111","ImaginaryI":"\u2148","imagline":"\u2110","imagpart":"\u2111","imath":"\u0131","Im":"\u2111","imof":"\u22b7","imped":"\u01b5","Implies":"\u21d2","incare":"\u2105","in":"\u2208","infin":"\u221e","infintie":"\u29dd","inodot":"\u0131","intcal":"\u22ba","int":"\u222b","Int":"\u222c","integers":"\u2124","Integral":"\u222b","intercal":"\u22ba","Intersection":"\u22c2","intlarhk":"\u2a17","intprod":"\u2a3c","InvisibleComma":"\u2063","InvisibleTimes":"\u2062","IOcy":"\u0401","iocy":"\u0451","Iogon":"\u012e","iogon":"\u012f","Iopf":"\ud835\udd40","iopf":"\ud835\udd5a","Iota":"\u0399","iota":"\u03b9","iprod":"\u2a3c","iquest":"\xbf","iscr":"\ud835\udcbe","Iscr":"\u2110","isin":"\u2208","isindot":"\u22f5","isinE":"\u22f9","isins":"\u22f4","isinsv":"\u22f3","isinv":"\u2208","it":"\u2062","Itilde":"\u0128","itilde":"\u0129","Iukcy":"\u0406","iukcy":"\u0456","Iuml":"\xcf","iuml":"\xef","Jcirc":"\u0134","jcirc":"\u0135","Jcy":"\u0419","jcy":"\u0439","Jfr":"\ud835\udd0d","jfr":"\ud835\udd27","jmath":"\u0237","Jopf":"\ud835\udd41","jopf":"\ud835\udd5b","Jscr":"\ud835\udca5","jscr":"\ud835\udcbf","Jsercy":"\u0408","jsercy":"\u0458","Jukcy":"\u0404","jukcy":"\u0454","Kappa":"\u039a","kappa":"\u03ba","kappav":"\u03f0","Kcedil":"\u0136","kcedil":"\u0137","Kcy":"\u041a","kcy":"\u043a","Kfr":"\ud835\udd0e","kfr":"\ud835\udd28","kgreen":"\u0138","KHcy":"\u0425","khcy":"\u0445","KJcy":"\u040c","kjcy":"\u045c","Kopf":"\ud835\udd42","kopf":"\ud835\udd5c","Kscr":"\ud835\udca6","kscr":"\ud835\udcc0","lAarr":"\u21da","Lacute":"\u0139","lacute":"\u013a","laemptyv":"\u29b4","lagran":"\u2112","Lambda":"\u039b","lambda":"\u03bb","lang":"\u27e8","Lang":"\u27ea","langd":"\u2991","langle":"\u27e8","lap":"\u2a85","Laplacetrf":"\u2112","laquo":"\xab","larrb":"\u21e4","larrbfs":"\u291f","larr":"\u2190","Larr":"\u219e","lArr":"\u21d0","larrfs":"\u291d","larrhk":"\u21a9","larrlp":"\u21ab","larrpl":"\u2939","larrsim":"\u2973","larrtl":"\u21a2","latail":"\u2919","lAtail":"\u291b","lat":"\u2aab","late":"\u2aad","lates":"\u2aad\ufe00","lbarr":"\u290c","lBarr":"\u290e","lbbrk":"\u2772","lbrace":"{","lbrack":"[","lbrke":"\u298b","lbrksld":"\u298f","lbrkslu":"\u298d","Lcaron":"\u013d","lcaron":"\u013e","Lcedil":"\u013b","lcedil":"\u013c","lceil":"\u2308","lcub":"{","Lcy":"\u041b","lcy":"\u043b","ldca":"\u2936","ldquo":"\u201c","ldquor":"\u201e","ldrdhar":"\u2967","ldrushar":"\u294b","ldsh":"\u21b2","le":"\u2264","lE":"\u2266","LeftAngleBracket":"\u27e8","LeftArrowBar":"\u21e4","leftarrow":"\u2190","LeftArrow":"\u2190","Leftarrow":"\u21d0","LeftArrowRightArrow":"\u21c6","leftarrowtail":"\u21a2","LeftCeiling":"\u2308","LeftDoubleBracket":"\u27e6","LeftDownTeeVector":"\u2961","LeftDownVectorBar":"\u2959","LeftDownVector":"\u21c3","LeftFloor":"\u230a","leftharpoondown":"\u21bd","leftharpoonup":"\u21bc","leftleftarrows":"\u21c7","leftrightarrow":"\u2194","LeftRightArrow":"\u2194","Leftrightarrow":"\u21d4","leftrightarrows":"\u21c6","leftrightharpoons":"\u21cb","leftrightsquigarrow":"\u21ad","LeftRightVector":"\u294e","LeftTeeArrow":"\u21a4","LeftTee":"\u22a3","LeftTeeVector":"\u295a","leftthreetimes":"\u22cb","LeftTriangleBar":"\u29cf","LeftTriangle":"\u22b2","LeftTriangleEqual":"\u22b4","LeftUpDownVector":"\u2951","LeftUpTeeVector":"\u2960","LeftUpVectorBar":"\u2958","LeftUpVector":"\u21bf","LeftVectorBar":"\u2952","LeftVector":"\u21bc","lEg":"\u2a8b","leg":"\u22da","leq":"\u2264","leqq":"\u2266","leqslant":"\u2a7d","lescc":"\u2aa8","les":"\u2a7d","lesdot":"\u2a7f","lesdoto":"\u2a81","lesdotor":"\u2a83","lesg":"\u22da\ufe00","lesges":"\u2a93","lessapprox":"\u2a85","lessdot":"\u22d6","lesseqgtr":"\u22da","lesseqqgtr":"\u2a8b","LessEqualGreater":"\u22da","LessFullEqual":"\u2266","LessGreater":"\u2276","lessgtr":"\u2276","LessLess":"\u2aa1","lesssim":"\u2272","LessSlantEqual":"\u2a7d","LessTilde":"\u2272","lfisht":"\u297c","lfloor":"\u230a","Lfr":"\ud835\udd0f","lfr":"\ud835\udd29","lg":"\u2276","lgE":"\u2a91","lHar":"\u2962","lhard":"\u21bd","lharu":"\u21bc","lharul":"\u296a","lhblk":"\u2584","LJcy":"\u0409","ljcy":"\u0459","llarr":"\u21c7","ll":"\u226a","Ll":"\u22d8","llcorner":"\u231e","Lleftarrow":"\u21da","llhard":"\u296b","lltri":"\u25fa","Lmidot":"\u013f","lmidot":"\u0140","lmoustache":"\u23b0","lmoust":"\u23b0","lnap":"\u2a89","lnapprox":"\u2a89","lne":"\u2a87","lnE":"\u2268","lneq":"\u2a87","lneqq":"\u2268","lnsim":"\u22e6","loang":"\u27ec","loarr":"\u21fd","lobrk":"\u27e6","longleftarrow":"\u27f5","LongLeftArrow":"\u27f5","Longleftarrow":"\u27f8","longleftrightarrow":"\u27f7","LongLeftRightArrow":"\u27f7","Longleftrightarrow":"\u27fa","longmapsto":"\u27fc","longrightarrow":"\u27f6","LongRightArrow":"\u27f6","Longrightarrow":"\u27f9","looparrowleft":"\u21ab","looparrowright":"\u21ac","lopar":"\u2985","Lopf":"\ud835\udd43","lopf":"\ud835\udd5d","loplus":"\u2a2d","lotimes":"\u2a34","lowast":"\u2217","lowbar":"_","LowerLeftArrow":"\u2199","LowerRightArrow":"\u2198","loz":"\u25ca","lozenge":"\u25ca","lozf":"\u29eb","lpar":"(","lparlt":"\u2993","lrarr":"\u21c6","lrcorner":"\u231f","lrhar":"\u21cb","lrhard":"\u296d","lrm":"\u200e","lrtri":"\u22bf","lsaquo":"\u2039","lscr":"\ud835\udcc1","Lscr":"\u2112","lsh":"\u21b0","Lsh":"\u21b0","lsim":"\u2272","lsime":"\u2a8d","lsimg":"\u2a8f","lsqb":"[","lsquo":"\u2018","lsquor":"\u201a","Lstrok":"\u0141","lstrok":"\u0142","ltcc":"\u2aa6","ltcir":"\u2a79","lt":"<","LT":"<","Lt":"\u226a","ltdot":"\u22d6","lthree":"\u22cb","ltimes":"\u22c9","ltlarr":"\u2976","ltquest":"\u2a7b","ltri":"\u25c3","ltrie":"\u22b4","ltrif":"\u25c2","ltrPar":"\u2996","lurdshar":"\u294a","luruhar":"\u2966","lvertneqq":"\u2268\ufe00","lvnE":"\u2268\ufe00","macr":"\xaf","male":"\u2642","malt":"\u2720","maltese":"\u2720","Map":"\u2905","map":"\u21a6","mapsto":"\u21a6","mapstodown":"\u21a7","mapstoleft":"\u21a4","mapstoup":"\u21a5","marker":"\u25ae","mcomma":"\u2a29","Mcy":"\u041c","mcy":"\u043c","mdash":"\u2014","mDDot":"\u223a","measuredangle":"\u2221","MediumSpace":"\u205f","Mellintrf":"\u2133","Mfr":"\ud835\udd10","mfr":"\ud835\udd2a","mho":"\u2127","micro":"\xb5","midast":"*","midcir":"\u2af0","mid":"\u2223","middot":"\xb7","minusb":"\u229f","minus":"\u2212","minusd":"\u2238","minusdu":"\u2a2a","MinusPlus":"\u2213","mlcp":"\u2adb","mldr":"\u2026","mnplus":"\u2213","models":"\u22a7","Mopf":"\ud835\udd44","mopf":"\ud835\udd5e","mp":"\u2213","mscr":"\ud835\udcc2","Mscr":"\u2133","mstpos":"\u223e","Mu":"\u039c","mu":"\u03bc","multimap":"\u22b8","mumap":"\u22b8","nabla":"\u2207","Nacute":"\u0143","nacute":"\u0144","nang":"\u2220\u20d2","nap":"\u2249","napE":"\u2a70\u0338","napid":"\u224b\u0338","napos":"\u0149","napprox":"\u2249","natural":"\u266e","naturals":"\u2115","natur":"\u266e","nbsp":"\xa0","nbump":"\u224e\u0338","nbumpe":"\u224f\u0338","ncap":"\u2a43","Ncaron":"\u0147","ncaron":"\u0148","Ncedil":"\u0145","ncedil":"\u0146","ncong":"\u2247","ncongdot":"\u2a6d\u0338","ncup":"\u2a42","Ncy":"\u041d","ncy":"\u043d","ndash":"\u2013","nearhk":"\u2924","nearr":"\u2197","neArr":"\u21d7","nearrow":"\u2197","ne":"\u2260","nedot":"\u2250\u0338","NegativeMediumSpace":"\u200b","NegativeThickSpace":"\u200b","NegativeThinSpace":"\u200b","NegativeVeryThinSpace":"\u200b","nequiv":"\u2262","nesear":"\u2928","nesim":"\u2242\u0338","NestedGreaterGreater":"\u226b","NestedLessLess":"\u226a","NewLine":"\\n","nexist":"\u2204","nexists":"\u2204","Nfr":"\ud835\udd11","nfr":"\ud835\udd2b","ngE":"\u2267\u0338","nge":"\u2271","ngeq":"\u2271","ngeqq":"\u2267\u0338","ngeqslant":"\u2a7e\u0338","nges":"\u2a7e\u0338","nGg":"\u22d9\u0338","ngsim":"\u2275","nGt":"\u226b\u20d2","ngt":"\u226f","ngtr":"\u226f","nGtv":"\u226b\u0338","nharr":"\u21ae","nhArr":"\u21ce","nhpar":"\u2af2","ni":"\u220b","nis":"\u22fc","nisd":"\u22fa","niv":"\u220b","NJcy":"\u040a","njcy":"\u045a","nlarr":"\u219a","nlArr":"\u21cd","nldr":"\u2025","nlE":"\u2266\u0338","nle":"\u2270","nleftarrow":"\u219a","nLeftarrow":"\u21cd","nleftrightarrow":"\u21ae","nLeftrightarrow":"\u21ce","nleq":"\u2270","nleqq":"\u2266\u0338","nleqslant":"\u2a7d\u0338","nles":"\u2a7d\u0338","nless":"\u226e","nLl":"\u22d8\u0338","nlsim":"\u2274","nLt":"\u226a\u20d2","nlt":"\u226e","nltri":"\u22ea","nltrie":"\u22ec","nLtv":"\u226a\u0338","nmid":"\u2224","NoBreak":"\u2060","NonBreakingSpace":"\xa0","nopf":"\ud835\udd5f","Nopf":"\u2115","Not":"\u2aec","not":"\xac","NotCongruent":"\u2262","NotCupCap":"\u226d","NotDoubleVerticalBar":"\u2226","NotElement":"\u2209","NotEqual":"\u2260","NotEqualTilde":"\u2242\u0338","NotExists":"\u2204","NotGreater":"\u226f","NotGreaterEqual":"\u2271","NotGreaterFullEqual":"\u2267\u0338","NotGreaterGreater":"\u226b\u0338","NotGreaterLess":"\u2279","NotGreaterSlantEqual":"\u2a7e\u0338","NotGreaterTilde":"\u2275","NotHumpDownHump":"\u224e\u0338","NotHumpEqual":"\u224f\u0338","notin":"\u2209","notindot":"\u22f5\u0338","notinE":"\u22f9\u0338","notinva":"\u2209","notinvb":"\u22f7","notinvc":"\u22f6","NotLeftTriangleBar":"\u29cf\u0338","NotLeftTriangle":"\u22ea","NotLeftTriangleEqual":"\u22ec","NotLess":"\u226e","NotLessEqual":"\u2270","NotLessGreater":"\u2278","NotLessLess":"\u226a\u0338","NotLessSlantEqual":"\u2a7d\u0338","NotLessTilde":"\u2274","NotNestedGreaterGreater":"\u2aa2\u0338","NotNestedLessLess":"\u2aa1\u0338","notni":"\u220c","notniva":"\u220c","notnivb":"\u22fe","notnivc":"\u22fd","NotPrecedes":"\u2280","NotPrecedesEqual":"\u2aaf\u0338","NotPrecedesSlantEqual":"\u22e0","NotReverseElement":"\u220c","NotRightTriangleBar":"\u29d0\u0338","NotRightTriangle":"\u22eb","NotRightTriangleEqual":"\u22ed","NotSquareSubset":"\u228f\u0338","NotSquareSubsetEqual":"\u22e2","NotSquareSuperset":"\u2290\u0338","NotSquareSupersetEqual":"\u22e3","NotSubset":"\u2282\u20d2","NotSubsetEqual":"\u2288","NotSucceeds":"\u2281","NotSucceedsEqual":"\u2ab0\u0338","NotSucceedsSlantEqual":"\u22e1","NotSucceedsTilde":"\u227f\u0338","NotSuperset":"\u2283\u20d2","NotSupersetEqual":"\u2289","NotTilde":"\u2241","NotTildeEqual":"\u2244","NotTildeFullEqual":"\u2247","NotTildeTilde":"\u2249","NotVerticalBar":"\u2224","nparallel":"\u2226","npar":"\u2226","nparsl":"\u2afd\u20e5","npart":"\u2202\u0338","npolint":"\u2a14","npr":"\u2280","nprcue":"\u22e0","nprec":"\u2280","npreceq":"\u2aaf\u0338","npre":"\u2aaf\u0338","nrarrc":"\u2933\u0338","nrarr":"\u219b","nrArr":"\u21cf","nrarrw":"\u219d\u0338","nrightarrow":"\u219b","nRightarrow":"\u21cf","nrtri":"\u22eb","nrtrie":"\u22ed","nsc":"\u2281","nsccue":"\u22e1","nsce":"\u2ab0\u0338","Nscr":"\ud835\udca9","nscr":"\ud835\udcc3","nshortmid":"\u2224","nshortparallel":"\u2226","nsim":"\u2241","nsime":"\u2244","nsimeq":"\u2244","nsmid":"\u2224","nspar":"\u2226","nsqsube":"\u22e2","nsqsupe":"\u22e3","nsub":"\u2284","nsubE":"\u2ac5\u0338","nsube":"\u2288","nsubset":"\u2282\u20d2","nsubseteq":"\u2288","nsubseteqq":"\u2ac5\u0338","nsucc":"\u2281","nsucceq":"\u2ab0\u0338","nsup":"\u2285","nsupE":"\u2ac6\u0338","nsupe":"\u2289","nsupset":"\u2283\u20d2","nsupseteq":"\u2289","nsupseteqq":"\u2ac6\u0338","ntgl":"\u2279","Ntilde":"\xd1","ntilde":"\xf1","ntlg":"\u2278","ntriangleleft":"\u22ea","ntrianglelefteq":"\u22ec","ntriangleright":"\u22eb","ntrianglerighteq":"\u22ed","Nu":"\u039d","nu":"\u03bd","num":"#","numero":"\u2116","numsp":"\u2007","nvap":"\u224d\u20d2","nvdash":"\u22ac","nvDash":"\u22ad","nVdash":"\u22ae","nVDash":"\u22af","nvge":"\u2265\u20d2","nvgt":">\u20d2","nvHarr":"\u2904","nvinfin":"\u29de","nvlArr":"\u2902","nvle":"\u2264\u20d2","nvlt":"<\u20d2","nvltrie":"\u22b4\u20d2","nvrArr":"\u2903","nvrtrie":"\u22b5\u20d2","nvsim":"\u223c\u20d2","nwarhk":"\u2923","nwarr":"\u2196","nwArr":"\u21d6","nwarrow":"\u2196","nwnear":"\u2927","Oacute":"\xd3","oacute":"\xf3","oast":"\u229b","Ocirc":"\xd4","ocirc":"\xf4","ocir":"\u229a","Ocy":"\u041e","ocy":"\u043e","odash":"\u229d","Odblac":"\u0150","odblac":"\u0151","odiv":"\u2a38","odot":"\u2299","odsold":"\u29bc","OElig":"\u0152","oelig":"\u0153","ofcir":"\u29bf","Ofr":"\ud835\udd12","ofr":"\ud835\udd2c","ogon":"\u02db","Ograve":"\xd2","ograve":"\xf2","ogt":"\u29c1","ohbar":"\u29b5","ohm":"\u03a9","oint":"\u222e","olarr":"\u21ba","olcir":"\u29be","olcross":"\u29bb","oline":"\u203e","olt":"\u29c0","Omacr":"\u014c","omacr":"\u014d","Omega":"\u03a9","omega":"\u03c9","Omicron":"\u039f","omicron":"\u03bf","omid":"\u29b6","ominus":"\u2296","Oopf":"\ud835\udd46","oopf":"\ud835\udd60","opar":"\u29b7","OpenCurlyDoubleQuote":"\u201c","OpenCurlyQuote":"\u2018","operp":"\u29b9","oplus":"\u2295","orarr":"\u21bb","Or":"\u2a54","or":"\u2228","ord":"\u2a5d","order":"\u2134","orderof":"\u2134","ordf":"\xaa","ordm":"\xba","origof":"\u22b6","oror":"\u2a56","orslope":"\u2a57","orv":"\u2a5b","oS":"\u24c8","Oscr":"\ud835\udcaa","oscr":"\u2134","Oslash":"\xd8","oslash":"\xf8","osol":"\u2298","Otilde":"\xd5","otilde":"\xf5","otimesas":"\u2a36","Otimes":"\u2a37","otimes":"\u2297","Ouml":"\xd6","ouml":"\xf6","ovbar":"\u233d","OverBar":"\u203e","OverBrace":"\u23de","OverBracket":"\u23b4","OverParenthesis":"\u23dc","para":"\xb6","parallel":"\u2225","par":"\u2225","parsim":"\u2af3","parsl":"\u2afd","part":"\u2202","PartialD":"\u2202","Pcy":"\u041f","pcy":"\u043f","percnt":"%","period":".","permil":"\u2030","perp":"\u22a5","pertenk":"\u2031","Pfr":"\ud835\udd13","pfr":"\ud835\udd2d","Phi":"\u03a6","phi":"\u03c6","phiv":"\u03d5","phmmat":"\u2133","phone":"\u260e","Pi":"\u03a0","pi":"\u03c0","pitchfork":"\u22d4","piv":"\u03d6","planck":"\u210f","planckh":"\u210e","plankv":"\u210f","plusacir":"\u2a23","plusb":"\u229e","pluscir":"\u2a22","plus":"+","plusdo":"\u2214","plusdu":"\u2a25","pluse":"\u2a72","PlusMinus":"\xb1","plusmn":"\xb1","plussim":"\u2a26","plustwo":"\u2a27","pm":"\xb1","Poincareplane":"\u210c","pointint":"\u2a15","popf":"\ud835\udd61","Popf":"\u2119","pound":"\xa3","prap":"\u2ab7","Pr":"\u2abb","pr":"\u227a","prcue":"\u227c","precapprox":"\u2ab7","prec":"\u227a","preccurlyeq":"\u227c","Precedes":"\u227a","PrecedesEqual":"\u2aaf","PrecedesSlantEqual":"\u227c","PrecedesTilde":"\u227e","preceq":"\u2aaf","precnapprox":"\u2ab9","precneqq":"\u2ab5","precnsim":"\u22e8","pre":"\u2aaf","prE":"\u2ab3","precsim":"\u227e","prime":"\u2032","Prime":"\u2033","primes":"\u2119","prnap":"\u2ab9","prnE":"\u2ab5","prnsim":"\u22e8","prod":"\u220f","Product":"\u220f","profalar":"\u232e","profline":"\u2312","profsurf":"\u2313","prop":"\u221d","Proportional":"\u221d","Proportion":"\u2237","propto":"\u221d","prsim":"\u227e","prurel":"\u22b0","Pscr":"\ud835\udcab","pscr":"\ud835\udcc5","Psi":"\u03a8","psi":"\u03c8","puncsp":"\u2008","Qfr":"\ud835\udd14","qfr":"\ud835\udd2e","qint":"\u2a0c","qopf":"\ud835\udd62","Qopf":"\u211a","qprime":"\u2057","Qscr":"\ud835\udcac","qscr":"\ud835\udcc6","quaternions":"\u210d","quatint":"\u2a16","quest":"?","questeq":"\u225f","quot":"\\"","QUOT":"\\"","rAarr":"\u21db","race":"\u223d\u0331","Racute":"\u0154","racute":"\u0155","radic":"\u221a","raemptyv":"\u29b3","rang":"\u27e9","Rang":"\u27eb","rangd":"\u2992","range":"\u29a5","rangle":"\u27e9","raquo":"\xbb","rarrap":"\u2975","rarrb":"\u21e5","rarrbfs":"\u2920","rarrc":"\u2933","rarr":"\u2192","Rarr":"\u21a0","rArr":"\u21d2","rarrfs":"\u291e","rarrhk":"\u21aa","rarrlp":"\u21ac","rarrpl":"\u2945","rarrsim":"\u2974","Rarrtl":"\u2916","rarrtl":"\u21a3","rarrw":"\u219d","ratail":"\u291a","rAtail":"\u291c","ratio":"\u2236","rationals":"\u211a","rbarr":"\u290d","rBarr":"\u290f","RBarr":"\u2910","rbbrk":"\u2773","rbrace":"}","rbrack":"]","rbrke":"\u298c","rbrksld":"\u298e","rbrkslu":"\u2990","Rcaron":"\u0158","rcaron":"\u0159","Rcedil":"\u0156","rcedil":"\u0157","rceil":"\u2309","rcub":"}","Rcy":"\u0420","rcy":"\u0440","rdca":"\u2937","rdldhar":"\u2969","rdquo":"\u201d","rdquor":"\u201d","rdsh":"\u21b3","real":"\u211c","realine":"\u211b","realpart":"\u211c","reals":"\u211d","Re":"\u211c","rect":"\u25ad","reg":"\xae","REG":"\xae","ReverseElement":"\u220b","ReverseEquilibrium":"\u21cb","ReverseUpEquilibrium":"\u296f","rfisht":"\u297d","rfloor":"\u230b","rfr":"\ud835\udd2f","Rfr":"\u211c","rHar":"\u2964","rhard":"\u21c1","rharu":"\u21c0","rharul":"\u296c","Rho":"\u03a1","rho":"\u03c1","rhov":"\u03f1","RightAngleBracket":"\u27e9","RightArrowBar":"\u21e5","rightarrow":"\u2192","RightArrow":"\u2192","Rightarrow":"\u21d2","RightArrowLeftArrow":"\u21c4","rightarrowtail":"\u21a3","RightCeiling":"\u2309","RightDoubleBracket":"\u27e7","RightDownTeeVector":"\u295d","RightDownVectorBar":"\u2955","RightDownVector":"\u21c2","RightFloor":"\u230b","rightharpoondown":"\u21c1","rightharpoonup":"\u21c0","rightleftarrows":"\u21c4","rightleftharpoons":"\u21cc","rightrightarrows":"\u21c9","rightsquigarrow":"\u219d","RightTeeArrow":"\u21a6","RightTee":"\u22a2","RightTeeVector":"\u295b","rightthreetimes":"\u22cc","RightTriangleBar":"\u29d0","RightTriangle":"\u22b3","RightTriangleEqual":"\u22b5","RightUpDownVector":"\u294f","RightUpTeeVector":"\u295c","RightUpVectorBar":"\u2954","RightUpVector":"\u21be","RightVectorBar":"\u2953","RightVector":"\u21c0","ring":"\u02da","risingdotseq":"\u2253","rlarr":"\u21c4","rlhar":"\u21cc","rlm":"\u200f","rmoustache":"\u23b1","rmoust":"\u23b1","rnmid":"\u2aee","roang":"\u27ed","roarr":"\u21fe","robrk":"\u27e7","ropar":"\u2986","ropf":"\ud835\udd63","Ropf":"\u211d","roplus":"\u2a2e","rotimes":"\u2a35","RoundImplies":"\u2970","rpar":")","rpargt":"\u2994","rppolint":"\u2a12","rrarr":"\u21c9","Rrightarrow":"\u21db","rsaquo":"\u203a","rscr":"\ud835\udcc7","Rscr":"\u211b","rsh":"\u21b1","Rsh":"\u21b1","rsqb":"]","rsquo":"\u2019","rsquor":"\u2019","rthree":"\u22cc","rtimes":"\u22ca","rtri":"\u25b9","rtrie":"\u22b5","rtrif":"\u25b8","rtriltri":"\u29ce","RuleDelayed":"\u29f4","ruluhar":"\u2968","rx":"\u211e","Sacute":"\u015a","sacute":"\u015b","sbquo":"\u201a","scap":"\u2ab8","Scaron":"\u0160","scaron":"\u0161","Sc":"\u2abc","sc":"\u227b","sccue":"\u227d","sce":"\u2ab0","scE":"\u2ab4","Scedil":"\u015e","scedil":"\u015f","Scirc":"\u015c","scirc":"\u015d","scnap":"\u2aba","scnE":"\u2ab6","scnsim":"\u22e9","scpolint":"\u2a13","scsim":"\u227f","Scy":"\u0421","scy":"\u0441","sdotb":"\u22a1","sdot":"\u22c5","sdote":"\u2a66","searhk":"\u2925","searr":"\u2198","seArr":"\u21d8","searrow":"\u2198","sect":"\xa7","semi":";","seswar":"\u2929","setminus":"\u2216","setmn":"\u2216","sext":"\u2736","Sfr":"\ud835\udd16","sfr":"\ud835\udd30","sfrown":"\u2322","sharp":"\u266f","SHCHcy":"\u0429","shchcy":"\u0449","SHcy":"\u0428","shcy":"\u0448","ShortDownArrow":"\u2193","ShortLeftArrow":"\u2190","shortmid":"\u2223","shortparallel":"\u2225","ShortRightArrow":"\u2192","ShortUpArrow":"\u2191","shy":"\xad","Sigma":"\u03a3","sigma":"\u03c3","sigmaf":"\u03c2","sigmav":"\u03c2","sim":"\u223c","simdot":"\u2a6a","sime":"\u2243","simeq":"\u2243","simg":"\u2a9e","simgE":"\u2aa0","siml":"\u2a9d","simlE":"\u2a9f","simne":"\u2246","simplus":"\u2a24","simrarr":"\u2972","slarr":"\u2190","SmallCircle":"\u2218","smallsetminus":"\u2216","smashp":"\u2a33","smeparsl":"\u29e4","smid":"\u2223","smile":"\u2323","smt":"\u2aaa","smte":"\u2aac","smtes":"\u2aac\ufe00","SOFTcy":"\u042c","softcy":"\u044c","solbar":"\u233f","solb":"\u29c4","sol":"/","Sopf":"\ud835\udd4a","sopf":"\ud835\udd64","spades":"\u2660","spadesuit":"\u2660","spar":"\u2225","sqcap":"\u2293","sqcaps":"\u2293\ufe00","sqcup":"\u2294","sqcups":"\u2294\ufe00","Sqrt":"\u221a","sqsub":"\u228f","sqsube":"\u2291","sqsubset":"\u228f","sqsubseteq":"\u2291","sqsup":"\u2290","sqsupe":"\u2292","sqsupset":"\u2290","sqsupseteq":"\u2292","square":"\u25a1","Square":"\u25a1","SquareIntersection":"\u2293","SquareSubset":"\u228f","SquareSubsetEqual":"\u2291","SquareSuperset":"\u2290","SquareSupersetEqual":"\u2292","SquareUnion":"\u2294","squarf":"\u25aa","squ":"\u25a1","squf":"\u25aa","srarr":"\u2192","Sscr":"\ud835\udcae","sscr":"\ud835\udcc8","ssetmn":"\u2216","ssmile":"\u2323","sstarf":"\u22c6","Star":"\u22c6","star":"\u2606","starf":"\u2605","straightepsilon":"\u03f5","straightphi":"\u03d5","strns":"\xaf","sub":"\u2282","Sub":"\u22d0","subdot":"\u2abd","subE":"\u2ac5","sube":"\u2286","subedot":"\u2ac3","submult":"\u2ac1","subnE":"\u2acb","subne":"\u228a","subplus":"\u2abf","subrarr":"\u2979","subset":"\u2282","Subset":"\u22d0","subseteq":"\u2286","subseteqq":"\u2ac5","SubsetEqual":"\u2286","subsetneq":"\u228a","subsetneqq":"\u2acb","subsim":"\u2ac7","subsub":"\u2ad5","subsup":"\u2ad3","succapprox":"\u2ab8","succ":"\u227b","succcurlyeq":"\u227d","Succeeds":"\u227b","SucceedsEqual":"\u2ab0","SucceedsSlantEqual":"\u227d","SucceedsTilde":"\u227f","succeq":"\u2ab0","succnapprox":"\u2aba","succneqq":"\u2ab6","succnsim":"\u22e9","succsim":"\u227f","SuchThat":"\u220b","sum":"\u2211","Sum":"\u2211","sung":"\u266a","sup1":"\xb9","sup2":"\xb2","sup3":"\xb3","sup":"\u2283","Sup":"\u22d1","supdot":"\u2abe","supdsub":"\u2ad8","supE":"\u2ac6","supe":"\u2287","supedot":"\u2ac4","Superset":"\u2283","SupersetEqual":"\u2287","suphsol":"\u27c9","suphsub":"\u2ad7","suplarr":"\u297b","supmult":"\u2ac2","supnE":"\u2acc","supne":"\u228b","supplus":"\u2ac0","supset":"\u2283","Supset":"\u22d1","supseteq":"\u2287","supseteqq":"\u2ac6","supsetneq":"\u228b","supsetneqq":"\u2acc","supsim":"\u2ac8","supsub":"\u2ad4","supsup":"\u2ad6","swarhk":"\u2926","swarr":"\u2199","swArr":"\u21d9","swarrow":"\u2199","swnwar":"\u292a","szlig":"\xdf","Tab":"\\t","target":"\u2316","Tau":"\u03a4","tau":"\u03c4","tbrk":"\u23b4","Tcaron":"\u0164","tcaron":"\u0165","Tcedil":"\u0162","tcedil":"\u0163","Tcy":"\u0422","tcy":"\u0442","tdot":"\u20db","telrec":"\u2315","Tfr":"\ud835\udd17","tfr":"\ud835\udd31","there4":"\u2234","therefore":"\u2234","Therefore":"\u2234","Theta":"\u0398","theta":"\u03b8","thetasym":"\u03d1","thetav":"\u03d1","thickapprox":"\u2248","thicksim":"\u223c","ThickSpace":"\u205f\u200a","ThinSpace":"\u2009","thinsp":"\u2009","thkap":"\u2248","thksim":"\u223c","THORN":"\xde","thorn":"\xfe","tilde":"\u02dc","Tilde":"\u223c","TildeEqual":"\u2243","TildeFullEqual":"\u2245","TildeTilde":"\u2248","timesbar":"\u2a31","timesb":"\u22a0","times":"\xd7","timesd":"\u2a30","tint":"\u222d","toea":"\u2928","topbot":"\u2336","topcir":"\u2af1","top":"\u22a4","Topf":"\ud835\udd4b","topf":"\ud835\udd65","topfork":"\u2ada","tosa":"\u2929","tprime":"\u2034","trade":"\u2122","TRADE":"\u2122","triangle":"\u25b5","triangledown":"\u25bf","triangleleft":"\u25c3","trianglelefteq":"\u22b4","triangleq":"\u225c","triangleright":"\u25b9","trianglerighteq":"\u22b5","tridot":"\u25ec","trie":"\u225c","triminus":"\u2a3a","TripleDot":"\u20db","triplus":"\u2a39","trisb":"\u29cd","tritime":"\u2a3b","trpezium":"\u23e2","Tscr":"\ud835\udcaf","tscr":"\ud835\udcc9","TScy":"\u0426","tscy":"\u0446","TSHcy":"\u040b","tshcy":"\u045b","Tstrok":"\u0166","tstrok":"\u0167","twixt":"\u226c","twoheadleftarrow":"\u219e","twoheadrightarrow":"\u21a0","Uacute":"\xda","uacute":"\xfa","uarr":"\u2191","Uarr":"\u219f","uArr":"\u21d1","Uarrocir":"\u2949","Ubrcy":"\u040e","ubrcy":"\u045e","Ubreve":"\u016c","ubreve":"\u016d","Ucirc":"\xdb","ucirc":"\xfb","Ucy":"\u0423","ucy":"\u0443","udarr":"\u21c5","Udblac":"\u0170","udblac":"\u0171","udhar":"\u296e","ufisht":"\u297e","Ufr":"\ud835\udd18","ufr":"\ud835\udd32","Ugrave":"\xd9","ugrave":"\xf9","uHar":"\u2963","uharl":"\u21bf","uharr":"\u21be","uhblk":"\u2580","ulcorn":"\u231c","ulcorner":"\u231c","ulcrop":"\u230f","ultri":"\u25f8","Umacr":"\u016a","umacr":"\u016b","uml":"\xa8","UnderBar":"_","UnderBrace":"\u23df","UnderBracket":"\u23b5","UnderParenthesis":"\u23dd","Union":"\u22c3","UnionPlus":"\u228e","Uogon":"\u0172","uogon":"\u0173","Uopf":"\ud835\udd4c","uopf":"\ud835\udd66","UpArrowBar":"\u2912","uparrow":"\u2191","UpArrow":"\u2191","Uparrow":"\u21d1","UpArrowDownArrow":"\u21c5","updownarrow":"\u2195","UpDownArrow":"\u2195","Updownarrow":"\u21d5","UpEquilibrium":"\u296e","upharpoonleft":"\u21bf","upharpoonright":"\u21be","uplus":"\u228e","UpperLeftArrow":"\u2196","UpperRightArrow":"\u2197","upsi":"\u03c5","Upsi":"\u03d2","upsih":"\u03d2","Upsilon":"\u03a5","upsilon":"\u03c5","UpTeeArrow":"\u21a5","UpTee":"\u22a5","upuparrows":"\u21c8","urcorn":"\u231d","urcorner":"\u231d","urcrop":"\u230e","Uring":"\u016e","uring":"\u016f","urtri":"\u25f9","Uscr":"\ud835\udcb0","uscr":"\ud835\udcca","utdot":"\u22f0","Utilde":"\u0168","utilde":"\u0169","utri":"\u25b5","utrif":"\u25b4","uuarr":"\u21c8","Uuml":"\xdc","uuml":"\xfc","uwangle":"\u29a7","vangrt":"\u299c","varepsilon":"\u03f5","varkappa":"\u03f0","varnothing":"\u2205","varphi":"\u03d5","varpi":"\u03d6","varpropto":"\u221d","varr":"\u2195","vArr":"\u21d5","varrho":"\u03f1","varsigma":"\u03c2","varsubsetneq":"\u228a\ufe00","varsubsetneqq":"\u2acb\ufe00","varsupsetneq":"\u228b\ufe00","varsupsetneqq":"\u2acc\ufe00","vartheta":"\u03d1","vartriangleleft":"\u22b2","vartriangleright":"\u22b3","vBar":"\u2ae8","Vbar":"\u2aeb","vBarv":"\u2ae9","Vcy":"\u0412","vcy":"\u0432","vdash":"\u22a2","vDash":"\u22a8","Vdash":"\u22a9","VDash":"\u22ab","Vdashl":"\u2ae6","veebar":"\u22bb","vee":"\u2228","Vee":"\u22c1","veeeq":"\u225a","vellip":"\u22ee","verbar":"|","Verbar":"\u2016","vert":"|","Vert":"\u2016","VerticalBar":"\u2223","VerticalLine":"|","VerticalSeparator":"\u2758","VerticalTilde":"\u2240","VeryThinSpace":"\u200a","Vfr":"\ud835\udd19","vfr":"\ud835\udd33","vltri":"\u22b2","vnsub":"\u2282\u20d2","vnsup":"\u2283\u20d2","Vopf":"\ud835\udd4d","vopf":"\ud835\udd67","vprop":"\u221d","vrtri":"\u22b3","Vscr":"\ud835\udcb1","vscr":"\ud835\udccb","vsubnE":"\u2acb\ufe00","vsubne":"\u228a\ufe00","vsupnE":"\u2acc\ufe00","vsupne":"\u228b\ufe00","Vvdash":"\u22aa","vzigzag":"\u299a","Wcirc":"\u0174","wcirc":"\u0175","wedbar":"\u2a5f","wedge":"\u2227","Wedge":"\u22c0","wedgeq":"\u2259","weierp":"\u2118","Wfr":"\ud835\udd1a","wfr":"\ud835\udd34","Wopf":"\ud835\udd4e","wopf":"\ud835\udd68","wp":"\u2118","wr":"\u2240","wreath":"\u2240","Wscr":"\ud835\udcb2","wscr":"\ud835\udccc","xcap":"\u22c2","xcirc":"\u25ef","xcup":"\u22c3","xdtri":"\u25bd","Xfr":"\ud835\udd1b","xfr":"\ud835\udd35","xharr":"\u27f7","xhArr":"\u27fa","Xi":"\u039e","xi":"\u03be","xlarr":"\u27f5","xlArr":"\u27f8","xmap":"\u27fc","xnis":"\u22fb","xodot":"\u2a00","Xopf":"\ud835\udd4f","xopf":"\ud835\udd69","xoplus":"\u2a01","xotime":"\u2a02","xrarr":"\u27f6","xrArr":"\u27f9","Xscr":"\ud835\udcb3","xscr":"\ud835\udccd","xsqcup":"\u2a06","xuplus":"\u2a04","xutri":"\u25b3","xvee":"\u22c1","xwedge":"\u22c0","Yacute":"\xdd","yacute":"\xfd","YAcy":"\u042f","yacy":"\u044f","Ycirc":"\u0176","ycirc":"\u0177","Ycy":"\u042b","ycy":"\u044b","yen":"\xa5","Yfr":"\ud835\udd1c","yfr":"\ud835\udd36","YIcy":"\u0407","yicy":"\u0457","Yopf":"\ud835\udd50","yopf":"\ud835\udd6a","Yscr":"\ud835\udcb4","yscr":"\ud835\udcce","YUcy":"\u042e","yucy":"\u044e","yuml":"\xff","Yuml":"\u0178","Zacute":"\u0179","zacute":"\u017a","Zcaron":"\u017d","zcaron":"\u017e","Zcy":"\u0417","zcy":"\u0437","Zdot":"\u017b","zdot":"\u017c","zeetrf":"\u2128","ZeroWidthSpace":"\u200b","Zeta":"\u0396","zeta":"\u03b6","zfr":"\ud835\udd37","Zfr":"\u2128","ZHcy":"\u0416","zhcy":"\u0436","zigrarr":"\u21dd","zopf":"\ud835\udd6b","Zopf":"\u2124","Zscr":"\ud835\udcb5","zscr":"\ud835\udccf","zwj":"\u200d","zwnj":"\u200c"}')},xg5P:function(e,t,n){"use strict";n.r(t),n.d(t,"_onCreate",function(){return h}),n.d(t,"getApp",function(){return f}),n.d(t,"_DvaContainer",function(){return d});var r=n("p0pE"),i=n.n(r),o=n("Hg0r"),a=n("q1tI"),s=n("0Wa5"),l=n.n(s),c=n("RFCh"),u=null;function h(){var e=n("PszG"),t=e.mergeConfig("dva");return u=Object(o["a"])(i()({history:c["default"]},t.config||{},window.g_useSSR?{initialState:window.g_initialData}:{})),u.use(l()()),(t.plugins||[]).forEach(e=>{u.use(e)}),u.model(i()({namespace:"auth"},n("dX6P").default)),u.model(i()({namespace:"config"},n("6lKK").default)),u.model(i()({namespace:"coupon"},n("eOCx").default)),u.model(i()({namespace:"knowledge"},n("mHNb").default)),u.model(i()({namespace:"layout"},n("7tDr").default)),u.model(i()({namespace:"notice"},n("lETv").default)),u.model(i()({namespace:"order"},n("3moC").default)),u.model(i()({namespace:"passport"},n("wD64").default)),u.model(i()({namespace:"payment"},n("N9RS").default)),u.model(i()({namespace:"plan"},n("GmDa").default)),u.model(i()({namespace:"serverGroup"},n("ZlA7").default)),u.model(i()({namespace:"serverManage"},n("1dD/").default)),u.model(i()({namespace:"serverShadowsocks"},n("LMyI").default)),u.model(i()({namespace:"serverTrojan"},n("lWxU").default)),u.model(i()({namespace:"serverV2ray"},n("rB1S").default)),u.model(i()({namespace:"stat"},n("T4gb").default)),u.model(i()({namespace:"system"},n("gENZ").default)),u.model(i()({namespace:"theme"},n("O8oq").default)),u.model(i()({namespace:"ticket"},n("e+9n").default)),u.model(i()({namespace:"user"},n("hlQx").default)),u}function f(){return u}class d extends a["Component"]{render(){var e=f();return e.router(()=>this.props.children),e.start()()}}},"y+Vt":function(e,t,n){"use strict";var r=n("mrSG"),i=n("Gev7"),o=n("IMiH");function a(e,t,n,r,i,o,a){if(0===i)return!1;var s=i,l=0,c=e;if(a>t+s&&a>r+s||ae+s&&o>n+s||ot+f&&h>r+f&&h>o+f&&h>l+f||he+f&&u>n+f&&u>i+f&&u>a+f||ut+u&&c>r+u&&c>o+u||ce+u&&l>n+u&&l>i+u||ln||u+ci&&(i+=f);var p=Math.atan2(l,s);return p<0&&(p+=f),p>=r&&p<=i||p+f>=r&&p+f<=i}function p(e,t,n,r,i,o){if(o>t&&o>r||oi?s:0}var m=o["a"].CMD,g=2*Math.PI,v=1e-4;function y(e,t){return Math.abs(e-t)t&&u>r&&u>o&&u>l||u1&&x(),p=s["a"](t,r,o,l,w[0]),d>1&&(m=s["a"](t,r,o,l,w[1]))),2===d?vt&&l>r&&l>o||l=0&&u<=1){for(var h=0,f=s["h"](t,r,o,u),d=0;dn||s<-n)return 0;var l=Math.sqrt(n*n-s*s);b[0]=-l,b[1]=l;var c=Math.abs(r-i);if(c<1e-4)return 0;if(c>=g-1e-4){r=0,i=g;var u=o?1:-1;return a>=b[0]+e&&a<=b[1]+e?u:0}if(r>i){var h=r;r=i,i=h}r<0&&(r+=g,i+=g);for(var f=0,d=0;d<2;d++){var p=b[d];if(p+e>a){var m=Math.atan2(s,p);u=o?1:-1;m<0&&(m=g+m),(m>=r&&m<=i||m+g>=r&&m+g<=i)&&(m>Math.PI/2&&m<1.5*Math.PI&&(u=-u),f+=u)}}return f}function C(e,t,n,r,i){for(var o,s,u=e.data,h=e.len(),f=0,g=0,v=0,b=0,w=0,x=0;x1&&(n||(f+=p(g,v,b,w,r,i))),k&&(g=u[x],v=u[x+1],b=g,w=v),C){case m.M:b=u[x++],w=u[x++],g=b,v=w;break;case m.L:if(n){if(a(g,v,u[x],u[x+1],t,r,i))return!0}else f+=p(g,v,u[x],u[x+1],r,i)||0;g=u[x++],v=u[x++];break;case m.C:if(n){if(l(g,v,u[x++],u[x++],u[x++],u[x++],u[x],u[x+1],t,r,i))return!0}else f+=_(g,v,u[x++],u[x++],u[x++],u[x++],u[x],u[x+1],r,i)||0;g=u[x++],v=u[x++];break;case m.Q:if(n){if(c(g,v,u[x++],u[x++],u[x],u[x+1],t,r,i))return!0}else f+=E(g,v,u[x++],u[x++],u[x],u[x+1],r,i)||0;g=u[x++],v=u[x++];break;case m.A:var O=u[x++],T=u[x++],A=u[x++],P=u[x++],M=u[x++],R=u[x++];x+=1;var j=!!(1-u[x++]);o=Math.cos(M)*A+O,s=Math.sin(M)*P+T,k?(b=o,w=s):f+=p(g,v,o,s,r,i);var L=(r-O)*P/A+O;if(n){if(d(O,T,P,M,M+R,j,t,L,i))return!0}else f+=S(O,T,P,M,M+R,j,L,i);g=Math.cos(M+R)*A+O,v=Math.sin(M+R)*P+T;break;case m.R:b=g=u[x++],w=v=u[x++];var D=u[x++],N=u[x++];if(o=b+D,s=w+N,n){if(a(b,w,o,w,t,r,i)||a(o,w,o,s,t,r,i)||a(o,s,b,s,t,r,i)||a(b,s,b,w,t,r,i))return!0}else f+=p(o,w,o,s,r,i),f+=p(b,s,b,w,r,i);break;case m.Z:if(n){if(a(g,v,b,w,t,r,i))return!0}else f+=p(g,v,b,w,r,i);g=b,v=w;break}}return n||y(v,w)||(f+=p(g,v,b,w,r,i)||0),0!==f}function k(e,t,n){return C(e,0,!1,t,n)}function O(e,t,n,r){return C(e,t,!0,n,r)}var T=n("bYtY"),A=n("Qe9p"),P=n("LPTA"),M=n("S8SX"),R=n("hYLj");n.d(t,"a",function(){return j});var j=Object(T["i"])({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},i["b"]),L={style:Object(T["i"])({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},i["a"].style)},D=R["a"].concat(["invisible","culling","z","z2","zlevel","parent"]),N=function(e){function t(t){return e.call(this,t)||this}return Object(r["a"])(t,e),t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var i=this._decalEl=this._decalEl||new t;i.buildPath===t.prototype.buildPath&&(i.buildPath=function(e){n.buildPath(e,n.shape)}),i.silent=!0;var o=i.style;for(var a in r)o[a]!==r[a]&&(o[a]=r[a]);o.fill=r.fill?r.decal:null,o.decal=null,o.shadowColor=null,r.strokeFirst&&(o.stroke=null);for(var s=0;s.5?P["a"]:t>.2?P["c"]:P["d"]}if(e)return P["d"]}return P["a"]},t.prototype.getInsideTextStroke=function(e){var t=this.style.fill;if(Object(T["y"])(t)){var n=this.__zr,r=!(!n||!n.isDarkMode()),i=Object(A["c"])(e,0)0))},t.prototype.hasFill=function(){var e=this.style,t=e.fill;return null!=t&&"none"!==t},t.prototype.getBoundingRect=function(){var e=this._rect,t=this.style,n=!e;if(n){var r=!1;this.path||(r=!0,this.createPathProxy());var i=this.path;(r||this.__dirty&M["b"])&&(i.beginPath(),this.buildPath(i,this.shape,!1),this.pathUpdated()),e=i.getBoundingRect()}if(this._rect=e,this.hasStroke()&&this.path&&this.path.len()>0){var o=this._rectStroke||(this._rectStroke=e.clone());if(this.__dirty||n){o.copy(e);var a=t.strokeNoScale?this.getLineScale():1,s=t.lineWidth;if(!this.hasFill()){var l=this.strokeContainThreshold;s=Math.max(s,null==l?4:l)}a>1e-10&&(o.width+=s/a,o.height+=s/a,o.x-=s/a/2,o.y-=s/a/2)}return o}return e},t.prototype.contain=function(e,t){var n=this.transformCoordToLocal(e,t),r=this.getBoundingRect(),i=this.style;if(e=n[0],t=n[1],r.contain(e,t)){var o=this.path;if(this.hasStroke()){var a=i.lineWidth,s=i.strokeNoScale?this.getLineScale():1;if(s>1e-10&&(this.hasFill()||(a=Math.max(a,this.strokeContainThreshold)),O(o,a/s,e,t)))return!0}if(this.hasFill())return k(o,e,t)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=M["b"],this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(e){return this.animate("shape",e)},t.prototype.updateDuringAnimation=function(e){"style"===e?this.dirtyStyle():"shape"===e?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(t,n){"shape"===t?this.setShape(n):e.prototype.attrKV.call(this,t,n)},t.prototype.setShape=function(e,t){var n=this.shape;return n||(n=this.shape={}),"string"===typeof e?n[e]=t:Object(T["l"])(n,e),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&M["b"])},t.prototype.createStyle=function(e){return Object(T["g"])(j,e)},t.prototype._innerSaveToNormal=function(t){e.prototype._innerSaveToNormal.call(this,t);var n=this._normalState;t.shape&&!n.shape&&(n.shape=Object(T["l"])({},this.shape))},t.prototype._applyStateObj=function(t,n,r,i,o,a){e.prototype._applyStateObj.call(this,t,n,r,i,o,a);var s,l=!(n&&i);if(n&&n.shape?o?i?s=n.shape:(s=Object(T["l"])({},r.shape),Object(T["l"])(s,n.shape)):(s=Object(T["l"])({},i?this.shape:r.shape),Object(T["l"])(s,n.shape)):l&&(s=r.shape),s)if(o){this.shape=Object(T["l"])({},this.shape);for(var c={},u=Object(T["B"])(s),h=0;h-1}function q(e,t){var n=this.__data__,r=J(n,e);return r<0?n.push([e,t]):n[r][1]=t,this}function K(e){var t=-1,n=e?e.length:0;this.clear();while(++t>1,u=23===t?P(2,-24)-P(2,-77):0,h=0,f=e<0||0===e&&1/e<0?1:0;for(e=A(e),e!=e||e===O?(i=e!=e?1:0,r=l):(r=M(R(e)/j),e*(o=P(2,-r))<1&&(r--,o*=2),e+=r+c>=1?u/o:u*P(2,1-c),e*o>=2&&(r++,o/=2),r+c>=l?(i=0,r=l):r+c>=1?(i=(e*o-1)*P(2,t),r+=c):(i=e*P(2,c-1)*P(2,t),r=0));t>=8;a[h++]=255&i,i/=256,t-=8);for(r=r<0;a[h++]=255&r,r/=256,s-=8);return a[--h]|=128*f,a}function V(e,t,n){var r,i=8*n-t-1,o=(1<>1,s=i-7,l=n-1,c=e[l--],u=127&c;for(c>>=7;s>0;u=256*u+e[l],l--,s-=8);for(r=u&(1<<-s)-1,u>>=-s,s+=t;s>0;r=256*r+e[l],l--,s-=8);if(0===u)u=1-a;else{if(u===o)return r?NaN:c?-O:O;r+=P(2,t),u-=a}return(c?-1:1)*r*P(2,u-t)}function W(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function H(e){return[255&e]}function U(e){return[255&e,e>>8&255]}function z(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function q(e){return B(e,52,8)}function K(e){return B(e,23,4)}function G(e,t,n){m(e[w],t,{get:function(){return this[n]}})}function Y(e,t,n,r){var i=+n,o=d(i);if(o+t>e[$])throw k(_);var a=e[I]._b,s=o+e[F],l=a.slice(s,s+t);return r?l:l.reverse()}function X(e,t,n,r,i,o){var a=+n,s=d(a);if(s+t>e[$])throw k(_);for(var l=e[I]._b,c=s+e[F],u=r(+i),h=0;hee;)(Q=J[ee++])in E||s(E,Q,T[Q]);o||(Z.constructor=E)}var te=new S(new E(2)),ne=S[w].setInt8;te.setInt8(0,2147483648),te.setInt8(1,2147483649),!te.getInt8(0)&&te.getInt8(1)||l(S[w],{setInt8:function(e,t){ne.call(this,e,t<<24>>24)},setUint8:function(e,t){ne.call(this,e,t<<24>>24)}},!0)}else E=function(e){u(this,E,y);var t=d(e);this._b=g.call(new Array(t),0),this[$]=t},S=function(e,t,n){u(this,S,b),u(e,E,b);var r=e[$],i=h(t);if(i<0||i>r)throw k("Wrong offset!");if(n=void 0===n?r-i:f(n),i+n>r)throw k(x);this[I]=e,this[F]=i,this[$]=n},i&&(G(E,D,"_l"),G(S,L,"_b"),G(S,D,"_l"),G(S,N,"_o")),l(S[w],{getInt8:function(e){return Y(this,1,e)[0]<<24>>24},getUint8:function(e){return Y(this,1,e)[0]},getInt16:function(e){var t=Y(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=Y(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return W(Y(this,4,e,arguments[1]))},getUint32:function(e){return W(Y(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return V(Y(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return V(Y(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){X(this,1,e,H,t)},setUint8:function(e,t){X(this,1,e,H,t)},setInt16:function(e,t){X(this,2,e,U,t,arguments[2])},setUint16:function(e,t){X(this,2,e,U,t,arguments[2])},setInt32:function(e,t){X(this,4,e,z,t,arguments[2])},setUint32:function(e,t){X(this,4,e,z,t,arguments[2])},setFloat32:function(e,t){X(this,4,e,K,t,arguments[2])},setFloat64:function(e,t){X(this,8,e,q,t,arguments[2])}});v(E,y),v(S,b),s(S[w],a.VIEW,!0),t[y]=E,t[b]=S},yLpj:function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"===typeof window&&(n=window)}e.exports=n},yQtW:function(e,t,n){(function(e,r,i){var o=n("qfHW"),a=n("P7XM"),s=n("43KI"),l=t.readyStates={UNSENT:0,OPENED:1,HEADERS_RECEIVED:2,LOADING:3,DONE:4},c=t.IncomingMessage=function(t,n,a,l){var c=this;if(s.Readable.call(c),c._mode=a,c.headers={},c.rawHeaders=[],c.trailers={},c.rawTrailers=[],c.on("end",function(){e.nextTick(function(){c.emit("close")})}),"fetch"===a){if(c._fetchResponse=n,c.url=n.url,c.statusCode=n.status,c.statusMessage=n.statusText,n.headers.forEach(function(e,t){c.headers[t.toLowerCase()]=e,c.rawHeaders.push(t,e)}),o.writableStream){var u=new WritableStream({write:function(e){return new Promise(function(t,n){c._destroyed?n():c.push(new r(e))?t():c._resumeFetch=t})},close:function(){i.clearTimeout(l),c._destroyed||c.push(null)},abort:function(e){c._destroyed||c.emit("error",e)}});try{return void n.body.pipeTo(u).catch(function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)})}catch(e){}}var h=n.body.getReader();function f(){h.read().then(function(e){if(!c._destroyed){if(e.done)return i.clearTimeout(l),void c.push(null);c.push(new r(e.value)),f()}}).catch(function(e){i.clearTimeout(l),c._destroyed||c.emit("error",e)})}f()}else{c._xhr=t,c._pos=0,c.url=t.responseURL,c.statusCode=t.status,c.statusMessage=t.statusText;var d=t.getAllResponseHeaders().split(/\r?\n/);if(d.forEach(function(e){var t=e.match(/^([^:]+):\s*(.*)/);if(t){var n=t[1].toLowerCase();"set-cookie"===n?(void 0===c.headers[n]&&(c.headers[n]=[]),c.headers[n].push(t[2])):void 0!==c.headers[n]?c.headers[n]+=", "+t[2]:c.headers[n]=t[2],c.rawHeaders.push(t[1],t[2])}}),c._charset="x-user-defined",!o.overrideMimeType){var p=c.rawHeaders["mime-type"];if(p){var m=p.match(/;\s*charset=([^;])(;|$)/);m&&(c._charset=m[1].toLowerCase())}c._charset||(c._charset="utf-8")}}};a(c,s.Readable),c.prototype._read=function(){var e=this,t=e._resumeFetch;t&&(e._resumeFetch=null,t())},c.prototype._onXHRProgress=function(){var e=this,t=e._xhr,n=null;switch(e._mode){case"text:vbarray":if(t.readyState!==l.DONE)break;try{n=new i.VBArray(t.responseBody).toArray()}catch(e){}if(null!==n){e.push(new r(n));break}case"text":try{n=t.responseText}catch(t){e._mode="text:vbarray";break}if(n.length>e._pos){var o=n.substr(e._pos);if("x-user-defined"===e._charset){for(var a=new r(o.length),s=0;se._pos&&(e.push(new r(new Uint8Array(c.result.slice(e._pos)))),e._pos=c.result.byteLength)},c.onload=function(){e.push(null)},c.readAsArrayBuffer(n);break}e._xhr.readyState===l.DONE&&"ms-stream"!==e._mode&&e.push(null)}}).call(this,n("Q2Ig"),n("tjlA").Buffer,n("yLpj"))},yVla:function(e,t,n){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"===typeof window||!window.document||!window.document.createElement),t.getConfirmation=function(e,t){return t(window.confirm(e))},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsPopStateOnHashChange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},yWgo:function(e,t,n){"use strict";n.d(t,"d",function(){return a}),n.d(t,"f",function(){return s}),n.d(t,"i",function(){return l}),n.d(t,"j",function(){return c}),n.d(t,"e",function(){return u}),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return f}),n.d(t,"h",function(){return d}),n.d(t,"g",function(){return p}),n.d(t,"c",function(){return m});n("miYZ");var r=n("tsqr"),i=(n("wd/R"),n("+QRC")),o=n.n(i);function a(e){return document.cookie.split("; ").reduce((t,n)=>{var r=n.split("=");return r[0]===e?decodeURIComponent(r[1]):t},"")}function s(){return-1!==window.navigator.userAgent.toLowerCase().indexOf("mobile")}function l(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:525600,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"/",i=arguments.length>4?arguments[4]:void 0,o=new Date(Date.now()+6e4*n).toGMTString();document.cookie=e+"=".concat(encodeURIComponent(t),";expires=").concat(o,";path=").concat(r)+(i?";domain=".concat(i):"")}function c(e,t){try{if(localStorage.getItem("habit")){var n=localStorage.getItem("habit");n[e]=t,localStorage.setItem("habit",JSON.stringify(n))}else localStorage.setItem("habit",JSON.stringify({[e]:t}))}catch(n){localStorage.setItem("habit",JSON.stringify({[e]:t}))}}function u(e){try{if(!localStorage.getItem("habit"))return!1;var t=JSON.parse(localStorage.getItem("habit"));return t[e]}catch(e){return!1}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;e=parseInt(e);var t=1024,n=1048576,r=1073741824;return e>r?(e/r).toFixed(2)+" GB":e>n?(e/n).toFixed(2)+" MB":e>t?(e/t).toFixed(2)+" KB":e<0?0:e.toFixed(2)+" B"}function f(e){o()(e),r["a"].success("\u590d\u5236\u6210\u529f")}function d(e){return window.localStorage.setItem("authorization",e)}function p(){return window.localStorage.removeItem("authorization")}function m(){return window.localStorage.getItem("authorization")}},ykC2:function(e,t,n){"use strict";n("bbsP");var r=n("/wGt"),i=(n("+L6B"),n("2/Rp")),o=(n("5Dmo"),n("3S7+")),a=(n("Pwec"),n("CtXQ")),s=(n("OaEy"),n("2fM7")),l=(n("5NDa"),n("5rEg")),c=n("p0pE"),u=n.n(c),h=n("q1tI"),f=n.n(h),d=n("/MKj"),p=(n("lc5D"),n("VeWa"),n("umNf"),n("8zNj"));class m extends f.a.Component{constructor(e){super(e),this.state={server:this.props.record||{tls:0,rate:1},visible:!1,childDrawer:{visible:!1}}}onShow(){this.setState({visible:!this.state.visible})}save(){var e=this.state.server;this.props.dispatch({type:"serverTrojan/save",params:e,callback:()=>{this.onShow()}})}showChildDrawer(e,t){this.setState({childDrawer:u()({},this.state.childDrawer,{visible:!this.state.childDrawer.visible,title:e,type:t})})}changeServer(e,t){this.setState({server:u()({},this.state.server,{[e]:t})})}formChange(e,t){this.setState({server:u()({},this.state.server,{[e]:t})})}render(){var e=this.state.server,t=this.props.serverTrojan.saveLoading,n=this.props.serverManage.servers,c=this.props.serverGroup.groups;return f.a.createElement(f.a.Fragment,null,f.a.cloneElement(this.props.children,{onClick:()=>this.setState({visible:!0})}),f.a.createElement(r["a"],{id:"server",maskClosable:!0,title:e.id?"\u7f16\u8f91\u8282\u70b9":"\u65b0\u5efa\u8282\u70b9",width:"80%",visible:this.state.visible,onClose:()=>this.onShow()},f.a.createElement("div",null,f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"form-group col-8"},f.a.createElement("label",null,"\u8282\u70b9\u540d\u79f0"),f.a.createElement(l["a"],{placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u540d\u79f0",value:e.name,onChange:e=>this.formChange("name",e.target.value)})),f.a.createElement("div",{className:"form-group col-4"},f.a.createElement("label",null,"\u500d\u7387"),f.a.createElement(l["a"],{addonAfter:"x",placeholder:"\u8bf7\u8f93\u5165\u8282\u70b9\u500d\u7387",value:e.rate,onChange:e=>this.formChange("rate",e.target.value)}))),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,"\u8282\u70b9\u6807\u7b7e"),f.a.createElement(s["a"],{mode:"tags",value:e.tags||[],style:{width:"100%"},placeholder:"\u8f93\u5165\u540e\u56de\u8f66\u6dfb\u52a0\u6807\u7b7e",onChange:e=>this.formChange("tags",e.length>0?e:null)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,"\u6743\u9650\u7ec4 ",f.a.createElement(p["a"],null,f.a.createElement("a",{href:"javascript:(0);"},"\u6dfb\u52a0\u6743\u9650\u7ec4"))),f.a.createElement(s["a"],{mode:"multiple",value:e.group_id,placeholder:"\u8bf7\u9009\u62e9\u6743\u9650\u7ec4",style:{width:"100%"},onChange:e=>this.formChange("group_id",e)},c.map(e=>{return f.a.createElement(s["a"].Option,{key:e.id},e.name)}))),f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"form-group col-md-12 col-xs-12"},f.a.createElement("label",null,"\u8282\u70b9\u5730\u5740"),f.a.createElement(l["a"],{placeholder:"\u5730\u5740\u6216IP",value:e.host,onChange:e=>this.formChange("host",e.target.value)}))),f.a.createElement("div",{className:"row"},f.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},f.a.createElement("label",null,"\u8fde\u63a5\u7aef\u53e3"),f.a.createElement(l["a"],{placeholder:"\u7528\u6237\u8fde\u63a5\u7aef\u53e3",value:e.port,onChange:e=>{this.formChange("port",e.target.value)}})),f.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},f.a.createElement("label",null,"\u670d\u52a1\u7aef\u53e3"),f.a.createElement(l["a"],{placeholder:"\u670d\u52a1\u7aef\u5f00\u653e\u7aef\u53e3",value:e.server_port,onChange:e=>{this.formChange("server_port",e.target.value)}})),f.a.createElement("div",{className:"form-group col-md-4 col-xs-12"},f.a.createElement("label",null,f.a.createElement(o["a"],{placement:"top",title:"\u4f7f\u7528\u81ea\u7b7e\u540d\u8bc1\u4e66\u9700\u8981\u5141\u8bb8\u4e0d\u5b89\u5168\uff0c\u7528\u6237\u624d\u53ef\u4ee5\u8fde\u63a5"},"\u5141\u8bb8\u4e0d\u5b89\u5168 ",f.a.createElement(a["a"],{type:"question-circle"}))),f.a.createElement(s["a"],{value:parseInt(e.allow_insecure)?1:0,placeholder:"\u5141\u8bb8\u4e0d\u5b89\u5168",style:{width:"100%"},onChange:e=>this.formChange("allow_insecure",e)},f.a.createElement(s["a"].Option,{key:0,value:0},"\u5426"),f.a.createElement(s["a"].Option,{key:1,value:1},"\u662f")))),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,"\u670d\u52a1\u5668\u540d\u79f0\u6307\u793a(sni)"),f.a.createElement(l["a"],{placeholder:"\u5f53\u8282\u70b9\u5730\u5740\u4e0e\u8bc1\u4e66\u4e0d\u4e00\u81f4\u65f6\u7528\u4e8e\u8bc1\u4e66\u9a8c\u8bc1",value:e.server_name,onChange:e=>this.formChange("server_name",e.target.value)})),f.a.createElement("div",{className:"form-group"},f.a.createElement("label",null,f.a.createElement(o["a"],{placement:"top"},"\u7236\u8282\u70b9 ",f.a.createElement("a",{target:"_blank",href:"https://docs.v2board.com/use/node.html#\u7236\u8282\u70b9\u4e0e\u5b50\u8282\u70b9\u5173\u7cfb",rel:"noreferrer"},"\u66f4\u591a\u89e3\u7b54"))),f.a.createElement(s["a"],{value:e.parent_id||"",onChange:e=>this.formChange("parent_id",e),style:{width:"100%"}},f.a.createElement(s["a"].Option,{value:""},"\u65e0"),n.map(t=>{if("trojan"===t.type&&t.id!==e.id)return f.a.createElement(s["a"].Option,{key:Math.random(),value:t.id},t.name)})))),f.a.createElement("div",{className:"v2board-drawer-action"},f.a.createElement(i["a"],{style:{marginRight:8},onClick:()=>this.onShow()},"\u53d6\u6d88"),f.a.createElement(i["a"],{loading:t,onClick:()=>this.save(),type:"primary"},"\u63d0\u4ea4"))))}}t["a"]=Object(d["c"])(e=>{var t=e.serverTrojan,n=e.serverGroup,r=e.serverManage;return{serverTrojan:t,serverGroup:n,serverManage:r}})(m)},yoD8:function(e,t,n){"use strict";var r=n("3Oj7"),i=[0,0],o=[0,0],a=new r["a"],s=new r["a"],l=function(){function e(e,t){this._corners=[],this._axes=[],this._origin=[0,0];for(var n=0;n<4;n++)this._corners[n]=new r["a"];for(n=0;n<2;n++)this._axes[n]=new r["a"];e&&this.fromBoundingRect(e,t)}return e.prototype.fromBoundingRect=function(e,t){var n=this._corners,i=this._axes,o=e.x,a=e.y,s=o+e.width,l=a+e.height;if(n[0].set(o,a),n[1].set(s,a),n[2].set(s,l),n[3].set(o,l),t)for(var c=0;c<4;c++)n[c].transform(t);r["a"].sub(i[0],n[1],n[0]),r["a"].sub(i[1],n[3],n[0]),i[0].normalize(),i[1].normalize();for(c=0;c<2;c++)this._origin[c]=i[c].dot(n[0])},e.prototype.intersect=function(e,t){var n=!0,i=!t;return a.set(1/0,1/0),s.set(0,0),!this._intersectCheckOneSide(this,e,a,s,i,1)&&(n=!1,i)?n:!this._intersectCheckOneSide(e,this,a,s,i,-1)&&(n=!1,i)?n:(i||r["a"].copy(t,n?a:s),n)},e.prototype._intersectCheckOneSide=function(e,t,n,a,s,l){for(var c=!0,u=0;u<2;u++){var h=this._axes[u];if(this._getProjMinMaxOnAxis(u,e._corners,i),this._getProjMinMaxOnAxis(u,t._corners,o),i[1]o[1]){if(c=!1,s)return c;var f=Math.abs(o[0]-i[1]),d=Math.abs(i[0]-o[1]);Math.min(f,d)>a.len()&&(f0?!0===a?r.scrollTop(t,b.top+w.top):!1===a?r.scrollTop(t,b.top+x.top):w.top<0?r.scrollTop(t,b.top+w.top):r.scrollTop(t,b.top+x.top):o||(a=void 0===a||!!a,a?r.scrollTop(t,b.top+w.top):r.scrollTop(t,b.top+x.top)),i&&(w.left<0||x.left>0?!0===s?r.scrollLeft(t,b.left+w.left):!1===s?r.scrollLeft(t,b.left+x.left):w.left<0?r.scrollLeft(t,b.left+w.left):r.scrollLeft(t,b.left+x.left):o||(s=void 0===s||!!s,s?r.scrollLeft(t,b.left+w.left):r.scrollLeft(t,b.left+x.left)))}e.exports=i},zxrt:function(e,t,n){"use strict";var r=n("WGNW"),i=n("88Vn"),o=n("yLMY"),a=n("7vYJ"),s=n("Spc3"),l=n("OsVd"),c=n("u8+u"),u=n("c0Oy").ArrayBuffer,h=n("VeyY"),f=o.ArrayBuffer,d=o.DataView,p=i.ABV&&u.isView,m=f.prototype.slice,g=i.VIEW,v="ArrayBuffer";r(r.G+r.W+r.F*(u!==f),{ArrayBuffer:f}),r(r.S+r.F*!i.CONSTR,v,{isView:function(e){return p&&p(e)||c(e)&&g in e}}),r(r.P+r.U+r.F*n("wUWy")(function(){return!new f(2).slice(1,void 0).byteLength}),v,{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(a(this),e);var n=a(this).byteLength,r=s(e,n),i=s(void 0===t?n:t,n),o=new(h(this,f))(l(i-r)),c=new d(this),u=new d(o),p=0;while(r